mirror of
https://github.com/troglobit/finit.git
synced 2026-10-19 11:09:35 +00:00
Fix log regression introduced in 82cc10be
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
82cc10be88
commit
ed999d9a80
1 file changed
+9
-3
+9
-3
@@ -176,10 +176,16 @@ int cond_set_path(const char *path, enum cond_state next)
|
||||
|
||||
case COND_OFF:
|
||||
if (unlink(path)) {
|
||||
if (errno == ENOENT)
|
||||
_pe("Failed removing condition '%s'", path);
|
||||
if (errno == EISDIR)
|
||||
switch (errno) {
|
||||
case ENOENT:
|
||||
break;
|
||||
case EISDIR:
|
||||
cond_delpath(path);
|
||||
break;
|
||||
default:
|
||||
_pe("Failed removing condition '%s'", path);
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user