X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_daemon.c;h=0422389a7567706b82ae7bc1fb6a4e1065ee2e99;hp=7406325ce6e4ec6b95f1c7dbd2ef435bd32b4f85;hb=47e742a9618494029c6c4c32edeeb1353bf963d4;hpb=1f55de123f58e5ec37b6f36c8d2b4716f009a0ef diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index 7406325..0422389 100644 --- a/src/rrd_daemon.c +++ b/src/rrd_daemon.c @@ -2907,6 +2907,13 @@ static int read_options (int argc, char **argv) /* {{{ */ return (3); } + if (rrd_mkdir_p (config_base_dir, 0777) != 0) + { + fprintf (stderr, "Failed to create base directory '%s': %s\n", + config_base_dir, rrd_strerror (errno)); + return (3); + } + /* make sure that the base directory is not resolved via * symbolic links. this makes some performance-enhancing * assumptions possible (we don't have to resolve paths