mirror of
https://github.com/troglobit/finit.git
synced 2026-11-28 20:58:24 +00:00
cond_set_path(): Log error if unlink() fails
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
06479aa5f1
commit
227dda34f7
1 file changed
+2
-1
+2
-1
@@ -55,7 +55,8 @@ int cond_set_path(const char *path, enum cond_state new)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case COND_OFF:
|
case COND_OFF:
|
||||||
unlink(path);
|
if (unlink(path))
|
||||||
|
_pe("Failed removing condition '%s'", path);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in new issue
Block a user