about summary refs log tree commit diff
path: root/Src/init.c
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2023-10-01 11:34:33 -0700
committerBart Schaefer <schaefer@zsh.org>2023-10-01 11:34:33 -0700
commit29644f12e742883ec9502205cffb318e446d7ca3 (patch)
tree34162573c0cda9dfcdfcfa04b5a42436214b1ff9 /Src/init.c
parent1b8446e1cd6dcd0644c1c96b952e11cbc472a24d (diff)
downloadzsh-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.c4
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 */