summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5e33660)
raw | patch | inline | side by side (parent: 5e33660)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 4 Oct 2009 11:30:24 +0000 (11:30 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 4 Oct 2009 11:30:24 +0000 (11:30 +0000) |
program/src/rrd_daemon.c | patch | blob | history |
index 7406325ce6e4ec6b95f1c7dbd2ef435bd32b4f85..0422389a7567706b82ae7bc1fb6a4e1065ee2e99 100644 (file)
--- a/program/src/rrd_daemon.c
+++ b/program/src/rrd_daemon.c
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