mirror of
https://github.com/troglobit/finit.git
synced 2026-10-23 11:44:37 +00: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 parent
3ef75ac176
commit
978beb8e7e
1 file changed
+1
-1
+1
-1
@@ -55,7 +55,7 @@ int cond_set_path(const char *path, enum cond_state new)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case COND_OFF:
|
case COND_OFF:
|
||||||
if (unlink(path))
|
if (unlink(path) && errno != ENOENT)
|
||||||
_pe("Failed removing condition '%s'", path);
|
_pe("Failed removing condition '%s'", path);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user