Repositories / jai.git

jai.git

Clone (read-only): git clone http://git.guha-anderson.com/git/jai.git

Branch

getcwd early

Author
David Mazieres <dm@uun.org>
Date
2026-03-15 12:57:56 -0700
Commit
a4cf0bc57b8e1f13dd08e7d7ea0f9d042bd616d9
jai.cc
index 367d31f..270c3b2 100644
--- a/jai.cc
+++ b/jai.cc
@@ -810,6 +810,7 @@ do_main(int argc, char **argv)
   Config conf;
   conf.init_credentials();
   auto restore = conf.asuser();
+  conf.cwd(); // compute and cache while privileges lowered
 
   bool opt_u{};
   std::vector<path> opt_d;