summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorDaniel Vassdal <daniel@Daniel-Debian>2013-06-28 12:40:51 +0200
committerDaniel Vassdal <daniel@Daniel-Debian>2013-06-28 12:50:09 +0200
commit68462dad3fd3871ef7be05cef0fd09be7fcb70cc (patch)
treef01b7776d7fe822497ceb1867f19f6f30e8831ca /make
parenta7f61e181fa1859a8f3d8d233d55e71fc000f1e5 (diff)
Made the launch script aware of --runasroot, so it does not drop privs if this is specified.
Diffstat (limited to 'make')
-rw-r--r--make/template/inspircd2
1 files changed, 1 insertions, 1 deletions
diff --git a/make/template/inspircd b/make/template/inspircd
index 322ee2cd6..139177100 100644
--- a/make/template/inspircd
+++ b/make/template/inspircd
@@ -33,7 +33,7 @@ my $executable = "@EXECUTABLE@";
my $version = "@VERSION@";
my $uid = "@UID@";
-if ($< == 0 || $> == 0) {
+if (!("--runasroot" ~~ @ARGV) && ($< == 0 || $> == 0)) {
if ($uid !~ /^\d+$/) {
# Named UID, look it up
$uid = getpwnam $uid;