diff src/exif-common.c @ 1361:84422bb8181b

Only attempt to read exif if the file is readable.
author zas_
date Sun, 01 Mar 2009 17:11:51 +0000
parents 8b89e3ff286b
children 91bed0d66cf2
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);