cfgfile_gen: improve printing of SmartGatewayEgressFile
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 30 Apr 2015 09:25:33 +0000 (11:25 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 1 May 2015 07:38:57 +0000 (09:38 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/cfgparser/cfgfile_gen.c

index edda8b2..5761b5e 100644 (file)
@@ -660,7 +660,7 @@ void olsrd_write_cnf_autobuf(struct autobuf *out, struct olsrd_config *cnf) {
     "\n", DEF_GW_EGRESS_FILE);
   {
     bool def = !cnf->smart_gw_egress_file || !strcmp(cnf->smart_gw_egress_file, DEF_GW_EGRESS_FILE);
-    abuf_appendf(out, "%sSmartGatewayEgressFile %s\n",
+    abuf_appendf(out, "%sSmartGatewayEgressFile \"%s\"\n",
       def ? "# " : "", def ? DEF_GW_EGRESS_FILE : cnf->smart_gw_egress_file);
   }
   abuf_appendf(out,