From: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: mkdir -p buldtin is possibly incorrect?
Date: Thu, 14 Jul 2005 21:18:53 +0100 [thread overview]
Message-ID: <20050714201855.7D4078630@pwstephenson.fsnet.co.uk> (raw)
In-Reply-To: <f6879d2c05071412024c9afaf9@mail.gmail.com>
George Kouryachy wrote:
> Why do you use "lstat" instead of "stat" in line 130?
> I have my $HOME symlinked as "/home -> /var/home",
> so any first attempt to use completion smaps like tths:
> _store_cache:mkdir:16: cannot make directory `/home': file exists
Yes, it looks like you're right.
Index: Src/Modules/files.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/files.c,v
retrieving revision 1.12
diff -u -r1.12 files.c
--- Src/Modules/files.c 2 Jun 2004 22:15:00 -0000 1.12
+++ Src/Modules/files.c 14 Jul 2005 20:11:13 -0000
@@ -127,7 +127,7 @@
if(p) {
struct stat st;
- if(!lstat(rpath, &st) && S_ISDIR(st.st_mode))
+ if(!stat(rpath, &st) && S_ISDIR(st.st_mode))
return 0;
}
oumask = umask(0);
--
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
Work: pws@csr.com
Web: http://www.pwstephenson.fsnet.co.uk
next prev parent reply other threads:[~2005-07-14 20:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-14 19:02 George Kouryachy
2005-07-14 20:18 ` Peter Stephenson [this message]
2005-07-14 23:47 ` Bart Schaefer
2005-07-15 7:13 ` Alexey Tourbin
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=20050714201855.7D4078630@pwstephenson.fsnet.co.uk \
--to=pws@pwstephenson.fsnet.co.uk \
--cc=zsh-workers@sunsite.dk \
/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).