Mercurial > geeqie
diff src/ui_tabcomp.c @ 69:31759d770628
Fri Oct 13 10:27:22 2006 John Ellis <johne@verizon.net>
* cache_maint.c, ui_fileops.c, ui_pathsel.c, ui_tabcomp.c: Remove use
of the d_ino > 0 test as all files listed by readdir should be valid.
dirent.d_ino is not guanteed by POSIX, and at one recent point is
not implemented on cygwin.
author | gqview |
---|---|
date | Fri, 13 Oct 2006 14:36:26 +0000 |
parents | 147f4c4b9025 |
children | 71e1ebee420e |
line wrap: on
line diff
--- a/src/ui_tabcomp.c Fri Oct 13 13:44:30 2006 +0000 +++ b/src/ui_tabcomp.c Fri Oct 13 14:36:26 2006 +0000 @@ -1,6 +1,6 @@ /* * (SLIK) SimpLIstic sKin functions - * (C) 2004 John Ellis + * (C) 2006 John Ellis * * Author: John Ellis * @@ -115,15 +115,11 @@ } while ((dir = readdir(dp)) != NULL) { - /* skips removed files */ - if (dir->d_ino > 0) - { - gchar *name = dir->d_name; - if (strcmp(name, ".") != 0 && strcmp(name, "..") != 0) - { - list = g_list_prepend(list, path_to_utf8(name)); - } - } + gchar *name = dir->d_name; + if (strcmp(name, ".") != 0 && strcmp(name, "..") != 0) + { + list = g_list_prepend(list, path_to_utf8(name)); + } } closedir(dp);