Check the magic cookie when opening database files.
* src/server/ram-io.c (dbfile_open_read): New argument: wanted_magic. Log a message and return NULL if the file contains the wrong magic cookie. All callers updated to supply "CLEAN" as the magic cookie.
Showing with 61 additions and 10 deletions