From 978beb8e7e6d85ec0e95dc532cd5dce43355a2c2 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 18 Oct 2017 22:05:00 +0200 Subject: [PATCH] Don't log if failed to remove non-existing condition Signed-off-by: Joachim Nilsson --- src/cond-w.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cond-w.c b/src/cond-w.c index b59d1201..c35dd4df 100644 --- a/src/cond-w.c +++ b/src/cond-w.c @@ -55,7 +55,7 @@ int cond_set_path(const char *path, enum cond_state new) break; case COND_OFF: - if (unlink(path)) + if (unlink(path) && errno != ENOENT) _pe("Failed removing condition '%s'", path); break;