1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-04 10:41:11 +02:00

43091: In the (u) glob qualifier, expand and correct "unknown user" error messages.

This commit is contained in:
Daniel Shahaf 2018-06-22 16:19:46 +00:00
parent 0a6cb5078d
commit 3d7215cc82
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2018-06-25 Daniel Shahaf <d.s@daniel.shahaf.name>
* 43091: Src/glob.c: In the (u) glob qualifier, expand and
correct "unknown user" error messages.
2018-06-25 Peter Stephenson <p.stephenson@samsung.com>
* 43084: Doc/Zsh/zle.yo, Functions/Chpwd/zsh_directory_name_cdr,

View file

@ -1455,13 +1455,15 @@ zglob(LinkList list, LinkNode np, int nountok)
if ((pw = getpwnam(s + arglen)))
data = pw->pw_uid;
else {
zerr("unknown user");
zerr("unknown username '%s'", s + arglen);
data = 0;
}
*tt = sav;
#else /* !USE_GETPWNAM */
sav = *tt;
zerr("unknown user");
*tt = '\0';
zerr("unable to resolve non-numeric username '%s'", s + arglen);
*tt = sav;
data = 0;
#endif /* !USE_GETPWNAM */
if (sav)