From 846b53bde42614e30bbb260d4ba97140eb503f49 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 16 Sep 2005 09:03:24 +0000 Subject: [PATCH] * Set the current directory to something well-defined. Might help in setuid installations. --- scripts/download-using-manifests.pl.in | 2 ++ 1 file changed, 2 insertions(+) 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";