Skip to content

Commit

Permalink
cyrusdb: add twom detection
Browse files Browse the repository at this point in the history
  • Loading branch information
brong committed Dec 5, 2024
1 parent 462b181 commit deb10b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/cyrusdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,9 @@ EXPORTED const char *cyrusdb_detect(const char *fname)
if (!strncmp(buf, "\241\002\213\015twoskip file\0\0\0\0", 16))
return "twoskip";

if (!strncmp(buf, "\241\002\213\015twomfile", 12))
return "twom";

/* unable to detect SQLite databases or flat files explicitly here */
return NULL;
}
Expand Down

0 comments on commit deb10b5

Please sign in to comment.