changeset 3050:aaaab011fac4

This bug had a serious impact on chown: `chown N:M FILE' (for integer N and M) would have treated it like `chown N:N FILE'. (parse_user_spec): Fix typo: s/u/g/.
author Jim Meyering <jim@meyering.net>
date Sat, 16 Dec 2000 13:28:13 +0000
parents 2dbeeb57e042
children ef5b95239cce
files lib/userspec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/userspec.c
+++ b/lib/userspec.c
@@ -304,7 +304,7 @@
 	  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;