aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-04-07 10:56:45 +0000
committerbbaetz%student.usyd.edu.au <>2002-04-07 10:56:45 +0000
commitae8a18de80c43febc782c4f398e75fdf89281601 (patch)
tree385198c02a27e1befa5e65f262ca8ca7b7f2edba /move.pl
parentBug 135815 - Regression on CGI.pl for link to showvotes.cgi. Patch by ddk, 2x... (diff)
downloadbugzilla-ae8a18de80c43febc782c4f398e75fdf89281601.tar.gz
bugzilla-ae8a18de80c43febc782c4f398e75fdf89281601.tar.bz2
bugzilla-ae8a18de80c43febc782c4f398e75fdf89281601.zip
Bug 134575 - some scripts trying to make world writable directories
r=justdave, gerv
Diffstat (limited to 'move.pl')
-rwxr-xr-xmove.pl6
1 files changed, 1 insertions, 5 deletions
diff --git a/move.pl b/move.pl
index f38644358..b20ee528b 100755
--- a/move.pl
+++ b/move.pl
@@ -50,11 +50,7 @@ sub Log {
sub Lock {
if ($::lockcount <= 0) {
$::lockcount = 0;
- if (!open(LOCKFID, ">>data/maillock")) {
- mkdir "data", 0777;
- chmod 0777, "data";
- open(LOCKFID, ">>data/maillock") || die "Can't open lockfile.";
- }
+ open(LOCKFID, ">>data/maillock") || die "Can't open data/maillock: $!";
my $val = flock(LOCKFID,2);
if (!$val) { # '2' is magic 'exclusive lock' const.
print "Content-type: text/html\n\n";