From 9322b399f3a6fe3e0d60dfa991b06012c35b72f8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 3 Dec 2006 20:41:22 +0000 Subject: [PATCH] * Doh. --- src/libmain/shared.cc | 3 +++ src/libmain/shared.hh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc index a5401ba5d..68016b0d7 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 20262004b..2c574d148 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; }