changeset 1786:c00b59265ddb

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 37b8eaebb0b6
children 886746a02b5e
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);
 		}