updater: fixed failing backups on /int with empty files in it

This commit is contained in:
hedger
2022-09-14 21:43:36 +04:00
committed by MX
parent 3fbaad1488
commit d47fdce337
2 changed files with 2 additions and 2 deletions
+1 -2
View File
@@ -42,8 +42,7 @@ bool lfs_backup_create(Storage* storage, const char* destination) {
bool lfs_backup_exists(Storage* storage, const char* source) {
const char* final_source = source && strlen(source) ? source : LFS_BACKUP_DEFAULT_LOCATION;
FileInfo fi;
return storage_common_stat(storage, final_source, &fi) == FSE_OK;
return storage_common_stat(storage, final_source, NULL) == FSE_OK;
}
bool lfs_backup_unpack(Storage* storage, const char* source) {