changeset 1746:219a5dd783ed

Log a message when EOVERFLOW error is set by stat() when building files lists. See bug 2876142.
author zas_
date Sat, 09 Jan 2010 10:37:48 +0000
parents 9dda6bf73922
children 10f9803aca45
files src/filedata.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/filedata.c	Tue Jan 05 22:28:11 2010 +0000
+++ b/src/filedata.c	Sat Jan 09 10:37:48 2010 +0000
@@ -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 @@
 					}
 				}
 			}
+		else
+			{
+			if (errno == EOVERFLOW)
+				{
+				log_printf("stat(): EOVERFLOW, skip '%s'", filepath);
+				}
+			}
 		g_free(filepath);
 		}