[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash-shipped getcwd() replacement does not work on interix.
From: |
Chet Ramey |
Subject: |
Re: bash-shipped getcwd() replacement does not work on interix. |
Date: |
Sat, 22 Dec 2007 10:13:53 -0500 |
User-agent: |
Thunderbird 2.0.0.9 (Macintosh/20071031) |
Michael Haubenwallner wrote:
>> It is because readdir() returns 0 (zero) for (struct dirent).(d_ino),
>> while stat() returns useful values for (struct stat).(st_ino), so their
>> equal-comparison never succeeds.
>
> Attached patch should fix this issue, not relying on readdir() returning
> valid d_ino, but doing stat() always instead.
You didn't attach one.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Live Strong. No day but today.
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/