bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Michael Haubenwallner
Subject: Re: bash-shipped getcwd() replacement does not work on interix.
Date: Sat, 22 Dec 2007 16:56:30 +0100

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 should fix this issue, not relying on readdir() returning
> > valid d_ino, but doing stat() always instead.
> 
> You didn't attach one.

Uh oh, indeed, sorry. Here it is.

/haubi/
-- 
Michael Haubenwallner
Gentoo on a different level

Attachment: bash-32-getcwd-dostat.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]