* lib/userspec.c (parse_with_separator):
Don’t set *username to a numeric string that is not a user name,
and similarly for *groupname. Needed to fix Bug#53631.
+2022-02-04 Paul Eggert <eggert@cs.ucla.edu>
+
+ userspec: help fix GNU ‘id’ incompatibility
+ * lib/userspec.c (parse_with_separator):
+ Don’t set *username to a numeric string that is not a user name,
+ and similarly for *groupname. Needed to fix Bug#53631.
+
2022-01-30 Pádraig Brady <P@draigBrady.com>
argmatch: add variants that only match full argument
pwd = (*u == '+' ? NULL : getpwnam (u));
if (pwd == NULL)
{
+ username = NULL;
bool use_login_group = (separator != NULL && g == NULL);
if (use_login_group)
{
grp = (*g == '+' ? NULL : getgrnam (g));
if (grp == NULL)
{
+ groupname = NULL;
unsigned long int tmp;
if (xstrtoul (g, NULL, 10, &tmp, "") == LONGINT_OK
&& tmp <= MAXGID && (gid_t) tmp != (gid_t) -1)