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 | 52188: skip tests that fail if multibyte is not available (diff) | |
| download | zsh-29644f12e742883ec9502205cffb318e446d7ca3.tar zsh-29644f12e742883ec9502205cffb318e446d7ca3.tar.gz zsh-29644f12e742883ec9502205cffb318e446d7ca3.tar.bz2 zsh-29644f12e742883ec9502205cffb318e446d7ca3.tar.lz zsh-29644f12e742883ec9502205cffb318e446d7ca3.tar.xz zsh-29644f12e742883ec9502205cffb318e446d7ca3.tar.zst 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 */ |
