Commit 5921c861 authored by Leigh Stoller's avatar Leigh Stoller

Absolute path to mktemp to avoid perl taint warnings.

parent 348d7009
#!/usr/bin/perl -w
#
# Copyright (c) 2000-2010 University of Utah and the Flux Group.
# Copyright (c) 2000-2013 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -424,7 +424,7 @@ sub TBMakeTempFile($)
my($prefix) = @_;
my $fname;
$fname = `mktemp /tmp/${prefix}.XXXXXX`;
$fname = `/usr/bin/mktemp /tmp/${prefix}.XXXXXX`;
if ($fname =~ /^([-\@\w\.\/]+)$/) {
$fname = $1;
......
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