[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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user