Basic checks on file to ensure it's an mdb database. bug # 587739

This commit is contained in:
brianb
2004-01-10 21:46:14 +00:00
parent dd534f39dc
commit 8c68edba1f
7 changed files with 28 additions and 9 deletions

View File

@@ -65,7 +65,10 @@ int opt;
/* read the catalog */
mdb_read_catalog (mdb, MDB_TABLE);
if (!mdb_read_catalog (mdb, MDB_TABLE)) {
fprintf(stderr,"File does not appear to be an Access database\n");
exit(1);
}
/* loop over each entry in the catalog */
for (i=0; i < mdb->num_catalog; i++) {