diff src/cache_maint.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 d907d608745f
children 528e3432e0c0
line wrap: on
line diff
--- a/src/cache_maint.c	Fri Oct 13 13:44:30 2006 +0000
+++ b/src/cache_maint.c	Fri Oct 13 14:36:26 2006 +0000
@@ -1,6 +1,6 @@
 /*
  * GQview
- * (C) 2004 John Ellis
+ * (C) 2006 John Ellis
  *
  * Author: John Ellis
  *
@@ -95,8 +95,7 @@
 		{
 		gchar *name = dir->d_name;
 
-		if (dir->d_ino > 0 &&
-		    !(name[0] == '.' && (name[1] == '\0' || (name[1] == '.' && name[2] == '\0'))) )
+		if (!(name[0] == '.' && (name[1] == '\0' || (name[1] == '.' && name[2] == '\0'))) )
 			{
 			closedir(dp);
 			return FALSE;