From: Rudolf Polzer Date: Thu, 16 Dec 2010 12:34:11 +0000 (+0100) Subject: allow running in suidperl X-Git-Tag: xonotic-v0.1.0preview~10 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=62da00c9c55b965a56fe1f09fc1cccc2e1f95cc2;p=xonotic%2Fxonotic.git allow running in suidperl --- diff --git a/misc/infrastructure/keygen/response.d0ir b/misc/infrastructure/keygen/response.d0ir index 3439f7f0..e6c1de99 100755 --- a/misc/infrastructure/keygen/response.d0ir +++ b/misc/infrastructure/keygen/response.d0ir @@ -1,5 +1,14 @@ #!/usr/bin/perl +BEGIN +{ + $ENV{PATH} = "/usr/bin:/bin"; +} + +# if we are suid, set uid := euid +$( = $); +$< = $>; + use strict; use CGI; use LWP::Simple; @@ -125,7 +134,7 @@ sub check_banlist($) our %ca = (); our $default_ca = 0; -do 'config.pl'; +do './config.pl'; if((my $key = $cgi->param('key'))) {