diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2017-09-09 09:42:25 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2017-09-09 09:45:45 +0300 |
commit | cf4e631283fa9bced9eab5fad8db7bfe06b26e6c (patch) | |
tree | 046f12cf544d5a9c639700c1c8d2e91c4f1103d1 /rpmio/rpmglob.c | |
parent | 9809319df254428e15a5466a8f3bf4a1b5141c23 (diff) | |
download | rpm-cf4e631283fa9bced9eab5fad8db7bfe06b26e6c.tar.gz |
Inode zero is just a regular inode
Inspired by a similar change in glibc:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=686f2ea18374a541d203cfcc0e1dfba1666f49c2
Diffstat (limited to 'rpmio/rpmglob.c')
-rw-r--r-- | rpmio/rpmglob.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/rpmio/rpmglob.c b/rpmio/rpmglob.c index da5493d75..819d79acd 100644 --- a/rpmio/rpmglob.c +++ b/rpmio/rpmglob.c @@ -77,14 +77,6 @@ typedef struct { #define NAMLEN(_d) NLENGTH(_d) -#if (defined POSIX || defined WINDOWS32) && !defined __GNU_LIBRARY__ -/* Posix does not require that the d_ino field be present, and some - systems do not provide it. */ -#define REAL_DIR_ENTRY(dp) 1 -#else -#define REAL_DIR_ENTRY(dp) (dp->d_ino != 0) -#endif /* POSIX */ - #include <errno.h> #ifndef __set_errno #define __set_errno(val) errno = (val) @@ -740,8 +732,6 @@ glob_in_dir(const char *pattern, const char *directory, int flags, : readdir((DIR *) stream)); if (d == NULL) break; - if (!REAL_DIR_ENTRY(d)) - continue; #ifdef HAVE_STRUCT_DIRENT_D_TYPE /* If we shall match only directories use the information |