Commit 0e1a3fc4 authored by npzacs's avatar npzacs
Browse files

Try backup file when reading of MKB_RO.inf fails

parent 0157b519
......@@ -472,6 +472,11 @@ static MKB *_mkb_open(AACS *aacs)
MKB *mkb;
size = _read_file(aacs, "AACS" DIR_SEP "MKB_RO.inf", &data);
if (size < 4) {
/* retry with backup file */
X_FREE(data);
size = _read_file(aacs, "AACS" DIR_SEP "DUPLICATE" DIR_SEP "MKB_RO.inf", &data);
}
if (size < 4) {
X_FREE(data);
BD_DEBUG(DBG_AACS | DBG_CRIT, "Error reading MKB file (AACS/MKB_RO.inf)\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment