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/utils.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/utils.c')
-rw-r--r-- | Src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c index 7028c155f..790625379 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -1069,7 +1069,7 @@ get_username(void) cached_uid = current_uid; zsfree(cached_username); if ((pswd = getpwuid(current_uid))) - cached_username = ztrdup(pswd->pw_name); + cached_username = ztrdup_metafy(pswd->pw_name); else cached_username = ztrdup(""); } |