diff options
Diffstat (limited to 'archivers/gcpio/patches/patch-an')
-rw-r--r-- | archivers/gcpio/patches/patch-an | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/archivers/gcpio/patches/patch-an b/archivers/gcpio/patches/patch-an new file mode 100644 index 00000000000..9fd3a70dddc --- /dev/null +++ b/archivers/gcpio/patches/patch-an @@ -0,0 +1,31 @@ +$NetBSD: patch-an,v 1.1 2005/11/03 19:38:50 adrianp Exp $ + +--- src/userspec.c.orig 2005-06-22 23:26:10.000000000 +0100 ++++ src/userspec.c +@@ -72,7 +72,7 @@ extern struct group *getgrgid (gid_t gid + otherwise return 0. */ + + static int +-isnumber (const char *str) ++cpio_isnumber (const char *str) + { + for (; *str; str++) + if (!isdigit (*str)) +@@ -136,7 +136,7 @@ parse_user_spec (const char *spec_arg, u + if (pwd == NULL) + { + +- if (!isnumber (u)) ++ if (!cpio_isnumber (u)) + error_msg = _("invalid user"); + else + { +@@ -182,7 +182,7 @@ parse_user_spec (const char *spec_arg, u + grp = getgrnam (g); + if (grp == NULL) + { +- if (!isnumber (g)) ++ if (!cpio_isnumber (g)) + error_msg = _("invalid group"); + else + *gid = atoi (g); |