mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
25 lines
626 B
Plaintext
25 lines
626 B
Plaintext
$NetBSD: patch-ai,v 1.9 2014/06/15 20:48:50 jnemeth Exp $
|
|
|
|
--- sendmail/mci.c.orig 2014-03-06 17:31:31.000000000 +0000
|
|
+++ sendmail/mci.c
|
|
@@ -20,6 +20,7 @@ SM_RCSID("@(#)$Id: mci.c,v 8.225 2013-11
|
|
#endif /* NETINET || NETINET6 */
|
|
|
|
#include <dirent.h>
|
|
+#include <limits.h>
|
|
|
|
static int mci_generate_persistent_path __P((const char *, char *,
|
|
int, bool));
|
|
@@ -744,7 +745,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;
|