zsh-workers
 help / color / mirror / code / Atom feed
From: Andrey Borzenkov <arvidjaar@newmail.ru>
To: zsh-workers@sunsite.dk
Cc: DervishD <zsh@dervishd.net>
Subject: Re: Directory not recognized as directory
Date: Wed, 2 Nov 2005 22:24:41 +0300	[thread overview]
Message-ID: <200511022224.41905.arvidjaar@newmail.ru> (raw)
In-Reply-To: <20051102185611.GA1729@DervishD>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 02 November 2005 21:56, DervishD wrote:
>     Looks like you're using "stat" from coreutils, and not builtin
> stat. Sorry, my fault, 

No, it is my fault :)

Index: Src/Modules/stat.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/stat.c,v
retrieving revision 1.8
diff -u -p -r1.8 stat.c
- --- Src/Modules/stat.c  18 Feb 2005 13:57:27 -0000      1.8
+++ Src/Modules/stat.c  2 Nov 2005 19:23:28 -0000
@@ -532,8 +532,8 @@ bin_stat(char *name, char **args, Option
     for (; OPT_ISSET(ops,'f') || *args; args++) {
        char outbuf[PATH_MAX + 9]; /* "link   " + link name + NULL */
        int rval = OPT_ISSET(ops,'f') ? fstat(fd, &statbuf) :
- -           OPT_ISSET(ops,'L') ? lstat(*args, &statbuf) :
- -           stat(*args, &statbuf);
+           OPT_ISSET(ops,'L') ? lstat(unmeta(*args), &statbuf) :
+           stat(unmeta(*args), &statbuf);
        if (rval) {
            if (OPT_ISSET(ops,'f'))
                sprintf(outbuf, "%d", fd);
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDaRJ5R6LMutpd94wRAil/AKCOj3hPEMftGiUOh9My8XaP51jZ+wCePR1D
nknu+geujFWCZbpAIjDwJII=
=uQya
-----END PGP SIGNATURE-----


  reply	other threads:[~2005-11-02 19:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-02 14:02 DervishD
2005-11-02 18:42 ` Andrey Borzenkov
2005-11-02 18:56   ` DervishD
2005-11-02 19:24     ` Andrey Borzenkov [this message]
2005-11-02 19:32       ` DervishD
2005-11-02 19:55         ` Andrey Borzenkov
2005-11-02 20:32           ` DervishD

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=200511022224.41905.arvidjaar@newmail.ru \
    --to=arvidjaar@newmail.ru \
    --cc=zsh-workers@sunsite.dk \
    --cc=zsh@dervishd.net \
    /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).