From 7ffed596511dab81353b8af3096e17d104278679 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Thu, 12 May 2011 21:24:13 -0700 Subject: pinyconfig.cgi: enabling variable listing --- pinyweb/cgi-bin/auth/pinyconfig.cgi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pinyweb/cgi-bin/auth') diff --git a/pinyweb/cgi-bin/auth/pinyconfig.cgi b/pinyweb/cgi-bin/auth/pinyconfig.cgi index f852a56..af7cebd 100755 --- a/pinyweb/cgi-bin/auth/pinyconfig.cgi +++ b/pinyweb/cgi-bin/auth/pinyconfig.cgi @@ -17,6 +17,10 @@ if( $q->param('r') && $q->param('n') && $q->param('v') ) { unless( system( '/usr/sbin/piny-suid', $ENV{'REMOTE_USER'}, 'pinyconfig', $q->param('r'), $q->param('n'), $q->param('v') ) == 0 ) { die( 'pinyconfig was unsuccessful.' ); }; +} elsif( $q->param('r') ) { + unless( system( '/usr/sbin/piny-suid', $ENV{'REMOTE_USER'}, 'pinyconfig', $q->param('r') ) == 0 ) { + die( 'pinyconfig was unsuccessful.' ); + }; } else { print 'Missing parameters.'; }; -- cgit v1.2.3