Work even in a chroot where d_ino values for entries in "/"
authorJim Meyering <jim@meyering.net>
Sun, 19 Mar 2006 18:27:51 +0000 (18:27 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 19 Mar 2006 18:27:51 +0000 (18:27 +0000)
commit164d936ac297d08ba012b584ef7d9ea8f5335a9f
treee4dfdf65c1224af2d3120d3ebaf298d56062bea2
parente233777dbe95d8c8e4135a098503660c6dbaa451
Work even in a chroot where d_ino values for entries in "/"
don't match the stat.st_ino values for the same names.

(__getcwd): When no d_ino value matches the target inode
number, iterate through all entries again, using lstat instead.
Reported by Kenshi Muto in http://bugs.debian.org/355810.
lib/getcwd.c