mirror of
https://github.com/troglobit/finit.git
synced 2026-10-19 11:09:35 +00:00
Refactor to share err/warn log API between daemon and client code
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
10437887fc
commit
37e3be9a0d
10 files changed
+53
-32
No files matched your search
+1
-1
@@ -89,7 +89,7 @@ int run_parts (char *dir, char *cmd);
|
||||
static inline int create(char *path, mode_t mode, uid_t uid, gid_t gid)
|
||||
{
|
||||
if (touch(path) || chmod(path, mode) || chown(path, uid, gid)) {
|
||||
_w("Failed creating %s properly.", path);
|
||||
warnx("Failed creating %s properly.", path);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user