diff options
author | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2021-03-11 13:37:12 -0800 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2021-03-11 13:37:12 -0800 |
commit | a55d110f8eccde182ce8932016d806ec9b97b866 (patch) | |
tree | e0aef953309ca6e37ca0cfdc63433d5fe2e5d0ef /pinyweb/cgi-bin/auth/newrepo.cgi | |
parent | 19ee32c91c882fbead9cee20c406bc11e195790b (diff) | |
download | piny-code-a55d110f8eccde182ce8932016d806ec9b97b866.tar.gz piny-code-a55d110f8eccde182ce8932016d806ec9b97b866.zip |
pinyweb: delay STDERR redirect until we're properly ready for it
Diffstat (limited to 'pinyweb/cgi-bin/auth/newrepo.cgi')
-rwxr-xr-x | pinyweb/cgi-bin/auth/newrepo.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pinyweb/cgi-bin/auth/newrepo.cgi b/pinyweb/cgi-bin/auth/newrepo.cgi index 46c5993..dfd9f02 100755 --- a/pinyweb/cgi-bin/auth/newrepo.cgi +++ b/pinyweb/cgi-bin/auth/newrepo.cgi @@ -1,8 +1,6 @@ #!/usr/bin/perl $| = 1; -open(STDERR, ">&STDOUT"); - use warnings; use CGI; @@ -15,6 +13,8 @@ my @cmd; print( "Content-type: text/plain\n\n"); +open(STDERR, ">&STDOUT"); + if( defined( $q->param('r') ) && defined( $q->param('d') ) ) { # repository, description @cmd = ( '/usr/sbin/piny-suid', $ENV{'REMOTE_USER'}, 'newrepo', '--batch', '--enable-ikiwiki', $q->param('r') ); |