summaryrefslogtreecommitdiff
path: root/mail/procmail
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-06-17 17:56:42 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-06-17 17:56:42 +0000
commitef9bbad664dc60dd07d9bee2c1e81281a7c4e80e (patch)
tree3f5b25756d68d05480d52b8d37a742c659a16747 /mail/procmail
parentAdd empty line after comment section. Add space after first "#". (diff)
Better fix for '.' problem
Notes
Notes: svn path=/head/; revision=6980
Diffstat (limited to 'mail/procmail')
-rw-r--r--mail/procmail/files/patch-ad27
1 files changed, 10 insertions, 17 deletions
diff --git a/mail/procmail/files/patch-ad b/mail/procmail/files/patch-ad
index a289e4cb61fc..c73f9f9373cf 100644
--- a/mail/procmail/files/patch-ad
+++ b/mail/procmail/files/patch-ad
@@ -1,19 +1,12 @@
*** src/recommend.c.bak Wed Apr 2 07:15:45 1997
---- src/recommend.c Tue Jun 17 09:29:02 1997
+--- src/recommend.c Tue Jun 17 21:48:49 1997
***************
-*** 52,58 ****
- else if(chmdir==1)
- goto nogchmod;
- if(chmdir)
-! printf("chmod %c+w %s.\n",chmdir==1?'g':'a',mailspooldir);
- nogchmod:
- return EXIT_SUCCESS;
- }
---- 52,58 ----
- else if(chmdir==1)
- goto nogchmod;
- if(chmdir)
-! printf("chmod %c+w %s\n",chmdir==1?'g':'a',mailspooldir);
- nogchmod:
- return EXIT_SUCCESS;
- }
+*** 23,29 ****
+ { fprintf(stderr,"Please run this program via 'make recommend'\n");
+ return EX_USAGE;
+ }
+- strchr(mailspooldir,'\0')[-1]='\0'; /* strip last character */
+ for(p=checkf;*p;p++)
+ if(!stat(*p,&stbuf)&&stbuf.st_mode&S_ISGID)
+ { if(stbuf.st_mode&S_ISGID)
+--- 23,28 ----