diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-01 13:23:33 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-02-01 13:23:33 -0800 |
commit | 3a116935f46487f1061c0e3d0cfa352bcef4ed66 (patch) | |
tree | 6a47dcbd2d250231bf563c4ef7cbb1a4bc60adb9 | |
parent | 08c873e429703d2e3dda717eb0928acc07d2199a (diff) | |
download | vyatta-cfg-3a116935f46487f1061c0e3d0cfa352bcef4ed66.tar.gz vyatta-cfg-3a116935f46487f1061c0e3d0cfa352bcef4ed66.zip |
fix for bug 2258: setting an existing node doesn't cause error.
-rw-r--r-- | src/set.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 */ |