diff options
Diffstat (limited to 'pinyweb/cgi-bin/auth/pinyconfig.cgi')
-rwxr-xr-x | pinyweb/cgi-bin/auth/pinyconfig.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pinyweb/cgi-bin/auth/pinyconfig.cgi b/pinyweb/cgi-bin/auth/pinyconfig.cgi index f660032..1bb03e9 100755 --- a/pinyweb/cgi-bin/auth/pinyconfig.cgi +++ b/pinyweb/cgi-bin/auth/pinyconfig.cgi @@ -1,8 +1,6 @@ #!/usr/bin/perl $| = 1; -open(STDERR, ">&STDOUT"); - use warnings; use CGI; @@ -13,6 +11,8 @@ $q = CGI->new; print( "Content-type: text/plain\n\n"); +open(STDERR, ">&STDOUT"); + if( defined( $q->param('r') ) && defined( $q->param('n') ) && defined( $q->param('v') ) ) { unless( system( '/usr/sbin/piny-suid', $ENV{'REMOTE_USER'}, 'pinyconfig', scalar( $q->param('r') ), scalar( $q->param('n') ), scalar( $q->param('v') ) ) == 0 ) { die( 'pinyconfig was unsuccessful.' ); |