d-ino: avoid false negative on symlink
authorEric Blake <eblake@redhat.com>
Wed, 21 Aug 2013 22:10:18 +0000 (16:10 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 21 Aug 2013 22:16:27 +0000 (16:16 -0600)
commit9a52d861868c8d787c66b75753a747e5c1ebedc6
treeab1cb97b32a239fea453bd748eaeb392693ae3f8
parent7c121ba6ebe82ea54dda3ce787f491a85ec1d1d9
d-ino: avoid false negative on symlink

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>
ChangeLog
m4/d-ino.m4