From c245cce03792b3c2f20cdf7f0d53bc79594c87f3 Mon Sep 17 00:00:00 2001 From: sturm Date: Fri, 11 Feb 2005 19:11:39 +0000 Subject: [PATCH] A patch from Philip Guenther (procmail maintainer) fixing a crash when procmail is invoked without arguments and then receive a ^C. from rohee@ --- mail/procmail/Makefile | 3 ++- mail/procmail/patches/patch-src_comsat_c | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 mail/procmail/patches/patch-src_comsat_c diff --git a/mail/procmail/Makefile b/mail/procmail/Makefile index 021fb5afc71..8e5af785e39 100644 --- a/mail/procmail/Makefile +++ b/mail/procmail/Makefile @@ -1,9 +1,10 @@ -# $OpenBSD: Makefile,v 1.28 2005/01/04 21:16:43 sturm Exp $ +# $OpenBSD: Makefile,v 1.29 2005/02/11 19:11:39 sturm Exp $ COMMENT= "filtering local mail delivery agent" DISTNAME= procmail-3.22 CATEGORIES= mail +PKGNAME= ${DISTNAME}p0 MASTER_SITES= ${HOMEPAGE} \ ftp://ftp.psg.com/pub/unix/procmail/ \ diff --git a/mail/procmail/patches/patch-src_comsat_c b/mail/procmail/patches/patch-src_comsat_c new file mode 100644 index 00000000000..4faedb3a7d6 --- /dev/null +++ b/mail/procmail/patches/patch-src_comsat_c @@ -0,0 +1,17 @@ +$OpenBSD: patch-src_comsat_c,v 1.1 2005/02/11 19:11:39 sturm Exp $ + +A patch from Philip Guenther (procmail maintainer) fixing a +crash when procmail is invoked without arguments and then +receive a ^C. + +--- src/comsat.c.orig Tue Sep 11 06:55:46 2001 ++++ src/comsat.c Thu Feb 10 00:31:59 2005 +@@ -120,7 +120,7 @@ void sendcomsat(folder)const char*folder + { int s;const char*p; + if(!csvalid||!buf) /* is comat on and set to a valid address? */ + return; +- if(!*cslgname||strlen(cslgname)+2>linebuf) /* is $LOGNAME bogus? */ ++ if(!cslgname||!*cslgname||strlen(cslgname)+2>linebuf)/* is $LOGNAME bogus? */ + return; + if(!(p=folder?folder:cslastf)) /* do we have a folder? */ + return;