Skip Menu |

This queue is for tickets about the Paranoid CPAN distribution.

Report information
The Basics
Id: 69183
Status: resolved
Estimated: 20 min
Worked: 20 min
Left: 20 min
Priority: 0/
Queue: Paranoid

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc: srezic [...] iconmobile.com
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.29
  • 0.20
  • 0.21
  • 0.22
  • 0.23
  • 0.24
  • 0.25
  • 0.26
  • 0.27
  • 0.28
Fixed in: 0.30



CC: srezic [...] iconmobile.com
Subject: Paranoid::Lockfile: should check return value of flock call
Reading the source code of Paranoid::Lockfile I saw that flock() and sysopen() are used without checking the return value. This can lead to error conditions. To simulate one, chown a lockfile to some other user and the try to use Paranoid::Lockfile with this lockfile. There will be a warning like this: flock() on closed filehandle $fd at /usr/perl5.12.0/lib/site_perl/5.12.0/Paranoid/Lockfile.pm line 127. and plock() would still return a success value, without doing any real locking. Regards, Slaven