Forward-ported from cl/51376114 (from cl/41709-p2).
(ppluzhnikov, google-local)
+posix/glob.c
+sysdeps/unix/readdir.c
+sysdeps/unix/readdir_r.c
+ For b/3162458, don't skip files with d_ino==0 -- our tmpfs systems
+ sometimes create them due to inode wraparound.
+ Forward-ported from cl/51430993 (from cl/45000-p2).
+ (ppluzhnikov, google-local)
+
# define REAL_DIR_ENTRY(dp) (dp->d_ino != 0)
#endif /* POSIX */
+/* Google-local: for b/3162458, don't ignore entries with d_ino == 0 */
+#undef REAL_DIR_ENTRY
+#define REAL_DIR_ENTRY(dp) 1
+
#include <stdlib.h>
#include <string.h>
dirp->filepos += reclen;
#endif
+#if 1 /* Google-local: for b/3162458, don't ignore entries with d_ino == 0 */
+ } while (0);
+#else
/* Skip deleted files. */
} while (dp->d_ino == 0);
+#endif
#ifndef NOT_IN_libc
__libc_lock_unlock (dirp->lock);
/* Skip deleted and ignored files. */
}
+#if 1 /* Google-local: for b/3162458, don't ignore entries with d_ino == 0 */
+ while (0);
+#else
while (dp->d_ino == 0);
+#endif
if (dp != NULL)
{