Subject: bin/244: mail.local ignores option -l
To: None <gnats-admin>
From: Charlie Root <root@harvey.uni-koblenz.de>
List: netbsd-bugs
Date: 05/05/1994 00:05:05
>Number: 244
>Category: bin
>Synopsis: mail.local ignores option -l
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 5 00:05:02 1994
>Originator: Uwe Arndt
>Organization:
Uni-Koblenz
Uwe Arndt | arndt@uniko.uni-koblenz.de
Universitaet Koblenz, |
Rechenzentrum | Voice: +49 261 9119-642
Rheinau 1, D-56075 Koblenz, Germany | Fax: +49 261 9119-499
>Release: current
>Environment:
System: NetBSD harvey.uni-koblenz.de 0.9a HARVEY#8 i386
>Description:
mail.local does not create a lockfile username.lock, if called
with -l. The "l" is missing from the getopt call.
This is a problem, when mounting and accessing Your mail spool
directory from a nfs-server (netbsd does not implement flock
accross the net). elm for example can use flock und username.lock
at once.
>How-To-Repeat:
mail.local -l with a large message und look for username.lock
>Fix:
*** mail.local.c.orig Thu May 5 08:39:10 1994
--- mail.local.c Wed May 4 11:20:24 1994
***************
*** 81,87 ****
openlog("mail.local", LOG_PERROR, LOG_MAIL);
from = NULL;
! while ((ch = getopt(argc, argv, "df:r:")) != EOF)
switch(ch) {
case 'd': /* backward compatible */
break;
--- 81,87 ----
openlog("mail.local", LOG_PERROR, LOG_MAIL);
from = NULL;
! while ((ch = getopt(argc, argv, "ldf:r:")) != EOF)
switch(ch) {
case 'd': /* backward compatible */
break;
>Audit-Trail:
>Unformatted:
------------------------------------------------------------------------------