Hi.

Any procmail users around?
I just use procmail in a minimal way, but I'm annoyed by the fact that 
it creates mailbox group writable under /var/mail/. I don't see a reason 
for it and it also makes the security script complains about the perms.

Does anyone know of a reason why procmail would use a umask of 007?
If not, could we consider the following:

Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/procmail/Makefile,v
retrieving revision 1.34
diff -u -r1.34 Makefile
--- Makefile    8 Mar 2009 10:34:10 -0000       1.34
+++ Makefile    30 Nov 2009 07:52:29 -0000
@@ -4,7 +4,7 @@
 
 DISTNAME=      procmail-3.22
 CATEGORIES=    mail
-PKGNAME=       ${DISTNAME}p3
+PKGNAME=       ${DISTNAME}p4
 
 MASTER_SITES=  ${HOMEPAGE} \
                ftp://ftp.psg.com/pub/unix/procmail/ \
Index: patches/patch-config_h
===================================================================
RCS file: patches/patch-config_h
diff -N patches/patch-config_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-config_h      30 Nov 2009 07:52:29 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- config.h.orig      Mon Nov 30 08:51:18 2009
++++ config.h   Mon Nov 30 08:51:44 2009
+@@ -144,7 +144,7 @@
+ #define OVERRIDE_MASK (S_IXUSR|S_ISUID|S_ISGID|S_ISVTX)    /* if found set */
+                   /* the permissions on the mailbox will be left untouched */
+ #define INIT_UMASK    (S_IRWXG|S_IRWXO)                          /* == 077 */
+-#define GROUPW_UMASK  (INIT_UMASK&~S_IRWXG)                      /* == 007 */
++#define GROUPW_UMASK  (INIT_UMASK)                               /* == 077 */
+ #define NORMperm      \
+  (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH|UPDATE_MASK)
+            /* == 0667, normal mode bits used to create files, before umask */
Index: patches/patch-src_comsat_c
===================================================================
RCS file: /cvs/ports/mail/procmail/patches/patch-src_comsat_c,v
retrieving revision 1.1
diff -u -r1.1 patch-src_comsat_c
--- patches/patch-src_comsat_c  11 Feb 2005 19:11:39 -0000      1.1
+++ patches/patch-src_comsat_c  30 Nov 2009 07:52:29 -0000
@@ -5,8 +5,8 @@
 receive a ^C.
 
 --- src/comsat.c.orig  Tue Sep 11 06:55:46 2001
-+++ src/comsat.c       Thu Feb 10 00:31:59 2005
-@@ -120,7 +120,7 @@ void sendcomsat(folder)const char*folder
++++ src/comsat.c       Mon Nov 30 08:51:09 2009
+@@ -120,7 +120,7 @@ void sendcomsat(folder)const char*folder;
  { int s;const char*p;
    if(!csvalid||!buf)            /* is comat on and set to a valid address? */
       return;
Index: patches/patch-src_pipes_c
===================================================================
RCS file: /cvs/ports/mail/procmail/patches/patch-src_pipes_c,v
retrieving revision 1.1
diff -u -r1.1 patch-src_pipes_c
--- patches/patch-src_pipes_c   15 Apr 2006 21:23:49 -0000      1.1
+++ patches/patch-src_pipes_c   30 Nov 2009 07:52:29 -0000
@@ -1,7 +1,7 @@
 $OpenBSD: patch-src_pipes_c,v 1.1 2006/04/15 21:23:49 sturm Exp $
---- src/pipes.c.orig   Wed Apr 12 16:16:42 2006
-+++ src/pipes.c        Wed Apr 12 16:17:03 2006
-@@ -194,7 +194,7 @@ perr:            progerr(line,excode,pwait==4
+--- src/pipes.c.orig   Tue Sep 11 06:58:44 2001
++++ src/pipes.c        Mon Nov 30 08:51:10 2009
+@@ -194,7 +194,7 @@ perr:            progerr(line,excode,pwait==4);  /* I'm goi
       makeblock(&temp,Stdfilled);
       tmemmove(temp.p,Stdout,Stdfilled);
       readdyn(&temp,&Stdfilled,Stdfilled+backlen+1);



-- 
Antoine

Reply via email to