From 68462dad3fd3871ef7be05cef0fd09be7fcb70cc Mon Sep 17 00:00:00 2001 From: Daniel Vassdal Date: Fri, 28 Jun 2013 12:40:51 +0200 Subject: Made the launch script aware of --runasroot, so it does not drop privs if this is specified. --- make/template/inspircd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'make') 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; -- cgit v1.2.3