diff options
author | Bart Schaefer <schaefer@zsh.org> | 2023-10-01 11:34:33 -0700 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2023-10-01 11:34:33 -0700 |
commit | 29644f12e742883ec9502205cffb318e446d7ca3 (patch) | |
tree | 34162573c0cda9dfcdfcfa04b5a42436214b1ff9 /Src/init.c | |
parent | 1b8446e1cd6dcd0644c1c96b952e11cbc472a24d (diff) | |
download | zsh-29644f12e742883ec9502205cffb318e446d7ca3.tar.gz zsh-29644f12e742883ec9502205cffb318e446d7ca3.tar.xz zsh-29644f12e742883ec9502205cffb318e446d7ca3.zip |
52193: handle UTF8-encoded USERNAME and therefore home directory in zcompile
Includes one unposted thinko fix ztrdup -> dupstring
Diffstat (limited to 'Src/init.c')
-rw-r--r-- | Src/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/init.c b/Src/init.c index ffb017e22..799ad19f6 100644 --- a/Src/init.c +++ b/Src/init.c @@ -1212,8 +1212,8 @@ setupvals(char *cmd, char *runscript, char *zsh_name) #ifdef USE_GETPWUID if ((pswd = getpwuid(cached_uid))) { if (EMULATION(EMULATE_ZSH)) - home = metafy(pswd->pw_dir, -1, META_DUP); - cached_username = ztrdup(pswd->pw_name); + home = ztrdup_metafy(pswd->pw_dir); + cached_username = ztrdup_metafy(pswd->pw_name); } else #endif /* USE_GETPWUID */ |