summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-02-19 16:20:24 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-02-19 16:20:24 -0800
commitbb4ee2fb6e34235ee9d2056d1b2c88a2270d01b8 (patch)
treeba70580e913814aebd4278293b19c1709c75fed2
parent5e3f42d5aaba08a096744dbf9a24f7ab60d91b8f (diff)
downloadvyatta-cfg-bb4ee2fb6e34235ee9d2056d1b2c88a2270d01b8.tar.gz
vyatta-cfg-bb4ee2fb6e34235ee9d2056d1b2c88a2270d01b8.zip
exit after encountering parse error when handling default values.
-rw-r--r--src/set.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/set.c b/src/set.c
index 44f1263..d961fb8 100644
--- a/src/set.c
+++ b/src/set.c
@@ -336,10 +336,8 @@ handle_default(vtw_path *mpath, vtw_path *tpath, char *exclude)
}
memset(&def, 0, sizeof(def));
if ((status = parse_def(&def, tpath->path, FALSE))) {
- fprintf(stderr, "parse error in [%s]\n", tpath->path);
- pop_path(tpath); /* definition */
- pop_path(tpath); /* child */
- continue;
+ /* template parse error. abort. */
+ bye("Parse error in [%s]\n", tpath->path);
}
if (def.def_default) {
push_path(mpath, uename);