Compare commits
2 Commits
a89fa44572
...
a3be661e99
Author | SHA1 | Date | |
---|---|---|---|
|
a3be661e99 | ||
|
7353143239 |
3
print.pl
3
print.pl
@ -10,8 +10,8 @@ use OpenBSD::Unveil;
|
|||||||
|
|
||||||
pledge( qw(unveil rpath dns inet) ) || die "Unable to pledge: $!";
|
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( $jobs_dir, "r" ) || die "Unable to unveil: $!";
|
||||||
|
unveil() || die "Unable to lock unveil: $!";
|
||||||
|
|
||||||
use local::lib '/var/www/perl5';
|
use local::lib '/var/www/perl5';
|
||||||
use Net::Printer;
|
use Net::Printer;
|
||||||
@ -31,7 +31,6 @@ my $lp = new Net::Printer();
|
|||||||
|
|
||||||
my $q = URI::Query->new( $ENV{'QUERY_STRING'} );
|
my $q = URI::Query->new( $ENV{'QUERY_STRING'} );
|
||||||
my %hash = $q->hash;
|
my %hash = $q->hash;
|
||||||
#print Dumper( \%hash );
|
|
||||||
|
|
||||||
if($hash{'file'}) {
|
if($hash{'file'}) {
|
||||||
my $file = "$jobs_dir/$hash{'file'}";
|
my $file = "$jobs_dir/$hash{'file'}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user