posix: accept inode 0 is a valid inode number (BZ #19971)
commit686f2ea18374a541d203cfcc0e1dfba1666f49c2
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 4 Sep 2017 17:55:25 +0000 (4 14:55 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 8 Sep 2017 07:39:13 +0000 (8 09:39 +0200)
tree107da35da6f6427f2e3f09a7578ba384f0c302c4
parentc66c908230169c1bab1f83b071eb585baa214b9f
posix: accept inode 0 is a valid inode number (BZ #19971)

According to this kernel commit 2adc376c55194, d_ino 0 is a regular inode
number on Linux (which also matches POSIX, as it does not treat the value
as special).  This patch makes glob accept is a valid inode number.

This is also a sync with gnulib commit c8e57c1.

Checked on x86_64-linux-gnu and on a build using build-many-glibcs.py
for all major architectures.

[BZ #1062]
[BZ #19971]
* posix/glob.c (struct readdir_result): Remove skip_entry member.
(readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
All uses removed.
ChangeLog
posix/glob.c