about summary refs log tree commit diff
path: root/src/libmain
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-12-03T20·41+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-12-03T20·41+0000
commit9322b399f3a6fe3e0d60dfa991b06012c35b72f8 (patch)
tree002d00fbd1b60aa518373ebb0c5258db5903cda8 /src/libmain
parentf4279bcde0934c221df081c366c8fc776aa2be99 (diff)
* Doh.
Diffstat (limited to 'src/libmain')
-rw-r--r--src/libmain/shared.cc3
-rw-r--r--src/libmain/shared.hh2
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;
 
 }