Log a message when EOVERFLOW error is set by stat() when building files lists. See...
authorLaurent Monin <geeqie@norz.org>
Sat, 9 Jan 2010 10:37:48 +0000 (10:37 +0000)
committerLaurent Monin <geeqie@norz.org>
Sat, 9 Jan 2010 10:37:48 +0000 (10:37 +0000)
src/filedata.c

index 1a2947b..4cd09b4 100644 (file)
@@ -22,6 +22,7 @@
 #include "trash.h"
 #include "histogram.h"
 
+#include <errno.h>
 
 static GHashTable *file_data_pool = NULL;
 static GHashTable *file_data_planned_change_hash = NULL;
@@ -1080,6 +1081,13 @@ static gboolean filelist_read_real(FileData *dir_fd, GList **files, GList **dirs
                                        }
                                }
                        }
+               else
+                       {
+                       if (errno == EOVERFLOW)
+                               {
+                               log_printf("stat(): EOVERFLOW, skip '%s'", filepath);
+                               }
+                       }
                g_free(filepath);
                }