fs_fsys: ignore mkdir EEXIST
Be happy if the directory already exists.cute-signatures
parent
b576f08284
commit
17f22530a5
|
@ -17,7 +17,8 @@
|
||||||
|
|
||||||
static int fsys_dir_create(struct apk_fsdir *d, mode_t mode)
|
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 -errno;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue