aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-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 ----