Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 74929 | Differences between
and this patch

Collapse All | Expand All

(-)cpio-2.5.90.orig/src/userspec.c (-3 / +3 lines)
Lines 72-78 Link Here
72
   otherwise return 0. */
72
   otherwise return 0. */
73
73
74
static int
74
static int
75
isnumber (const char *str)
75
cpio_isnumber (const char *str)
76
{
76
{
77
  for (; *str; str++)
77
  for (; *str; str++)
78
    if (!isdigit (*str))
78
    if (!isdigit (*str))
Lines 136-142 Link Here
136
      if (pwd == NULL)
136
      if (pwd == NULL)
137
	{
137
	{
138
138
139
	  if (!isnumber (u))
139
	  if (!cpio_isnumber (u))
140
	    error_msg = _("invalid user");
140
	    error_msg = _("invalid user");
141
	  else
141
	  else
142
	    {
142
	    {
Lines 182-188 Link Here
182
      grp = getgrnam (g);
182
      grp = getgrnam (g);
183
      if (grp == NULL)
183
      if (grp == NULL)
184
	{
184
	{
185
	  if (!isnumber (g))
185
	  if (!cpio_isnumber (g))
186
	    error_msg = _("invalid group");
186
	    error_msg = _("invalid group");
187
	  else
187
	  else
188
	    *gid = atoi (g);
188
	    *gid = atoi (g);

Return to bug 74929