From 0de3c4f4b7b47481fb78e68f6110a167b27b43c9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 3 Aug 2020 12:05:37 +0200 Subject: mkdir: add new mkdir_p_root() helper --- src/basic/mkdir.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/basic/mkdir.h') diff --git a/src/basic/mkdir.h b/src/basic/mkdir.h index 8bfaaf405b..fc66a7d365 100644 --- a/src/basic/mkdir.h +++ b/src/basic/mkdir.h @@ -26,3 +26,5 @@ typedef int (*mkdir_func_t)(const char *pathname, mode_t mode); int mkdir_safe_internal(const char *path, mode_t mode, uid_t uid, gid_t gid, MkdirFlags flags, mkdir_func_t _mkdir); int mkdir_parents_internal(const char *prefix, const char *path, mode_t mode, uid_t uid, gid_t gid, MkdirFlags flags, mkdir_func_t _mkdir); int mkdir_p_internal(const char *prefix, const char *path, mode_t mode, uid_t uid, gid_t gid, MkdirFlags flags, mkdir_func_t _mkdir); + +int mkdir_p_root(const char *root, const char *p, uid_t uid, gid_t gid, mode_t m); -- cgit v1.2.1