about summary refs log tree commit diff
path: root/Src/utils.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/utils.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/utils.c')
-rw-r--r--Src/utils.c2
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("");
     }