# HG changeset patch # User zas_ # Date 1235927511 0 # Node ID 84422bb8181b47489138ff908933411ad6ff2f52 # Parent 721ffb823d6e2c7d6541ea19b3096986a9dd1587 Only attempt to read exif if the file is readable. diff -r 721ffb823d6e -r 84422bb8181b src/exif-common.c --- 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);