Compare commits

...

2 Commits

Author SHA1 Message Date
sceox
a3be661e99 clean up debugging line 2020-12-29 17:00:04 -08:00
sceox
7353143239 do not unveil local::lib; lock unveil 2020-12-29 16:56:41 -08:00

View File

@ -10,8 +10,8 @@ use OpenBSD::Unveil;
pledge( qw(unveil rpath dns inet) ) || die "Unable to pledge: $!";
unveil( "/var/www/perl5", "r" ) || die "Unable to unveil: $!";
unveil( $jobs_dir, "r" ) || die "Unable to unveil: $!";
unveil() || die "Unable to lock unveil: $!";
use local::lib '/var/www/perl5';
use Net::Printer;
@ -31,7 +31,6 @@ my $lp = new Net::Printer();
my $q = URI::Query->new( $ENV{'QUERY_STRING'} );
my %hash = $q->hash;
#print Dumper( \%hash );
if($hash{'file'}) {
my $file = "$jobs_dir/$hash{'file'}";