changeset 1361:84422bb8181b

Only attempt to read exif if the file is readable.
author zas_
date Sun, 01 Mar 2009 17:11:51 +0000
parents 721ffb823d6e
children b3156b2ec4c5
files src/exif-common.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/exif-common.c	Sun Mar 01 17:10:45 2009 +0000
+++ b/src/exif-common.c	Sun Mar 01 17:11:51 2009 +0000
@@ -605,7 +605,7 @@
 {
 	gchar *sidecar_path;
 
-	if (!fd) return NULL;
+	if (!fd || !is_readable_file(fd->path)) return NULL;
 	
 	if (!exif_cache) exif_cache = file_cache_new(exif_release_cb, 4);