diff options
author | joerg <joerg@pkgsrc.org> | 2006-01-03 15:56:54 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-01-03 15:56:54 +0000 |
commit | 3b0918224cfec78b2f79100655d1400936ee6266 (patch) | |
tree | 0740673cfde074547b73cba73248012c650c5472 /misc/xtail | |
parent | 2b3a11765a434d53fee6f620de74c0590ce601e0 (diff) | |
download | pkgsrc-3b0918224cfec78b2f79100655d1400936ee6266.tar.gz |
Prefer NAME_MAX to MAXNAMLEN, the former is POSIX, the latter a FFS limit.
Diffstat (limited to 'misc/xtail')
-rw-r--r-- | misc/xtail/distinfo | 4 | ||||
-rw-r--r-- | misc/xtail/patches/patch-ab | 30 |
2 files changed, 27 insertions, 7 deletions
diff --git a/misc/xtail/distinfo b/misc/xtail/distinfo index 5ad4dcd625d..6c4c6675cc2 100644 --- a/misc/xtail/distinfo +++ b/misc/xtail/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.2 2005/02/24 11:02:59 agc Exp $ +$NetBSD: distinfo,v 1.3 2006/01/03 15:56:54 joerg Exp $ SHA1 (xtail-2.1.tar.gz) = 1188baaf47e19a1ed6176a17ee6d144078657c17 RMD160 (xtail-2.1.tar.gz) = e3a9ac9e59c3237f0617833dea962d9ee7d59450 Size (xtail-2.1.tar.gz) = 26769 bytes SHA1 (patch-aa) = 93ba9954b01cfc744adea0ace1d1d39a545459ac -SHA1 (patch-ab) = 5c23b1fdb81ee6a47f3fe4a44066f7b63de6b8ee +SHA1 (patch-ab) = f88b0923dc47010857a9fa7ca161b68f0b1e0948 diff --git a/misc/xtail/patches/patch-ab b/misc/xtail/patches/patch-ab index 933d1761519..fdac624b88f 100644 --- a/misc/xtail/patches/patch-ab +++ b/misc/xtail/patches/patch-ab @@ -1,8 +1,28 @@ -$NetBSD: patch-ab,v 1.1.1.1 2001/07/08 14:29:51 simonb Exp $ +$NetBSD: patch-ab,v 1.2 2006/01/03 15:56:54 joerg Exp $ ---- miscfuncs.c.orig Mon Jun 5 17:13:22 2000 -+++ miscfuncs.c Mon Jul 9 00:22:08 2001 -@@ -281,7 +281,7 @@ +--- miscfuncs.c.orig 2000-06-05 07:13:22.000000000 +0000 ++++ miscfuncs.c +@@ -7,6 +7,7 @@ + #include <string.h> + #include <ctype.h> + #include <fcntl.h> ++#include <limits.h> + #include <errno.h> + #ifdef HAVE_UNISTD_H + # include <unistd.h> +@@ -65,7 +66,11 @@ int scan_directory(const char *dirname) + char *basename; + struct stat sbuf; + DIR *dirp; ++#ifdef NAME_MAX ++ static char pathname[NAME_MAX]; ++#else + static char pathname[MAXNAMLEN]; ++#endif + + Dprintf(stderr, ">>> scanning directory '%s'\n", dirname); + if ((dirp = opendir(dirname)) == NULL) +@@ -281,7 +286,7 @@ VOID *safe_malloc(size_t n) { VOID *p; if ((p = malloc(n)) == NULL) { @@ -11,7 +31,7 @@ $NetBSD: patch-ab,v 1.1.1.1 2001/07/08 14:29:51 simonb Exp $ exit(2); } return p; -@@ -291,7 +291,7 @@ +@@ -291,7 +296,7 @@ VOID *safe_realloc(VOID *p, size_t n) { VOID *p1; if ((p1 = realloc(p, n)) == NULL) { |