ia64/xen-unstable

changeset 6822:0d8c0db04258

Don't return failure when trying to delete a non-existent node.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Tue Sep 13 21:52:24 2005 +0000 (2005-09-13)
parents 1ad652222dba
children c63529f3367d
files tools/python/xen/lowlevel/xs/xs.c
line diff
     1.1 --- a/tools/python/xen/lowlevel/xs/xs.c	Tue Sep 13 21:29:28 2005 +0000
     1.2 +++ b/tools/python/xen/lowlevel/xs/xs.c	Tue Sep 13 21:52:24 2005 +0000
     1.3 @@ -264,7 +264,7 @@ static PyObject *xspy_rm(PyObject *self,
     1.4      Py_BEGIN_ALLOW_THREADS
     1.5      xsval = xs_rm(xh, path);
     1.6      Py_END_ALLOW_THREADS
     1.7 -    if (!xsval) {
     1.8 +    if (!xsval && errno != ENOENT) {
     1.9          PyErr_SetFromErrno(PyExc_RuntimeError);
    1.10          goto exit;
    1.11      }