Bug#648941: /usr/lib/sm.bin/mail.local: Uses flock, not fcntl

2012-08-12 Thread paul . szabo
Dear Tobias, I submitted http://bugs.debian.org/684645 against liblockfile1. But then I realized that liblockfile is fine and that the bug must be within mail.local sources, so I re-assigned that bug to sendmail-bin. Cheers, Paul Paul Szabo p...@maths.usyd.edu.au http://www.maths.usyd.edu.

Bug#648941: /usr/lib/sm.bin/mail.local: Uses flock, not fcntl

2012-08-12 Thread paul . szabo
Dear Tobias, > Well, I don't know. I just saw that "Uses flock, not fcntl" is fixed. And I guess that was the main issue, leading to file corruption. Thanks for letting me know. > You could retitle the bug or create a new one to track the order issue. I wonder whether that bug is in sendmail-bi

Bug#648941: /usr/lib/sm.bin/mail.local: Uses flock, not fcntl

2012-08-12 Thread Tobias Hansen
Well, I don't know. I just saw that "Uses flock, not fcntl" is fixed. You could retitle the bug or create a new one to track the order issue. Best regards, Tobias Am 12.08.2012 11:43, schrieb paul.sz...@sydney.edu.au: > Dear Tobias, > >> fixed 648941 8.14.4-2.1 >> This is fixed in Wheezy. > > I

Bug#648941: /usr/lib/sm.bin/mail.local: Uses flock, not fcntl

2012-08-12 Thread paul . szabo
Dear Tobias, > fixed 648941 8.14.4-2.1 > This is fixed in Wheezy. Is it, really? The policy says: ... fcntl() locking must be combined with dot locking. To avoid deadlocks, a program should use fcntl() first and dot locking after this ... whereas strace shows: link("/var/mail/.lk10336dp63

Bug#648941: /usr/lib/sm.bin/mail.local: Uses flock, not fcntl

2012-08-11 Thread Tobias Hansen
fixed 648941 8.14.4-2.1 thanks This is fixed in Wheezy. Best regards, Tobias Hansen -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Bug#648941: /usr/lib/sm.bin/mail.local: Uses flock, not fcntl

2011-11-16 Thread Paul Szabo
Package: sendmail-bin Version: 8.14.3-9.4 Severity: serious File: /usr/lib/sm.bin/mail.local Justification: Policy 11.6 Using strace I see that mail.local uses flock: open("/var/mail/psz", O_WRONLY|O_APPEND) = 4 flock(4, LOCK_EX) = 0 (as well as a /var/mail/psz.lock fi