]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Made the launch script aware of --runasroot, so it does not drop privs if this is...
authorDaniel Vassdal <daniel@Daniel-Debian>
Fri, 28 Jun 2013 10:40:51 +0000 (12:40 +0200)
committerDaniel Vassdal <daniel@Daniel-Debian>
Fri, 28 Jun 2013 10:50:09 +0000 (12:50 +0200)
make/template/inspircd

index 322ee2cd6894eaf79b7d944306022c7786121836..139177100a9f46a7245420a74dda9b1ec05179fa 100644 (file)
@@ -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;