Commit ed4660c2 authored by Mike Hibler's avatar Mike Hibler

/tmp is a valid path in FreeBSD 10 as well as /var/tmp.

From Jeff Bowles <jbowles@newmexicoconsortium.org>.
(cherry picked from commit a29a2aef)
parent 2d43ff3f
#!/usr/bin/perl -wT
#
# Copyright (c) 2000-2004, 2006 University of Utah and the Flux Group.
# Copyright (c) 2000-2014 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -122,6 +122,7 @@ else {
#
if (! ($tempfile =~ /^\/tmp\/[-\w]+-\d+\.nsfile/) &&
! ($tempfile =~ /^\/var\/tmp\/php\w+/) &&
! ($tempfile =~ /^\/tmp\/php\w+/) &&
! TBValidUserDir($tempfile, 0)) {
fatal("$tempfile does not resolve to an appropriate directory!\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