X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=adu.c;h=fe0caa501a2ce35e5f83273af8dace42f420bde4;hb=refs%2Fheads%2Fpu;hp=37a086772fec78a8c099bbfb655e2cb5a734e0b2;hpb=c77e8ad08e743b3922c58f40cc7b1a063d291d69;p=adu.git diff --git a/adu.c b/adu.c index 37a0867..fe0caa5 100644 --- a/adu.c +++ b/adu.c @@ -296,9 +296,15 @@ static void get_database_dir_or_die(void) if (conf.database_dir_given) tmp = adu_strdup(conf.database_dir_arg); - else + else { + if (!conf.base_dir_arg) { + EMERG_LOG("fatal: neither database dir " + "nor base dir given\n"); + exit(EXIT_FAILURE); + } tmp = make_message("%s%s", conf.database_root_arg, conf.base_dir_arg); + } /* * As we change the cwd during database creation, database_dir * must be an absolute path.