]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - make/template/inspircd
Remove support for Interix and SunOS from the Makefile.
[user/henk/code/inspircd.git] / 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;