flock breaks in pop.pl on Solaris
Brought to you by:
bit-man
Could not
lock /usr/local/aMail/initialize_user/alex/folders.
Bad file number at /usr/local/aMail/program/pop.pl
line 154.
Line reads:
flock(MAILBOX,2) or die "Could not lock $db_path/
$amail_ID/folders. $!";
flock breaks on solaris when trying to lock a file
that is opened for only read. (IE &safe_open_read)
the 2 in flock should be LOCK_EX or LOCK_SH(consts are
always better to play with when it comes to
portability)
commented out locking as a quick fix, would need to
trace into safe_open_read to ensure locks can be
functional on Sol machines. Would imagine BSD has
simular issue.
-Jinxed
Anonymous