pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/netatalk Prefer NAME_MAX over MAXNAMLEN, fixes bui...
details: https://anonhg.NetBSD.org/pkgsrc/rev/94dfb61de2a9
branches: trunk
changeset: 513891:94dfb61de2a9
user: joerg <joerg%pkgsrc.org@localhost>
date: Mon Jun 05 17:23:38 2006 +0000
description:
Prefer NAME_MAX over MAXNAMLEN, fixes build on DragonFly.
diffstat:
net/netatalk/distinfo | 3 ++-
net/netatalk/patches/patch-ab | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 1 deletions(-)
diffs (55 lines):
diff -r 1e16d20315b6 -r 94dfb61de2a9 net/netatalk/distinfo
--- a/net/netatalk/distinfo Mon Jun 05 17:22:39 2006 +0000
+++ b/net/netatalk/distinfo Mon Jun 05 17:23:38 2006 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.21 2005/10/07 12:18:19 rillig Exp $
+$NetBSD: distinfo,v 1.22 2006/06/05 17:23:38 joerg Exp $
SHA1 (netatalk-2.0.3.tar.bz2) = ce2d5dd123467ccae72fc62ca4ee3738019455f2
RMD160 (netatalk-2.0.3.tar.bz2) = 29b763400a45797ac4a8e499d5328aa91a091c91
Size (netatalk-2.0.3.tar.bz2) = 1471804 bytes
SHA1 (patch-aa) = 4063221494dadda7a8db1ba090e601d57c200201
+SHA1 (patch-ab) = 10bf2fdd900a6c2189376757e921bb6228e0f19c
SHA1 (patch-ac) = ba559d1b957172e77ec8eb9cc5c60d2f88044ffa
SHA1 (patch-ad) = 311d00d165688d4baa1365ba6c4147bd6293f3d8
SHA1 (patch-af) = 997909d7cf444a2481693069864da9134ce413d4
diff -r 1e16d20315b6 -r 94dfb61de2a9 net/netatalk/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/netatalk/patches/patch-ab Mon Jun 05 17:23:38 2006 +0000
@@ -0,0 +1,36 @@
+$NetBSD: patch-ab,v 1.11 2006/06/05 17:23:38 joerg Exp $
+
+--- bin/psorder/psorder.c.orig 2006-06-05 16:54:26.000000000 +0000
++++ bin/psorder/psorder.c
+@@ -35,6 +35,7 @@
+ #include <sys/uio.h>
+ #include <sys/file.h>
+ #include <ctype.h>
++#include <limits.h>
+ #ifdef HAVE_FCNTL_H
+ #include <fcntl.h>
+ #endif /* HAVE_FCNTL_H */
+@@ -102,7 +103,11 @@ psorder( path )
+ {
+ int tempfd;
+ int inputfd;
++#if defined(NAME_MAX)
++ char tempfile[NAME_MAX];
++#else
+ char tempfile[MAXNAMLEN];
++#endif
+
+ filesetup( path, &inputfd, tempfile, &tempfd );
+ readps( inputfd, tempfd, tempfile );
+@@ -151,7 +156,11 @@ filesetup( inputfile, infd, tfile, tfd )
+ make temporary file
+ */
+
++#if defined(NAME_MAX)
++ (void *)strncpy( tfile, template, NAME_MAX );
++#else
+ (void *)strncpy( tfile, template, MAXNAMLEN );
++#endif
+ if (( *tfd = mkstemp( tfile )) == -1 ) {
+ fprintf( stderr, "can't create temporary file %s\n", tfile );
+ filecleanup( -1, -1, "" );
Home |
Main Index |
Thread Index |
Old Index