mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
25 lines
590 B
Plaintext
25 lines
590 B
Plaintext
$NetBSD: patch-ai,v 1.8 2008/06/14 08:58:06 tron Exp $
|
|
|
|
--- sendmail/mci.c.orig 2007-11-13 23:44:25.000000000 +0000
|
|
+++ sendmail/mci.c 2008-06-08 15:28:50.000000000 +0100
|
|
@@ -20,6 +20,7 @@
|
|
#endif /* NETINET || NETINET6 */
|
|
|
|
#include <dirent.h>
|
|
+#include <limits.h>
|
|
|
|
static int mci_generate_persistent_path __P((const char *, char *,
|
|
int, bool));
|
|
@@ -717,7 +718,11 @@
|
|
{
|
|
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;
|