diff options
Diffstat (limited to 'pkgtools/rdigest/patches/patch-ac')
-rw-r--r-- | pkgtools/rdigest/patches/patch-ac | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/pkgtools/rdigest/patches/patch-ac b/pkgtools/rdigest/patches/patch-ac index 3e1df949289..237933c88ce 100644 --- a/pkgtools/rdigest/patches/patch-ac +++ b/pkgtools/rdigest/patches/patch-ac @@ -1,24 +1,26 @@ -$NetBSD: patch-ac,v 1.3 2005/12/02 16:30:07 rillig Exp $ +$NetBSD: patch-ac,v 1.4 2008/09/18 10:38:45 joerg Exp $ ---- digest.c.orig 2005-01-20 21:10:03.000000000 -0500 +--- digest.c.orig 2008-09-18 12:13:50.000000000 +0200 +++ digest.c -@@ -43,9 +43,14 @@ +@@ -41,8 +41,17 @@ __RCSID("$NetBSD: digest.c,v 1.15 2007/0 #endif ++#include <nbcompat.h> ++#include <nbcompat/queue.h> ++#include <nbcompat/stat.h> -+#include <sys/queue.h> -+#include <sys/stat.h> -+ #ifdef HAVE_ERRNO_H #include <errno.h> #endif +#include <fcntl.h> ++#ifdef HAVE_FTS_H +#include <fts.h> ++#else ++#include <nbcompat/fts.h> ++#endif #ifdef HAVE_LOCALE_H #include <locale.h> - #endif -@@ -147,21 +152,178 @@ digest_file(char *fn, alg_t *alg) - return (rc); +@@ -158,4 +167,155 @@ digest_file(char *fn, alg_t *alg) } +struct excl { @@ -174,8 +176,7 @@ $NetBSD: patch-ac,v 1.3 2005/12/02 16:30:07 rillig Exp $ + int main(int argc, char **argv) - { - alg_t *alg; +@@ -164,13 +324,19 @@ main(int argc, char **argv) int rval; int i; + struct stat st; @@ -196,9 +197,7 @@ $NetBSD: patch-ac,v 1.3 2005/12/02 16:30:07 rillig Exp $ + break; } } - argc -= optind; -@@ -186,7 +348,9 @@ main(int argc, char **argv) - } +@@ -197,5 +363,7 @@ main(int argc, char **argv) } else { for (i = 0 ; i < argc ; i++) { - if (!digest_file(argv[i], alg)) { @@ -207,4 +206,3 @@ $NetBSD: patch-ac,v 1.3 2005/12/02 16:30:07 rillig Exp $ + (S_ISDIR(st.st_mode) && !digest_directory(argv[i], alg))) { (void) fprintf(stderr, "%s\n", argv[i]); rval = EXIT_FAILURE; - } |