From a55d110f8eccde182ce8932016d806ec9b97b866 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Thu, 11 Mar 2021 13:37:12 -0800 Subject: pinyweb: delay STDERR redirect until we're properly ready for it --- pinyweb/cgi-bin/auth/newrepo.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pinyweb/cgi-bin/auth/newrepo.cgi') 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') ); -- cgit v1.2.3