Skip to content

Commit

Permalink
Merge pull request #209 from eriksjolund/mkcomposefs-fix-return-value
Browse files Browse the repository at this point in the history
mkcomposefs: Fix error return value
  • Loading branch information
cgwalters authored Oct 1, 2023
2 parents a21eb03 + 5a443d4 commit e2974e9
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 e2974e9

Please sign in to comment.