summaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-04-03 04:23:46 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-04-03 04:23:46 +0200
commit171dd6a58b89a5a7cdb55711515bec532a8f1bc6 (patch)
treed706f8179f6646ab3e205034dde5d1b0706550dd /src/config.c
parent89208e7de1c477c8a49b559b36c3177ab1ff5645 (diff)
downloadfastd-171dd6a58b89a5a7cdb55711515bec532a8f1bc6.tar
fastd-171dd6a58b89a5a7cdb55711515bec532a8f1bc6.zip
Save source dirs with peer configs
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index 2cf7494..5fa1591 100644
--- a/src/config.c
+++ b/src/config.c
@@ -135,6 +135,7 @@ void fastd_read_config_dir(fastd_context *ctx, fastd_config *conf, const char *d
fastd_peer_config_new(ctx, conf);
conf->peers->name = strdup(result->d_name);
+ conf->peers->config_source_dir = strdup(dir);
if (!fastd_read_config(ctx, conf, result->d_name, true, depth)) {
pr_warn(ctx, "peer config %s will be ignored", result->d_name);