mirror of
https://github.com/troglobit/finit.git
synced 2026-10-04 14:54:14 +07:00
Don't log if failed to remove non-existing condition
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user