mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
cond_set_path(): Log error if unlink() fails
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+2
-1
@@ -55,7 +55,8 @@ int cond_set_path(const char *path, enum cond_state new)
|
||||
break;
|
||||
|
||||
case COND_OFF:
|
||||
unlink(path);
|
||||
if (unlink(path))
|
||||
_pe("Failed removing condition '%s'", path);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user