mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +00:00
Do not bail on makepath() fail if dir exists
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
4fecb8621d
commit
05cc6bf5d2
1 file changed
+1
-1
@@ -45,7 +45,7 @@ int cond_set_path(const char *path, enum cond_state new)
|
|||||||
_e("Invalid path '%s' for condition", path);
|
_e("Invalid path '%s' for condition", path);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (makepath(dir)) {
|
if (makepath(dir) && errno != EEXIST) {
|
||||||
_pe("Failed creating dir '%s' for condition '%s'", dir, path);
|
_pe("Failed creating dir '%s' for condition '%s'", dir, path);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user