Skip to content

Commit

Permalink
mkcomposefs: Fix return value
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Sjölund <[email protected]>
  • Loading branch information
eriksjolund committed Oct 1, 2023
1 parent a21eb03 commit 343ecc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/mkcomposefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ static int copy_file_with_dirs_if_needed(const char *src, const char *dst_base,
/* Try to enable fsverity */
dfd = open(tmppath, O_CLOEXEC | O_RDONLY);
if (dfd < 0) {
return res;
return -1;
}

if (fstat(dfd, &statbuf) == 0) {
Expand Down

0 comments on commit 343ecc4

Please sign in to comment.