diff options
author | joerg <joerg@pkgsrc.org> | 2009-05-06 16:57:31 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-05-06 16:57:31 +0000 |
commit | 2e673bd5e8718d0acb0b432e117b7bedc4edf799 (patch) | |
tree | 6aa147b98ee49c87e5cd2332440d75f96ca26a45 /pkgtools | |
parent | e75508595b815504d44e753f7d9edc24cfe94ef8 (diff) | |
download | pkgsrc-2e673bd5e8718d0acb0b432e117b7bedc4edf799.tar.gz |
Deal with missing PATH_MAX as reported in PR 41368.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/libnbcompat/files/db/btree/bt_open.c | 10 | ||||
-rw-r--r-- | pkgtools/libnbcompat/files/db/hash/hash_page.c | 8 |
2 files changed, 13 insertions, 5 deletions
diff --git a/pkgtools/libnbcompat/files/db/btree/bt_open.c b/pkgtools/libnbcompat/files/db/btree/bt_open.c index 7da3a0c1d79..2c432a08448 100644 --- a/pkgtools/libnbcompat/files/db/btree/bt_open.c +++ b/pkgtools/libnbcompat/files/db/btree/bt_open.c @@ -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 @@ tmp(void) 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 --git a/pkgtools/libnbcompat/files/db/hash/hash_page.c b/pkgtools/libnbcompat/files/db/hash/hash_page.c index 5962e3ac813..7079c5192c0 100644 --- a/pkgtools/libnbcompat/files/db/hash/hash_page.c +++ b/pkgtools/libnbcompat/files/db/hash/hash_page.c @@ -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 @@ open_temp(HTAB *hashp) { sigset_t set, oset; char *envtmp; +#ifdef PATH_MAX char namestr[PATH_MAX]; +#lse + char namestr[MAXPATHLEN]; +#endif #if HAVE_ISSETUGID if (issetugid()) |