summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Larson <mike@vyatta.com>2010-11-09 11:40:29 -0800
committerMichael Larson <mike@vyatta.com>2010-11-09 11:40:29 -0800
commit87d1c907559c1962db2db0e5a5b92c016719bace (patch)
tree628883452f6744f8e0dc2a476254150f7c4c5d67
parentf573c75306a8de16ef04ee55a85db7a7fcc0d117 (diff)
downloadvyatta-cfg-87d1c907559c1962db2db0e5a5b92c016719bace.tar.gz
vyatta-cfg-87d1c907559c1962db2db0e5a5b92c016719bace.zip
modify formatting options for GUI client on -x option. Set option on GUI invoked commit.
-rwxr-xr-xscripts/vyatta-cfg-cmd-wrapper2
-rw-r--r--src/commit2.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/vyatta-cfg-cmd-wrapper b/scripts/vyatta-cfg-cmd-wrapper
index 6eeff99..ef4cb81 100755
--- a/scripts/vyatta-cfg-cmd-wrapper
+++ b/scripts/vyatta-cfg-cmd-wrapper
@@ -86,7 +86,7 @@ case "$1" in
RET_STATUS=$?
;;
commit_with_error)
- /opt/vyatta/sbin/my_commit -e
+ /opt/vyatta/sbin/my_commit -x
RET_STATUS=$?
;;
save)
diff --git a/src/commit2.c b/src/commit2.c
index b33d6c0..2f9be94 100644
--- a/src/commit2.c
+++ b/src/commit2.c
@@ -592,7 +592,8 @@ process_func(GNode *node, gpointer data)
char *p = clind_unescape(path_buf);
if (strlen(outbuf) > 0) {
- fprintf(out_stream,"[ %s ] \n %s\n",p,outbuf);
+ //currently set to format option for GUI client.
+ fprintf(out_stream,"_errloc_:[%s]\n%s\n",p,outbuf);
}
}
}