Bug#684645: /usr/lib/sm.bin/mail.local: Order of fcntl and dotlock in maillock

August 12th, 2012 - 06:30 pm ET by paul.szabo | Report spam
reassign 684645 sendmail-bin 8.14.4-2.1
thanks

Hmm... comparing with an strace of /usr/bin/bsd-mailx, shows that mailx
uses liblockfile and does:
open("/var/mail/psz", O_RDWR) = 3
fcntl64(3, F_SETLKW, {type=F_WRLCK, whence=SEEK_CUR, start=0, len=0}) = 0
link("/var/mail/.lk128035p639", "/var/mail/psz.lock") = 0
in the "right" order. This suggests that liblockfile is fine.

I thus suppose that mail.local only "pretends" to use liblockfile and
maillock(), but that in fact it does its own locking, this bug being
entirely in the sendmail-bin sources. - Such "pretence" was noted
previously, in the initial report of http://bugs.debian.org/648941 .

Cheers, Paul

Paul Szabo psz@maths.usyd.edu.au http://www.maths.usyd.edu.au/u/psz/
School of Mathematics and Statistics University of Sydney Australia


To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 owner
August 12th, 2012 - 06:20 pm ET | Report spam
Processing commands for :

reassign 684645 sendmail-bin 8.14.4-2.1


Bug #684645 [liblockfile1] liblockfile1: Order of fcntl and dotlock in maillock
Bug reassigned from package 'liblockfile1' to 'sendmail-bin'.
No longer marked as found in versions liblockfile/1.09-4.
Ignoring request to alter fixed versions of bug #684645 to the same values previously set
Bug #684645 [sendmail-bin] liblockfile1: Order of fcntl and dotlock in maillock
Marked as found in versions sendmail/8.14.4-2.1.
thanks


Stopping processing here.

Please contact me if you need assistance.
684645: http://bugs.debian.org/cgi-bin/bugr...i?bugh4645
Debian Bug Tracking System
Contact with problems


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics