diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-11-12 15:18:06 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-11-16 17:03:03 +0100 |
commit | ed304a5d73389023a542841faeb277ccca798549 (patch) | |
tree | cf5da6ca6a0ba8e086513182e804b548026e1b44 /src/shared/mkdir-label.c | |
parent | 3f692e2ece5fce59b51ec7ec7c77d0ce2d47ee55 (diff) | |
download | systemd-ed304a5d73389023a542841faeb277ccca798549.tar.gz |
mkdir: drop mkdir_errno_wrapper(), use mkdirat_errno_wrapper() instead
Let's reduce our code duplication, and let's focus on using xyzat()
style APIs more, hence drop mkdir_errno_wrapper() and stick to
mkdirar_errno_wrapper() wherever we can, it's a true superset of
functionality after all.
Diffstat (limited to 'src/shared/mkdir-label.c')
-rw-r--r-- | src/shared/mkdir-label.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/mkdir-label.c b/src/shared/mkdir-label.c index 9e2f863535..3c332d1007 100644 --- a/src/shared/mkdir-label.c +++ b/src/shared/mkdir-label.c @@ -30,13 +30,13 @@ int mkdirat_label(int dirfd, const char *path, mode_t mode) { } int mkdir_safe_label(const char *path, mode_t mode, uid_t uid, gid_t gid, MkdirFlags flags) { - return mkdir_safe_internal(path, mode, uid, gid, flags, mkdir_label); + return mkdir_safe_internal(path, mode, uid, gid, flags, mkdirat_label); } int mkdir_parents_label(const char *path, mode_t mode) { - return mkdir_parents_internal(NULL, path, mode, UID_INVALID, UID_INVALID, 0, mkdir_label); + return mkdir_parents_internal(NULL, path, mode, UID_INVALID, UID_INVALID, 0, mkdirat_label); } int mkdir_p_label(const char *path, mode_t mode) { - return mkdir_p_internal(NULL, path, mode, UID_INVALID, UID_INVALID, 0, mkdir_label); + return mkdir_p_internal(NULL, path, mode, UID_INVALID, UID_INVALID, 0, mkdirat_label); } |