From 3a116935f46487f1061c0e3d0cfa352bcef4ed66 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Fri, 1 Feb 2008 13:23:33 -0800 Subject: fix for bug 2258: setting an existing node doesn't cause error. --- src/set.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 */ -- cgit v1.2.3