Re: Problems using liblockfile.
email@example.com (Miquel van Smoorenburg) writes:
> Well, the lock is defined as
Right, it liblockfile never got that far. It tried to create the file
/var/spool/mail/.lk05558fraven and then fell over because it didn't
have sufficient permissions.
> >(Shouldn't fetchmail, smail, sendmail, etc. be converted to
> >liblockfile? We could be losing mail otherwise, no?)
> Not if they use the same locking policy. Sendmail uses an external program
> to do its locking; usually that's procmail or deliver and both of them
> use NFS-safe dotlocking.
So you're saying they all do in fact use compatible mechanisms
(i.e. locking the same filename, and doing it without race
> Emacs' movemail can be run setuid can't it? Setgid mail would be enough
> in this case however.
Actually, supposedly it can, and it has to be for its pop access
option to work.
In any case, it would probably be good if all the programs were
standardized to use liblockfile (or the maillock binary you
mentioned). This would mean that mail locking policy changes would be
trivial to implement.
Rob Browning <firstname.lastname@example.org>
PGP fingerprint = E8 0E 0D 04 F5 21 A0 94 53 2B 97 F5 D6 4E 39 30
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to email@example.com .