Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: weird zsh startup behavior



Well, this rather trivial patch seems to work.  Please let me know if there's
anything I've done wrong.

I'm beginning to think the second loop is intended to handle the current 
directory being a symlink.  For that reason, I'm checking the lstat's results' 
inode rather than the directory entry's, although again, I'm not completely 
sure under what circumstances these will differ.

John

*** compat.c.old        Tue Dec 17 13:14:11 1996
--- compat.c    Tue Aug 12 09:56:21 1997
***************
*** 176,182 ****
                 (fn[1] == '.' && fn[2] == '\0')))
                continue;
            lstat(fn, &sbuf);
!           if (sbuf.st_dev == dev)
                goto match;
        }
        noholdintr();
--- 176,182 ----
                 (fn[1] == '.' && fn[2] == '\0')))
                continue;
            lstat(fn, &sbuf);
!           if (sbuf.st_dev == dev && sbuf.st_ino == ino)
                goto match;
        }
        noholdintr();


Attachment: pgpR19YzSrBP5.pgp
Description: PGP signature



Messages sorted by: Reverse Date, Date, Thread, Author