From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh workers <zsh-workers@zsh.org>
Subject: mkdir builtin and $'\0'
Date: Fri, 04 Sep 2015 15:44:05 +0200 [thread overview]
Message-ID: <10048.1441374245@thecus.kiddle.eu> (raw)
In-Reply-To: <CAHYJk3S9KVbn_bqVtjketiUdAvdUNeqbQU92Yb8iftG4POm7DA@mail.gmail.com>
On 21 Aug, Mikael Magnusson wrote:
> % mkdir /tmp/ホ
> % cd /tmp/ホ
While catching up on the mails, I didn't immediately spot the message
with the fix for this so instead tried to reproduce it. In the process,
I noticed an additional missing unmeta() in the fallback code used when
getcwd() returns NULL:
% rmdir $PWD
% pwd
/tmp/ャ»
Oliver
diff --git a/Src/compat.c b/Src/compat.c
index db46852..9041c0b 100644
--- a/Src/compat.c
+++ b/Src/compat.c
@@ -448,7 +448,7 @@ zgetcwd(void)
}
#endif /* HAVE_GETCWD */
if (!ret)
- ret = pwd;
+ ret = unmeta(pwd);
if (!ret)
ret = dupstring(".");
return ret;
next prev parent reply other threads:[~2015-09-04 13:49 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-20 11:15 Recommend latex surgical gloves ED
2015-08-20 16:42 ` 5.0.9 / 5.1 agani (ws Re: Recommend latex surgical gloves) Peter Stephenson
2015-08-20 17:25 ` Bart Schaefer
2015-08-21 3:38 ` Mikael Magnusson
2015-09-04 13:44 ` Oliver Kiddle [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-08-18 9:19 mkdir builtin and $'\0' Stephane Chazelas
2015-08-18 9:49 ` Peter Stephenson
2015-08-18 11:11 ` Stephane Chazelas
2015-08-18 11:27 ` Peter Stephenson
2015-08-18 12:55 ` Stephane Chazelas
2015-08-18 13:24 ` Peter Stephenson
2015-08-18 14:21 ` Peter Stephenson
2015-08-18 15:07 ` Peter Stephenson
2015-08-18 15:18 ` Peter Stephenson
2015-08-18 15:19 ` Mikael Magnusson
2015-08-19 9:52 ` Peter Stephenson
2015-08-19 13:10 ` Stephane Chazelas
2015-08-18 11:06 ` Peter Stephenson
2015-08-18 16:20 ` Stephane Chazelas
2015-08-18 16:37 ` Peter Stephenson
2015-08-21 6:20 ` Mikael Magnusson
2015-08-21 8:57 ` Peter Stephenson
2015-08-21 14:09 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=10048.1441374245@thecus.kiddle.eu \
--to=okiddle@yahoo.co.uk \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).