diff --git a/tools/python/xen/lowlevel/xs/xs.c b/tools/python/xen/lowlevel/xs/xs.c index 78612befb0..cc3459e0b8 100644 --- a/tools/python/xen/lowlevel/xs/xs.c +++ b/tools/python/xen/lowlevel/xs/xs.c @@ -264,7 +264,7 @@ static PyObject *xspy_rm(PyObject *self, PyObject *args, PyObject *kwds) Py_BEGIN_ALLOW_THREADS xsval = xs_rm(xh, path); Py_END_ALLOW_THREADS - if (!xsval) { + if (!xsval && errno != ENOENT) { PyErr_SetFromErrno(PyExc_RuntimeError); goto exit; }