pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/xtail Prefer NAME_MAX to MAXNAMLEN, the former is...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f594f6a6668e
branches: trunk
changeset: 505416:f594f6a6668e
user: joerg <joerg%pkgsrc.org@localhost>
date: Tue Jan 03 15:56:54 2006 +0000
description:
Prefer NAME_MAX to MAXNAMLEN, the former is POSIX, the latter a FFS limit.
diffstat:
misc/xtail/distinfo | 4 ++--
misc/xtail/patches/patch-ab | 30 +++++++++++++++++++++++++-----
2 files changed, 27 insertions(+), 7 deletions(-)
diffs (58 lines):
diff -r e10c5ee69e8c -r f594f6a6668e misc/xtail/distinfo
--- a/misc/xtail/distinfo Tue Jan 03 15:51:02 2006 +0000
+++ b/misc/xtail/distinfo Tue Jan 03 15:56:54 2006 +0000
@@ -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 -r e10c5ee69e8c -r f594f6a6668e misc/xtail/patches/patch-ab
--- a/misc/xtail/patches/patch-ab Tue Jan 03 15:51:02 2006 +0000
+++ b/misc/xtail/patches/patch-ab Tue Jan 03 15:56:54 2006 +0000
@@ -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 @@
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) {
Home |
Main Index |
Thread Index |
Old Index