Commit fe0bcc70 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Minor fix to last revision; I forgot the format that php picks for

temp files.
parent 0dd64528
......@@ -32,6 +32,7 @@ my $optlist = "";
my $TB = "@prefix@";
my $parser = "$TB/libexec/parse-ns";
my $status = 0;
my $dirname;
#
# Turn off line buffering on output
......@@ -89,7 +90,8 @@ else {
# a name that should not be guessable, so as long as it looks to be in
# proper format, we accept it.
#
if (! ($tempfile =~ /^\/tmp/) &&
if (! ($tempfile =~ /^\/tmp\/[-\w]+-\d+\.nsfile/) &&
! ($tempfile =~ /^\/var\/tmp\/php\w+/) &&
! ($tempfile =~ /^\/proj/) &&
! ($tempfile =~ /^\/groups/) &&
! ($tempfile =~ /^\/users/)) {
......@@ -141,7 +143,8 @@ sub fatal($)
{
my($mesg) = $_[0];
system("/bin/rm", "-rf", "$dirname");
system("/bin/rm", "-rf", "$dirname")
if (defined($dirname));
die("*** $0:\n".
" $mesg\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment