projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20cc6a0
)
This bug had a serious impact on chown: `chown N:M FILE' (for integer
author
Jim Meyering
<jim@meyering.net>
Sat, 16 Dec 2000 13:28:13 +0000
(13:28 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 16 Dec 2000 13:28:13 +0000
(13:28 +0000)
N and M) would have treated it like `chown N:N FILE'.
(parse_user_spec): Fix typo: s/u/g/.
lib/userspec.c
patch
|
blob
|
history
diff --git
a/lib/userspec.c
b/lib/userspec.c
index 3b69d7395a293f764e41825200e79284071901ff..3e67b1b56305b8269a4c87074680ab3c7be8e358 100644
(file)
--- a/
lib/userspec.c
+++ b/
lib/userspec.c
@@
-304,7
+304,7
@@
parse_user_spec (const char *spec_arg, uid_t *uid, gid_t *gid,
else
{
unsigned long int tmp_long;
- if (xstrtoul (
u
, NULL, 0, &tmp_long, NULL) != LONGINT_OK
+ if (xstrtoul (
g
, NULL, 0, &tmp_long, NULL) != LONGINT_OK
|| tmp_long > MAXGID)
return _(E_invalid_group);
*gid = tmp_long;