aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-09-16 09:03:24 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-09-16 09:03:24 +0000
commit846b53bde42614e30bbb260d4ba97140eb503f49 (patch)
tree7923bab53a428726ac83c248480878153a2c23d6 /scripts
parent5c0770ac847e3eb0ed004b75a52e2a94463b550f (diff)
* Set the current directory to something well-defined. Might help in
setuid installations.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/download-using-manifests.pl.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/download-using-manifests.pl.in b/scripts/download-using-manifests.pl.in
index 233d6a043..2a383e49c 100644
--- a/scripts/download-using-manifests.pl.in
+++ b/scripts/download-using-manifests.pl.in
@@ -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";