1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-28 19:06:03 +02:00

51080: allow multibyte chars in glob qualifier (u:uname:)

This commit is contained in:
Jun-ichi Takimoto 2022-12-02 19:34:55 +09:00
parent 1be52186b4
commit 41b402d36d
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2022-12-02 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 51080: Src/glob.c: allow multibyte characters in glob qualifier
(u:uname:)
* 51079: Src/params.c, Test/D06subscript.ztst: metafy sep in the
array subscript flag (s:sep:) so that sep can contain \0 etc.

View File

@ -1481,7 +1481,7 @@ zglob(LinkList list, LinkNode np, int nountok)
sav = *tt;
*tt = '\0';
if ((pw = getpwnam(s + arglen)))
if ((pw = getpwnam(unmeta(s + arglen))))
data = pw->pw_uid;
else {
zerr("unknown username '%s'", s + arglen);