commit b15816dd9e35575606d011dad4a3dcac204340da from: Stefan Sperling date: Sun Aug 11 18:01:21 2019 UTC in got_fileindex_entry_update() don't hide errors other than ENOENT commit - ef5e02fd4b2b09f48d9f96a78d13f6655c85ce81 commit + b15816dd9e35575606d011dad4a3dcac204340da blob - 4a26baa63e35c0e5ca8c307412f473a1d1f141ab blob + 1f0d5de40d9e53338b3595c9b4cbdf20e30ad8a5 --- lib/fileindex.c +++ lib/fileindex.c @@ -72,7 +72,8 @@ got_fileindex_entry_update(struct got_fileindex_entry 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)