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())
|
if (file.HasFailed())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!db_load_internal(file, *root, error))
|
if (!db_load_internal(file, *root, error) || !file.Check(error))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
Loading…
Reference in New Issue
Block a user