summaryrefslogtreecommitdiffstats
path: root/defparams.pl
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-04-07 12:56:45 +0200
committerbbaetz%student.usyd.edu.au <>2002-04-07 12:56:45 +0200
commitae8a18de80c43febc782c4f398e75fdf89281601 (patch)
tree385198c02a27e1befa5e65f262ca8ca7b7f2edba /defparams.pl
parent09c6150e957783a972ea0123b4c31181f68c7410 (diff)
downloadbugzilla-ae8a18de80c43febc782c4f398e75fdf89281601.tar.gz
bugzilla-ae8a18de80c43febc782c4f398e75fdf89281601.tar.xz
Bug 134575 - some scripts trying to make world writable directories
r=justdave, gerv
Diffstat (limited to 'defparams.pl')
-rw-r--r--defparams.pl4
1 files changed, 1 insertions, 3 deletions
diff --git a/defparams.pl b/defparams.pl
index eddf50942..d88938f3c 100644
--- a/defparams.pl
+++ b/defparams.pl
@@ -64,8 +64,6 @@ sub WriteParams {
delete $::param{$item};
}
}
- mkdir("data", 0777);
- chmod 0777, "data";
my $tmpname = "data/params.$$";
open(FID, ">$tmpname") || die "Can't create $tmpname";
my $v = $::param{'version'};
@@ -76,7 +74,7 @@ sub WriteParams {
print FID "1;\n";
close FID;
rename $tmpname, "data/params" || die "Can't rename $tmpname to data/params";
- chmod 0666, "data/params";
+ ChmodDataFile('data/params', 0666);
}