head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.10 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.8 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.6 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.4 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.2 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q2:1.1.1.1.0.22 pkgsrc-2009Q2-base:1.1.1.1 pkgsrc-2009Q1:1.1.1.1.0.20 pkgsrc-2009Q1-base:1.1.1.1 pkgsrc-2008Q4:1.1.1.1.0.18 pkgsrc-2008Q4-base:1.1.1.1 pkgsrc-2008Q3:1.1.1.1.0.16 pkgsrc-2008Q3-base:1.1.1.1 cube-native-xorg:1.1.1.1.0.14 cube-native-xorg-base:1.1.1.1 pkgsrc-2008Q2:1.1.1.1.0.12 pkgsrc-2008Q2-base:1.1.1.1 cwrapper:1.1.1.1.0.10 pkgsrc-2008Q1:1.1.1.1.0.8 pkgsrc-2008Q1-base:1.1.1.1 pkgsrc-2007Q4:1.1.1.1.0.6 pkgsrc-2007Q4-base:1.1.1.1 pkgsrc-2007Q3:1.1.1.1.0.4 pkgsrc-2007Q3-base:1.1.1.1 pkgsrc-2007Q2:1.1.1.1.0.2 pkgsrc-2007Q2-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.2 date 2009.09.07.14.31.09; author jnemeth; state dead; branches; next 1.1; 1.1 date 2007.04.17.10.16.53; author jnemeth; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2007.04.17.10.16.53; author jnemeth; state Exp; branches; next ; desc @@ 1.2 log @This is ancient, unmaintained (both upstream and in pkgsrc), doesn't build on current NetBSD releases, and nobody said anything when I asked, so bye-bye. @ text @$NetBSD: patch-ai,v 1.1 2007/04/17 10:16:53 jnemeth Exp $ --- sendmail/mci.c.orig 2005-07-12 22:27:44.000000000 +0000 +++ sendmail/mci.c @@@@ -20,6 +20,7 @@@@ SM_RCSID("@@(#)$Id: mci.c,v 8.216 2005/07 #endif /* NETINET || NETINET6 */ #include +#include static int mci_generate_persistent_path __P((const char *, char *, int, bool)); @@@@ -717,7 +718,11 @@@@ mci_lock_host_statfile(mci) { int save_errno = errno; int retVal = EX_OK; +#if defined(PATH_MAX) + char fname[PATH_MAX]; +#else char fname[MAXPATHLEN]; +#endif if (HostStatDir == NULL || mci->mci_host == NULL) return EX_OK; @@@@ -1135,7 +1140,7 @@@@ mci_traverse_persistent(action, pathname pathname, sm_errstring(errno)); return -1; } - len = sizeof(newpath) - MAXNAMLEN - 3; + len = sizeof(newpath) - 2; /* enough space for '/' and NUL */ if (sm_strlcpy(newpath, pathname, len) >= len) { if (tTd(56, 2)) @@@@ -1145,6 +1150,7 @@@@ mci_traverse_persistent(action, pathname } newptr = newpath + strlen(newpath); *newptr++ = '/'; + len = sizeof(newpath) - (newptr - newpath); /* ** repeat until no file has been removed @@@@ -1161,9 +1167,8 @@@@ mci_traverse_persistent(action, pathname if (e->d_name[0] == '.') continue; - (void) sm_strlcpy(newptr, e->d_name, - sizeof newpath - - (newptr - newpath)); + if (sm_strlcpy(newptr, e->d_name, len) >= len) + continue; if (StopRequest) stop_sendmail(); @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD: patch-ai,v 1.6 2006/06/07 14:48:28 joerg Exp $ @ 1.1.1.1 log @Rename of current sendmail package to sendmail813 to make way for new sendmail 8.14.x tree in pkgsrc. Changes to the original package include: - Path changes in Makefile and Makefile.common to reflect new location under mail/ of this package - Fix a bunch of issues found by pkg_lint @ text @@