Skip Menu |

This queue is for tickets about the DB_File-Lock CPAN distribution.

Report information
The Basics
Id: 5404
Status: new
Priority: 0/
Queue: DB_File-Lock

People
Owner: Nobody in particular
Requestors: autarch [...] urth.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: test for whether file is being opened for writing is broken
This code is not doing what you'd think, and will _always_ be true: $dbfile_data[1] && O_RDWR or $dbfile_data[1] && O_WRONLY You need to use bitwise-and (&), like this: $dbfile_data[1] & O_RDWR or $dbfile_data[1] & O_WRONLY