procmail
[Top] [All Lists]

Re: 775 mail spool and "Bypassed locking"

1997-04-18 13:11:00
On Wed, 16 Apr 1997 15:32:19 -0400, Roderick Schertler 
<roderick(_at_)argon(_dot_)org> said:

I don't see how this setup is supposed to work with a mail spool
directory that looks like

    drwxrwxr-x   6 root     mail          512 Apr 16 14:46 /var/mail

and uses .lock file locking, what am I missing?

I haven't seen any responses to this query.  If anyone is using procmail
on a system which uses setgid-mail mail agents and has a mode 775 group
mail spool directory would you please let me know what you see when you
run this test?

    $ mkdir empty-dir
    $ cd empty-dir
    $ echo test | ../formail -a 'To: foo' | HOME=`pwd` ../procmail VERBOSE=on
    procmail: [10150] Fri Apr 18 15:47:08 1997
    procmail: Bypassed locking "/var/mail/roderick.lock"
    procmail: Assigning "LASTFOLDER=/var/mail/roderick"
    procmail: Opening "/var/mail/roderick"
    procmail: Acquiring kernel-lock
    From foo(_at_)bar  Fri Apr 18 15:47:08 1997
      Folder: /var/mail/roderick                                         54
    procmail: Notified comsat: "roderick(_at_)2783:/var/mail/roderick"
    $ ls -ld ../procmail /var/mail
    -rwsr-sr-x   2 root     mail        83748 Apr 18 15:40 ../procmail
    drwxrwxr-x   6 root     mail          512 Apr 18 15:33 /var/mail

procmail is deciding not to try to create /var/mail/roderick.lock to
lock the mail file, and judging from the code it looks like this is what
it's meant to do.  I don't understand it.

-- 
Roderick Schertler
roderick(_at_)argon(_dot_)org