diff options
author | seb <seb@pkgsrc.org> | 2005-02-15 22:45:54 +0000 |
---|---|---|
committer | seb <seb@pkgsrc.org> | 2005-02-15 22:45:54 +0000 |
commit | 961aa94ac550ef7269cc7060e1cd2e76250a7f04 (patch) | |
tree | 06ee6c64b4cb5107e75cc1ecc621bdc87dca4ba1 /mail/sympa/patches | |
parent | 35e5e8943354cb8239939489c85d5cc0f8d89dcf (diff) | |
download | pkgsrc-961aa94ac550ef7269cc7060e1cd2e76250a7f04.tar.gz |
Apply security fixes for CAN-2005-0073. Patches obtained from
Sympa's CVS repository via Sympa's homepage.
Bump PKGREVISION to 2.
Diffstat (limited to 'mail/sympa/patches')
-rw-r--r-- | mail/sympa/patches/patch-ad | 25 | ||||
-rw-r--r-- | mail/sympa/patches/patch-ae | 25 |
2 files changed, 50 insertions, 0 deletions
diff --git a/mail/sympa/patches/patch-ad b/mail/sympa/patches/patch-ad new file mode 100644 index 00000000000..c6bf148eadc --- /dev/null +++ b/mail/sympa/patches/patch-ad @@ -0,0 +1,25 @@ +$NetBSD: patch-ad,v 1.3 2005/02/15 22:45:54 seb Exp $ + +--- src/bouncequeue.c.orig 2003-10-07 12:04:47.000000000 +0000 ++++ src/bouncequeue.c +@@ -30,6 +30,11 @@ static char qfile[128]; + static char buf[16384]; + static int i, fd; + ++/* For HP-UX */ ++#ifndef EX_CONFIG ++# define EX_CONFIG 78 ++#endif ++ + #ifndef CONFIG + # define CONFIG "/etc/sympa.conf" + #endif +@@ -97,7 +102,7 @@ main(int argn, char **argv) + exit(EX_NOPERM); + } + umask(027); +- sprintf(qfile, "T.%s.%ld.%d", listname, time(NULL), getpid()); ++ snprintf(qfile, sizeof(qfile), "T.%s.%ld.%d", listname, time(NULL), getpid()); + fd = open(qfile, O_CREAT|O_WRONLY, 0600); + if (fd == -1) + exit(EX_TEMPFAIL); diff --git a/mail/sympa/patches/patch-ae b/mail/sympa/patches/patch-ae new file mode 100644 index 00000000000..87dc538c5e8 --- /dev/null +++ b/mail/sympa/patches/patch-ae @@ -0,0 +1,25 @@ +$NetBSD: patch-ae,v 1.3 2005/02/15 22:45:54 seb Exp $ + +--- src/queue.c.orig 2003-10-07 12:04:47.000000000 +0000 ++++ src/queue.c +@@ -32,6 +32,11 @@ static char qfile[128]; + static char buf[16384]; + static int i, fd; + ++/* For HP-UX */ ++#ifndef EX_CONFIG ++# define EX_CONFIG 78 ++#endif ++ + #ifndef CONFIG + # define CONFIG "/etc/sympa.conf" + #endif +@@ -116,7 +121,7 @@ main(int argn, char **argv) + exit(EX_NOPERM); + } + umask(027); +- sprintf(qfile, "T.%s.%ld.%d", listname, time(NULL), getpid()); ++ snprintf(qfile, sizeof(qfile), "T.%s.%ld.%d", listname, time(NULL), getpid()); + fd = open(qfile, O_CREAT|O_WRONLY, 0600); + if (fd == -1){ + char* buffer=(char*)malloc(strlen(argv[0])+strlen(queuedir)+80); |