diff options
-rw-r--r-- | src/libmain/shared.cc | 3 | ||||
-rw-r--r-- | src/libmain/shared.hh | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc index a5401ba5d0d7..68016b0d7b7c 100644 --- a/src/libmain/shared.cc +++ b/src/libmain/shared.cc @@ -207,6 +207,9 @@ static void initAndRun(int argc, char * * argv) } +bool setuidMode = false; + + static void setuidInit() { /* Don't do anything if this is not a setuid binary. */ diff --git a/src/libmain/shared.hh b/src/libmain/shared.hh index 20262004bdbd..2c574d148f6b 100644 --- a/src/libmain/shared.hh +++ b/src/libmain/shared.hh @@ -25,7 +25,7 @@ Path makeRootName(const Path & gcRoot, int & counter); void printGCWarning(); /* Whether we're running setuid. */ -bool setuidMode = false; +extern bool setuidMode; } |