pkgsrc/archivers/gcpio/patches/patch-an
2005-11-03 19:38:50 +00:00

31 lines
784 B
Text

$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);