diff options
Diffstat (limited to 'src/context.c')
-rw-r--r-- | src/context.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/context.c b/src/context.c index 400e09b..38b8d18 100644 --- a/src/context.c +++ b/src/context.c @@ -74,8 +74,7 @@ int apk_ctx_prepare(struct apk_ctx *ac) const int lflags = O_WRONLY | O_APPEND | O_CREAT | O_CLOEXEC; int fd = openat(ac->root_fd, log_path, lflags, 0644); if (fd < 0 && (ac->open_flags & APK_OPENF_CREATE)) { - mkdirat(ac->root_fd, "var", 0755); - mkdirat(ac->root_fd, "var/log", 0755); + apk_make_dirs(ac->root_fd, "var/log", 0755, 0755); fd = openat(ac->root_fd, log_path, lflags, 0644); } if (fd < 0) { |