in got_fileindex_entry_update() don't hide errors other than ENOENT
diff --git a/lib/fileindex.c b/lib/fileindex.c
index 4a26baa..1f0d5de 100644
--- a/lib/fileindex.c
+++ b/lib/fileindex.c
@@ -72,7 +72,8 @@ got_fileindex_entry_update(struct got_fileindex_entry *ie,
struct stat sb;
if (lstat(ondisk_path, &sb) != 0) {
- if ((ie->flags & GOT_FILEIDX_F_NO_FILE_ON_DISK) == 0)
+ if (!((ie->flags & GOT_FILEIDX_F_NO_FILE_ON_DISK) &&
+ errno == ENOENT))
return got_error_from_errno2("lstat", ondisk_path);
} else {
if (sb.st_mode & S_IFDIR)