* Set the current directory to something well-defined. Might help in

setuid installations.
This commit is contained in:
Eelco Dolstra 2005-09-16 09:03:24 +00:00
parent 5c0770ac84
commit 846b53bde4
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,8 @@ my $tmpDir;
do { $tmpDir = tmpnam(); }
until mkdir $tmpDir, 0700;
chdir $tmpDir or die "cannot change to `$tmpDir': $!";
my $tmpNar = "$tmpDir/nar";
my $tmpNar2 = "$tmpDir/nar2";