Changeset: f54d3b64cf22 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f54d3b64cf22 Modified Files: tools/mserver/mserver5.c Branch: default Log Message:
Create parent directories for dbpath. This fixes bug 3967. diffs (14 lines): diff --git a/tools/mserver/mserver5.c b/tools/mserver/mserver5.c --- a/tools/mserver/mserver5.c +++ b/tools/mserver/mserver5.c @@ -501,6 +501,10 @@ main(int argc, char **av) if (!dbpath) { dbpath = absolute_path(mo_find_option(set, setlen, "gdk_dbpath")); } + if (GDKcreatedir(dbpath) != GDK_SUCCEED) { + fprintf(stderr, "!ERROR: cannot create directory for %s\n", dbpath); + exit(1); + } if (dbextra) { BBPaddfarm(dbpath, 1 << PERSISTENT); BBPaddfarm(dbextra, 1 << TRANSIENT); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list