diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-06-17 17:56:42 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-06-17 17:56:42 +0000 |
commit | ef9bbad664dc60dd07d9bee2c1e81281a7c4e80e (patch) | |
tree | 3f5b25756d68d05480d52b8d37a742c659a16747 /mail | |
parent | Add empty line after comment section. Add space after first "#". (diff) |
Better fix for '.' problem
Diffstat (limited to 'mail')
-rw-r--r-- | mail/procmail/files/patch-ad | 27 |
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 ---- |