[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2733: /usr/bin/mail leaves lock files when disk full



Package: mailx
Version: 8.1-11

When saving messages to a user's mbox on exiting, if the disk is full,
/usr/bin/mail "panic"s and leaves the user's spool file locked.  Subsequent
attempts by the user to save their mail after the space problem is corrected
then fail due to the lock.  Note that on this system, /tmp and /home are on
the root filesystem, while /var is separate.  Also, receiving new mail seems
to fix the lock problem, but clearly this should not be relied upon.

$ lm /var/spool/mail/warwick*
-rw-rw----   1 warwick  mail       155107 Apr 21 06:43 /var/spool/mail/warwick
$ mail
Mail version 8.1 6/6/93 (POP extension).  Type ? for help.
"/var/spool/mail/warwick": 1 message 1 new
>N  1 warwick               Sun Apr 21 06:43 2966/155107
& 1
Message 1:
< Message text deleted >
& q
/home/warwick/mbox: No space left on device
panic: Invalid file pointer
$ lm /var/spool/mail/warwick*
-rw-rw----   1 warwick  mail       155107 Apr 21 06:43 /var/spool/mail/warwick
-r--------   1 warwick  mail            6 Apr 21 06:45 /var/spool/mail/warwick.lock
$


Package: mailx
Status: install ok installed
Priority: important
Section: mail
Maintainer: Sven Rudolph <sr1@inf.tu-dresden.de>
Version: 8.1-11
Provides: mail-reader
Depends: libc5, smail | mail-transport-agent
Conffiles:
 /etc/mail.rc 8667e099eef61206c29baa0c3d621d2f
Description: A simple user interface to sending and receiving mail.


				Warwick

----------------------------------------------------------------------------
Warwick Harvey                                    email: warwick@cs.mu.OZ.AU
Department of Computer Science                        phone: +61-3-9287-9171
University of Melbourne                                 fax: +61-3-9348-1184
Parkville, Victoria, AUSTRALIA 3052     web: http://www.cs.mu.OZ.AU/~warwick


Reply to: