diff options
author | Daniel Stone <daniel@fooishbar.org> | 2012-06-18 20:01:05 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-06-18 15:15:11 -0400 |
commit | 61260854ec92a43e4e0f5cf1469eecbe404eac5a (patch) | |
tree | ee44130db67460ffc08c451a8c903ac05bfe5289 | |
parent | c806dde7e61f4d06564bd3acf74dbba6cfa328c6 (diff) |
Xcursor: Don't ignore unknown file types
XFS doesn't return the file type with opendir(), and instead only
returns it when you stat() the file itself. c66f2602 introduced a check
to ensure that only files and symlinks were loaded, while not checking
for DT_UNKNOWN. Properly handle DT_UNKNOWN by just proceeding anyway.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
-rw-r--r-- | cursor/xcursor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cursor/xcursor.c b/cursor/xcursor.c index b3fa271..360f7f3 100644 --- a/cursor/xcursor.c +++ b/cursor/xcursor.c @@ -873,7 +873,8 @@ load_all_cursors_from_dir(const char *path, int size, ent = readdir(dir); for(ent = readdir(dir); ent; ent = readdir(dir)) { #ifdef _DIRENT_HAVE_D_TYPE - if (ent->d_type != DT_REG && ent->d_type != DT_LNK) + if (ent->d_type != DT_UNKNOWN && + (ent->d_type != DT_REG && ent->d_type != DT_LNK)) continue; #endif |