summaryrefslogtreecommitdiff
path: root/src/fs_fsys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs_fsys.c')
-rw-r--r--src/fs_fsys.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs_fsys.c b/src/fs_fsys.c
index 2c43607..42c8a4c 100644
--- a/src/fs_fsys.c
+++ b/src/fs_fsys.c
@@ -17,7 +17,8 @@
static int fsys_dir_create(struct apk_fsdir *d, mode_t mode)
{
- if (mkdirat(apk_ctx_fd_dest(d->ac), apk_pathbuilder_cstr(&d->pb), mode) < 0)
+ if (mkdirat(apk_ctx_fd_dest(d->ac), apk_pathbuilder_cstr(&d->pb), mode) < 0 &&
+ errno != EEXIST)
return -errno;
return 0;
}