[FL-2819] updater: fixed failing backups on /int with empty files in it #1735

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
hedger
2022-09-15 17:55:55 +04:00
committed by GitHub
parent 28beff1ab6
commit 007a3d295e
2 changed files with 2 additions and 2 deletions

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) {