Skip to content

Commit

Permalink
fixup check
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlarsson committed Jan 29, 2024
1 parent d3e8d43 commit a534fd0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libcomposefs/lcfs-mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,12 @@ static errint_t lcfs_mount_ovl(struct lcfs_mount_state_s *state, char *imagemoun
*/
res = syscall_fsconfig(fd_fs, FSCONFIG_SET_STRING, "lowerdir+",
imagemount, 0);
/* EINVAL lack of support for appending as per above, fallback */
if (errno == EINVAL)
return -ENOSYS;
if (res < 0)
if (res < 0) {
/* EINVAL lack of support for appending as per above, fallback */
if (errno == EINVAL)
return -ENOSYS;
return -errno;
}

for (size_t i = 0; i < state->options->n_objdirs; i++) {
const char *objdir = state->options->objdirs[i];
Expand Down

0 comments on commit a534fd0

Please sign in to comment.