Relocate create() from bootmisc plugin to helpers.h

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-01-25 19:40:06 +01:00
parent f76268dec9
commit a0e17c8f47
2 changed files with 7 additions and 8 deletions
-6
View File
@@ -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)