mirror of
https://github.com/troglobit/finit.git
synced 2026-11-27 20:48:24 +00:00
Relocate create() from bootmisc plugin to helpers.h
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
f76268dec9
commit
a0e17c8f47
2 files changed
+7
-8
No files matched your search
@@ -64,12 +64,6 @@ static int is_tmpfs(char *path)
|
||||
return tmpfs;
|
||||
}
|
||||
|
||||
static void 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 properl.", path);
|
||||
}
|
||||
|
||||
static int do_clean(const char *fpath, const struct stat *UNUSED(sb), int UNUSED(tflag), struct FTW *ftw)
|
||||
{
|
||||
if (ftw->level == 0)
|
||||
|
||||
Reference in new issue
Block a user