Re: bash-shipped getcwd() replacement does not work on interix.

2007-12-22 Thread Michael Haubenwallner
On Sat, 2007-12-22 at 10:13 -0500, Chet Ramey wrote: > 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

Re: bash-shipped getcwd() replacement does not work on interix.

2007-12-22 Thread Chet Ramey
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