db/simple: check for I/O errors in Load()
This commit is contained in:
parent
8283f23651
commit
43f964e28d
@ -187,7 +187,7 @@ SimpleDatabase::Load(Error &error)
|
||||
if (file.HasFailed())
|
||||
return false;
|
||||
|
||||
if (!db_load_internal(file, *root, error))
|
||||
if (!db_load_internal(file, *root, error) || !file.Check(error))
|
||||
return false;
|
||||
|
||||
struct stat st;
|
||||
|
Loading…
Reference in New Issue
Block a user