Only attempt to read exif if the file is readable.
authorLaurent Monin <geeqie@norz.org>
Sun, 1 Mar 2009 17:11:51 +0000 (17:11 +0000)
committerLaurent Monin <geeqie@norz.org>
Sun, 1 Mar 2009 17:11:51 +0000 (17:11 +0000)
src/exif-common.c

index 4cc8631..535f502 100644 (file)
@@ -605,7 +605,7 @@ ExifData *exif_read_fd(FileData *fd)
 {
        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);