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:
parent
1be52186b4
commit
41b402d36d
|
@ -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.
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue