If the first entry listed in a directory is a symlink, we
had a spurious mismatch between d_ino (which should match the
symlink) and stat() results (which chases the symlink).
Reported by Stephane Chazelas <stephane.chazelas@gmail.com>.
* m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
Signed-off-by: Eric Blake <eblake@redhat.com>
+2013-08-21 Eric Blake <eblake@redhat.com>
+
+ d-ino: avoid false negative on symlink
+ * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
+ Reported by Stephane Chazelas.
+
2013-08-12 Mike Miller <mtmiller@ieee.org> (tiny change)
bootstrap: port to OpenBSD sed
-# serial 13
+# serial 14
dnl From Jim Meyering.
dnl
e = readdir (dp);
if (! e)
return 2;
- if (stat (e->d_name, &st) != 0)
+ if (lstat (e->d_name, &st) != 0)
return 3;
if (e->d_ino != st.st_ino)
return 4;