* Set the current directory to something well-defined. Might help in
setuid installations.
This commit is contained in:
parent
5c0770ac84
commit
846b53bde4
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,8 @@ my $tmpDir;
|
||||||
do { $tmpDir = tmpnam(); }
|
do { $tmpDir = tmpnam(); }
|
||||||
until mkdir $tmpDir, 0700;
|
until mkdir $tmpDir, 0700;
|
||||||
|
|
||||||
|
chdir $tmpDir or die "cannot change to `$tmpDir': $!";
|
||||||
|
|
||||||
my $tmpNar = "$tmpDir/nar";
|
my $tmpNar = "$tmpDir/nar";
|
||||||
my $tmpNar2 = "$tmpDir/nar2";
|
my $tmpNar2 = "$tmpDir/nar2";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue