pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files/db Deal with missing PATH_M...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c5794a44ce7d
branches:  trunk
changeset: 558547:c5794a44ce7d
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed May 06 16:57:31 2009 +0000

description:
Deal with missing PATH_MAX as reported in PR 41368.

diffstat:

 pkgtools/libnbcompat/files/db/btree/bt_open.c  |  10 +++++++---
 pkgtools/libnbcompat/files/db/hash/hash_page.c |   8 ++++++--
 2 files changed, 13 insertions(+), 5 deletions(-)

diffs (61 lines):

diff -r b8354694fbe1 -r c5794a44ce7d pkgtools/libnbcompat/files/db/btree/bt_open.c
--- a/pkgtools/libnbcompat/files/db/btree/bt_open.c     Wed May 06 15:54:50 2009 +0000
+++ b/pkgtools/libnbcompat/files/db/btree/bt_open.c     Wed May 06 16:57:31 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bt_open.c,v 1.3 2009/02/09 20:35:21 joerg Exp $        */
+/*     $NetBSD: bt_open.c,v 1.4 2009/05/06 16:57:31 joerg Exp $        */
 /*     NetBSD: bt_open.c,v 1.24 2008/09/11 12:58:00 joerg Exp  */
 
 /*-
@@ -36,7 +36,7 @@
 #include <nbcompat.h>
 #include <nbcompat/cdefs.h>
 
-__RCSID("$NetBSD: bt_open.c,v 1.3 2009/02/09 20:35:21 joerg Exp $");
+__RCSID("$NetBSD: bt_open.c,v 1.4 2009/05/06 16:57:31 joerg Exp $");
 
 /*
  * Implementation of btree access method for 4.4BSD.
@@ -392,7 +392,11 @@
        size_t len;
        int fd;
        char *envtmp;
-       char path[PATH_MAX];
+#ifdef PATH_MAX
+       char namestr[PATH_MAX];
+#lse
+       char namestr[MAXPATHLEN];
+#endif
 
 #if HAVE_ISSETUGID
        if (issetugid())
diff -r b8354694fbe1 -r c5794a44ce7d pkgtools/libnbcompat/files/db/hash/hash_page.c
--- a/pkgtools/libnbcompat/files/db/hash/hash_page.c    Wed May 06 15:54:50 2009 +0000
+++ b/pkgtools/libnbcompat/files/db/hash/hash_page.c    Wed May 06 16:57:31 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hash_page.c,v 1.3 2009/02/09 20:35:22 joerg Exp $      */
+/*     $NetBSD: hash_page.c,v 1.4 2009/05/06 16:57:31 joerg Exp $      */
 /*     NetBSD: hash_page.c,v 1.23 2008/09/11 12:58:00 joerg Exp        */
 
 /*-
@@ -36,7 +36,7 @@
 #include <nbcompat.h>
 #include <nbcompat/cdefs.h>
 
-__RCSID("$NetBSD: hash_page.c,v 1.3 2009/02/09 20:35:22 joerg Exp $");
+__RCSID("$NetBSD: hash_page.c,v 1.4 2009/05/06 16:57:31 joerg Exp $");
 
 /*
  * PACKAGE:  hashing
@@ -865,7 +865,11 @@
 {
        sigset_t set, oset;
        char *envtmp;
+#ifdef PATH_MAX
        char namestr[PATH_MAX];
+#lse
+       char namestr[MAXPATHLEN];
+#endif
 
 #if HAVE_ISSETUGID
        if (issetugid())



Home | Main Index | Thread Index | Old Index