mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
* 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(); }
|
||||
until mkdir $tmpDir, 0700;
|
||||
|
||||
chdir $tmpDir or die "cannot change to `$tmpDir': $!";
|
||||
|
||||
my $tmpNar = "$tmpDir/nar";
|
||||
my $tmpNar2 = "$tmpDir/nar2";
|
||||
|
||||
|
|
Loading…
Reference in a new issue