Lines Matching refs:uid
22 uid_t uid, gid_t gid, in mkdir_safe_internal() argument
34 r = chmod_and_chown(path, mode, uid, gid); in mkdir_safe_internal()
49 return mkdir_safe_internal(p, mode, uid, gid, in mkdir_safe_internal()
66 if ((uid != UID_INVALID && st.st_uid != uid) || in mkdir_safe_internal()
70 if (uid != UID_INVALID) in mkdir_safe_internal()
71 xsprintf(u, UID_FMT, uid); in mkdir_safe_internal()
86 int mkdir_safe(const char *path, mode_t mode, uid_t uid, gid_t gid, MkdirFlags flags) { in mkdir_safe() argument
87 return mkdir_safe_internal(path, mode, uid, gid, flags, mkdirat_errno_wrapper); in mkdir_safe()
90 int mkdir_parents_internal(const char *prefix, const char *path, mode_t mode, uid_t uid, gid_t gid,… in mkdir_parents_internal() argument
144 … r = mkdir_safe_internal(path, mode, uid, gid, flags | MKDIR_IGNORE_EXISTING, _mkdirat); in mkdir_parents_internal()
157 int mkdir_parents_safe(const char *prefix, const char *path, mode_t mode, uid_t uid, gid_t gid, Mkd… in mkdir_parents_safe() argument
158 return mkdir_parents_internal(prefix, path, mode, uid, gid, flags, mkdirat_errno_wrapper); in mkdir_parents_safe()
161 int mkdir_p_internal(const char *prefix, const char *path, mode_t mode, uid_t uid, gid_t gid, Mkdir… in mkdir_p_internal() argument
168 … r = mkdir_parents_internal(prefix, path, mode, uid, gid, flags | MKDIR_FOLLOW_SYMLINK, _mkdirat); in mkdir_p_internal()
172 if (!uid_is_valid(uid) && !gid_is_valid(gid) && flags == 0) { in mkdir_p_internal()
177 r = mkdir_safe_internal(path, mode, uid, gid, flags, _mkdirat); in mkdir_p_internal()
189 int mkdir_p_safe(const char *prefix, const char *path, mode_t mode, uid_t uid, gid_t gid, MkdirFlag… in mkdir_p_safe() argument
190 return mkdir_p_internal(prefix, path, mode, uid, gid, flags, mkdirat_errno_wrapper); in mkdir_p_safe()
193 int mkdir_p_root(const char *root, const char *p, uid_t uid, gid_t gid, mode_t m) { in mkdir_p_root() argument
207 r = mkdir_p_root(root, pp, uid, gid, m); in mkdir_p_root()
230 if (uid_is_valid(uid) || gid_is_valid(gid)) { in mkdir_p_root()
237 if (fchown(nfd, uid, gid) < 0) in mkdir_p_root()