diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-12-30 21:27:02 -0800 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-12-30 21:27:02 -0800 |
commit | 3e9efc02288fd4cd386f825adf9017d6117e6383 (patch) | |
tree | cfa0973cf4c26439eb4e982f085321afb0b8e00a /pinyweb/cgi-bin/piny/newrepo.cgi | |
parent | c931a9b75459bd115c76533913cf5654e80f1a94 (diff) | |
download | piny-code-3e9efc02288fd4cd386f825adf9017d6117e6383.tar.gz piny-code-3e9efc02288fd4cd386f825adf9017d6117e6383.zip |
Some minor reorg.
Diffstat (limited to 'pinyweb/cgi-bin/piny/newrepo.cgi')
-rwxr-xr-x | pinyweb/cgi-bin/piny/newrepo.cgi | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/pinyweb/cgi-bin/piny/newrepo.cgi b/pinyweb/cgi-bin/piny/newrepo.cgi deleted file mode 100755 index 450fa82..0000000 --- a/pinyweb/cgi-bin/piny/newrepo.cgi +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/perl -$| = 1; - -use warnings; - -use CGI; - -use IPC::Open2; - -$q = CGI->new; - -print( "Content-type: text/plain\n\n"); - -if( $q->param('n') && $q->param('d') ) { - unless( open2( OUT, IN, '/usr/sbin/piny-suid', $ENV{'REMOTE_USER'}, 'newrepo', $q->param('n') ) ) { - print 'could not execute newrepo'; - die; - }; - # make things flushier - select( (select(IN), $| = 1)[0] ); - select( (select(OUT), $| = 1)[0] ); - print( IN $q->param('d') . "\n" ); - close( IN ); - while( <OUT> ) { - print; - }; -} else { - print 'Missing parameters.'; -}; |