diff options
Diffstat (limited to 'net/wget/patches/patch-ac')
-rw-r--r-- | net/wget/patches/patch-ac | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net/wget/patches/patch-ac b/net/wget/patches/patch-ac new file mode 100644 index 00000000000..4811fa21110 --- /dev/null +++ b/net/wget/patches/patch-ac @@ -0,0 +1,22 @@ +$NetBSD: patch-ac,v 1.5 2002/12/16 11:39:01 wiz Exp $ + +--- src/fnmatch.c.orig Sat May 18 05:05:15 2002 ++++ src/fnmatch.c +@@ -198,6 +198,17 @@ fnmatch (const char *pattern, const char + return (FNM_NOMATCH); + } + ++/* Return non-zero if S has a leading '/' or contains '../' */ ++int ++has_invalid_name (const char *s) ++{ ++ if (*s == '/') ++ return 1; ++ if (strstr(s, "../") != 0) ++ return 1; ++ return 0; ++} ++ + /* Return non-zero if S contains globbing wildcards (`*', `?', `[' or + `]'). */ + int |