forked from lix-project/lix
* Set the current directory to something well-defined. Might help in
setuid installations.
This commit is contained in:
parent
5c0770ac84
commit
846b53bde4
|
@ -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