diff options
author | itojun <itojun> | 2002-10-08 06:12:21 +0000 |
---|---|---|
committer | itojun <itojun> | 2002-10-08 06:12:21 +0000 |
commit | 4e92c3326864e6d22b4e3926c31768dc24e9f426 (patch) | |
tree | e3a9cb111c0acdf25c0276012c5ea8c5f6aa72f1 /mail | |
parent | 44d03b72286ca888ece0381086b9f5f0d891f778 (diff) | |
download | pkgsrc-4e92c3326864e6d22b4e3926c31768dc24e9f426.tar.gz |
bring in smrsh patch. bump PKGREVISION
Diffstat (limited to 'mail')
-rw-r--r-- | mail/sendmail811/Makefile | 4 | ||||
-rw-r--r-- | mail/sendmail811/distinfo | 3 | ||||
-rw-r--r-- | mail/sendmail811/patches/patch-ag | 62 |
3 files changed, 66 insertions, 3 deletions
diff --git a/mail/sendmail811/Makefile b/mail/sendmail811/Makefile index 18c58d32563..c81d7e1d60e 100644 --- a/mail/sendmail811/Makefile +++ b/mail/sendmail811/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.1.1.1 2002/09/23 12:38:45 markd Exp $ +# $NetBSD: Makefile,v 1.2 2002/10/08 06:12:21 itojun Exp $ DISTNAME= sendmail.8.11.6 PKGNAME= sendmail-8.11.6 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= mail MASTER_SITES= ftp://ftp.sendmail.org/pub/sendmail/ \ ftp://ftp.fu-berlin.de/pub/unix/mail/sendmail/ \ diff --git a/mail/sendmail811/distinfo b/mail/sendmail811/distinfo index a4797aece0b..8e00811c0bb 100644 --- a/mail/sendmail811/distinfo +++ b/mail/sendmail811/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.1.1.1 2002/09/23 12:38:45 markd Exp $ +$NetBSD: distinfo,v 1.2 2002/10/08 06:12:21 itojun Exp $ SHA1 (sendmail.8.11.6.tar.gz) = 8f24fc7824f6d99f1be08a9eec6fe18d56cab1be Size (sendmail.8.11.6.tar.gz) = 1374835 bytes @@ -10,3 +10,4 @@ SHA1 (patch-ac) = bfb83dbd4209879f58b95f0328d68bb8e56ac119 SHA1 (patch-ad) = 93408922c222d5fe6a14cdd8a00060230a9195b9 SHA1 (patch-ae) = 5e3efecc7ac7ffed40278b3c29dd1152990f3b33 SHA1 (patch-af) = db9e5d94b1b1f4cd7e5c9f25b36772e90e2987fe +SHA1 (patch-ag) = 002f02fffce038bf9b7aeea8bce26f55c55f033f diff --git a/mail/sendmail811/patches/patch-ag b/mail/sendmail811/patches/patch-ag new file mode 100644 index 00000000000..37390444227 --- /dev/null +++ b/mail/sendmail811/patches/patch-ag @@ -0,0 +1,62 @@ +$NetBSD: patch-ag,v 1.1 2002/10/08 06:12:22 itojun Exp $ + +http://www.sendmail.org/smrsh.adv.txt + +--- smrsh/smrsh.c.orig Wed Apr 25 14:24:11 2001 ++++ smrsh/smrsh.c Tue Oct 8 15:10:39 2002 +@@ -57,6 +57,8 @@ + #include <unistd.h> + #include <stdio.h> + #include <sys/file.h> ++#include <sys/types.h> ++#include <sys/stat.h> + #include <string.h> + #include <ctype.h> + #include <errno.h> +@@ -154,6 +156,7 @@ + char cmdbuf[1000]; + char pathbuf[1000]; + char specialbuf[32]; ++ struct stat st; + + #ifndef DEBUG + # ifndef LOG_MAIL +@@ -291,6 +294,38 @@ + #ifdef DEBUG + printf("Trying %s\n", cmdbuf); + #endif /* DEBUG */ ++ if (stat(cmdbuf, &st) < 0) ++ { ++ /* can't stat it */ ++ fprintf(stderr, ++ "%s: %s not available for sendmail programs (stat failed)\n", ++ prg, cmd); ++ if (p != NULL) ++ *p = ' '; ++#ifndef DEBUG ++ syslog(LOG_CRIT, "uid %d: attempt to use %s (stat failed)", ++ (int) getuid(), cmd); ++#endif /* ! DEBUG */ ++ exit(EX_UNAVAILABLE); ++ } ++ if (!S_ISREG(st.st_mode) ++#ifdef S_ISLNK ++ && !S_ISLNK(st.st_mode) ++#endif /* S_ISLNK */ ++ ) ++ { ++ /* can't stat it */ ++ fprintf(stderr, ++ "%s: %s not available for sendmail programs (not a file)\n", ++ prg, cmd); ++ if (p != NULL) ++ *p = ' '; ++#ifndef DEBUG ++ syslog(LOG_CRIT, "uid %d: attempt to use %s (not a file)", ++ (int) getuid(), cmd); ++#endif /* ! DEBUG */ ++ exit(EX_UNAVAILABLE); ++ } + if (access(cmdbuf, X_OK) < 0) + { + /* oops.... crack attack possiblity */ |