Mercurial > geeqie
comparison src/filedata.c @ 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 | 95a013ade7e2 |
children | 956aab097ea7 |
comparison
equal
deleted
inserted
replaced
1785:37b8eaebb0b6 | 1786:c00b59265ddb |
---|---|
20 #include "ui_fileops.h" | 20 #include "ui_fileops.h" |
21 #include "metadata.h" | 21 #include "metadata.h" |
22 #include "trash.h" | 22 #include "trash.h" |
23 #include "histogram.h" | 23 #include "histogram.h" |
24 | 24 |
25 #include <errno.h> | |
25 | 26 |
26 static GHashTable *file_data_pool = NULL; | 27 static GHashTable *file_data_pool = NULL; |
27 static GHashTable *file_data_planned_change_hash = NULL; | 28 static GHashTable *file_data_planned_change_hash = NULL; |
28 | 29 |
29 static gint sidecar_file_priority(const gchar *path); | 30 static gint sidecar_file_priority(const gchar *path); |
1076 { | 1077 { |
1077 if (files && filter_name_exists(name)) | 1078 if (files && filter_name_exists(name)) |
1078 { | 1079 { |
1079 flist = g_list_prepend(flist, file_data_new_local(filepath, &ent_sbuf, TRUE, basename_hash)); | 1080 flist = g_list_prepend(flist, file_data_new_local(filepath, &ent_sbuf, TRUE, basename_hash)); |
1080 } | 1081 } |
1082 } | |
1083 } | |
1084 else | |
1085 { | |
1086 if (errno == EOVERFLOW) | |
1087 { | |
1088 log_printf("stat(): EOVERFLOW, skip '%s'", filepath); | |
1081 } | 1089 } |
1082 } | 1090 } |
1083 g_free(filepath); | 1091 g_free(filepath); |
1084 } | 1092 } |
1085 | 1093 |