diff options
author | ache <ache@FreeBSD.org> | 1997-06-18 01:56:42 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-06-18 01:56:42 +0800 |
commit | c6ba751aab126a5bbcfd8886010a41b8bcdeb903 (patch) | |
tree | 839f3ab4898ec1e5d5ac7990d16f42f84f79a4f3 /mail | |
parent | 0289eba63b09770d062b35cad2bce20cfb470ca2 (diff) | |
download | freebsd-ports-gnome-c6ba751aab126a5bbcfd8886010a41b8bcdeb903.tar.gz freebsd-ports-gnome-c6ba751aab126a5bbcfd8886010a41b8bcdeb903.tar.zst freebsd-ports-gnome-c6ba751aab126a5bbcfd8886010a41b8bcdeb903.zip |
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 ---- |