summaryrefslogtreecommitdiff
path: root/pinyweb/cgi-bin/auth/lsrepo.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'pinyweb/cgi-bin/auth/lsrepo.cgi')
-rwxr-xr-xpinyweb/cgi-bin/auth/lsrepo.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/pinyweb/cgi-bin/auth/lsrepo.cgi b/pinyweb/cgi-bin/auth/lsrepo.cgi
index 3513b5f..fa42952 100755
--- a/pinyweb/cgi-bin/auth/lsrepo.cgi
+++ b/pinyweb/cgi-bin/auth/lsrepo.cgi
@@ -1,8 +1,6 @@
#!/usr/bin/perl
$| = 1;
-open(STDERR, ">&STDOUT");
-
use warnings;
use CGI;
@@ -13,6 +11,8 @@ use IPC::Open2;
print( "Content-type: text/plain\n\n");
+open(STDERR, ">&STDOUT");
+
unless ( system( '/usr/sbin/piny-suid', $ENV{'REMOTE_USER'}, 'lsrepo' ) == 0 ) {
die( 'lsrepo was unsuccessful.' );
};