summaryrefslogtreecommitdiff
path: root/src/set.c
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-02-01 13:23:33 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-02-01 13:23:33 -0800
commit3a116935f46487f1061c0e3d0cfa352bcef4ed66 (patch)
tree6a47dcbd2d250231bf563c4ef7cbb1a4bc60adb9 /src/set.c
parent08c873e429703d2e3dda717eb0928acc07d2199a (diff)
downloadvyatta-cfg-3a116935f46487f1061c0e3d0cfa352bcef4ed66.tar.gz
vyatta-cfg-3a116935f46487f1061c0e3d0cfa352bcef4ed66.zip
fix for bug 2258: setting an existing node doesn't cause error.
Diffstat (limited to 'src/set.c')
-rw-r--r--src/set.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/set.c b/src/set.c
index 4308d45..44f1263 100644
--- a/src/set.c
+++ b/src/set.c
@@ -166,7 +166,9 @@ int main(int argc, char **argv)
/* non tag matches are OK by definition */
/* do we already have it? */
if (lstat(m_path.path, &statbuf) >= 0) {
- bye("Already exists %s", m_path.path + strlen(get_mdirp()));
+ printf("Node [%s] already exists\n", m_path.path + strlen(get_mdirp()));
+ /* not an error */
+ exit(0);
}
/* else */
/* prevent value node without actual value */