From 87d1c907559c1962db2db0e5a5b92c016719bace Mon Sep 17 00:00:00 2001 From: Michael Larson Date: Tue, 9 Nov 2010 11:40:29 -0800 Subject: modify formatting options for GUI client on -x option. Set option on GUI invoked commit. --- scripts/vyatta-cfg-cmd-wrapper | 2 +- src/commit2.c | 3 ++- 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); } } } -- cgit v1.2.3