Changeset: fdbb27d97ffd for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fdbb27d97ffd
Modified Files:
tools/mserver/mserver5.c
Branch: Jun2016
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
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list