Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Dec 1999 14:19:45 -0800 (PST)
From:      Scott Blachowicz <scott@sabunix.rresearch.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/15674: mail/nmh: fix spoolfile locking method
Message-ID:  <199912242219.OAA78145@sabmail.rresearch.com>

next in thread | raw e-mail | index | archive | help

>Number:         15674
>Category:       ports
>Synopsis:       fix spoolfile locking method in mail/nmh-1.0.2 port
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 24 14:20:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Scott Blachowicz
>Release:        FreeBSD 3.2-RELEASE i386
>Organization:
none
>Environment:

	FreeBSD 3.x & nmh-1.0.2 port

>Description:

	[not sure how to rate severity or priority...the 'inc' command that
	reads email from mail spool is basically busted]

	I was confused creating the most recent nmh port patch and
	reverted the locking to "dot locking" as I'd thought that sendmail
	used that.  Upon using the new 'inc' command and closer
	examination of sendmail, then mail.local, it looks like "flock"
	locking is more appropriate (to match mail.local's behavior).

>How-To-Repeat:

	

>Fix:
	
	Apply patch to port:

diff -urN ../nmh-curr/patches/patch-aa ./patches/patch-aa
--- ../nmh-curr/patches/patch-aa	Wed Dec 22 19:40:30 1999
+++ ./patches/patch-aa	Fri Dec 24 13:50:32 1999
@@ -1,6 +1,18 @@
-diff -ur ../../nmh-1.0.2-DIST/acconfig.h ./acconfig.h
---- ../../nmh-1.0.2-DIST/acconfig.h	Thu Oct 21 11:58:09 1999
-+++ ./acconfig.h	Sat Dec 11 11:54:28 1999
+--- ../../../nmh-1.0.2-DIST/acconfig.h	Thu Oct 21 11:58:09 1999
++++ ./acconfig.h	Fri Dec 24 13:50:12 1999
+@@ -22,10 +22,10 @@
+  * other programs which may modify your maildrops.
+  * Currently you can only use one type.
+  */
+-#define DOT_LOCKING   1
++/* #define DOT_LOCKING   1 */
+ /* #define FCNTL_LOCKING 1 */
+ /* #define LOCKF_LOCKING 1 */
+-/* #define FLOCK_LOCKING 1 */
++#define FLOCK_LOCKING 1
+ 
+ /*
+  * If you have defined DOT_LOCKING, then the default is to
 @@ -104,7 +104,7 @@
   * The prefix which is prepended to the name of messages when they
   * are "removed" by rmm.  This should typically be `,' or `#'


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912242219.OAA78145>