NetBSD Problem Report #244

From gnats  Wed May  4 23:54:04 1994
Received: from harvey.uni-koblenz.de (root@harvey.uni-koblenz.de [141.26.4.8]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id XAA03715 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Wed, 4 May 1994 23:53:59 -0700
Message-Id: <199405050653.IAA19755@harvey.uni-koblenz.de>
Date: Thu, 5 May 1994 08:53:57 +0200
From: Charlie Root <root@harvey.uni-koblenz.de>
Reply-To: root@harvey.uni-koblenz.de
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: mail.local ignores option -l
X-Send-Pr-Version: 3.2

>Number:         244
>Category:       bin
>Synopsis:       mail.local ignores option -l
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 05 00:05:02 +0000 1994
>Closed-Date:    Fri May 06 17:45:40 +0000 1994
>Last-Modified:  
>Originator:     Uwe Arndt
>Release:        current
>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
>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;
>Release-Note:
>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Fri May  6 17:45:40 1994
State-Changed-Why:
Theo checked in this fix.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.