diff options
author | Daniel Vassdal <daniel@Daniel-Debian> | 2013-06-28 12:40:51 +0200 |
---|---|---|
committer | Daniel Vassdal <daniel@Daniel-Debian> | 2013-06-28 12:50:09 +0200 |
commit | 68462dad3fd3871ef7be05cef0fd09be7fcb70cc (patch) | |
tree | f01b7776d7fe822497ceb1867f19f6f30e8831ca /make | |
parent | a7f61e181fa1859a8f3d8d233d55e71fc000f1e5 (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/inspircd | 2 |
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; |