Divinglog import: hook up processing of .sql files

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2015-07-12 23:16:47 +05:30 committed by Dirk Hohndel
parent 212cc575bf
commit b4d5f6fd53

2
file.c
View file

@ -448,7 +448,7 @@ int parse_file(const char *filename)
}
fmt = strrchr(filename, '.');
if (fmt && (!strcasecmp(fmt + 1, "DB") || !strcasecmp(fmt + 1, "BAK"))) {
if (fmt && (!strcasecmp(fmt + 1, "DB") || !strcasecmp(fmt + 1, "BAK") || !strcasecmp(fmt + 1, "SQL"))) {
if (!try_to_open_db(filename, &mem)) {
free(mem.buffer);
return 0;