Skip to content

Commit

Permalink
fuse: Correctly report errno
Browse files Browse the repository at this point in the history
fuse_reply_err takes the errno, not -errno.

Signed-off-by: Alexander Larsson <[email protected]>
  • Loading branch information
alexlarsson committed Oct 12, 2023
1 parent ebd286d commit 110d64b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cfs-fuse.c
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ static void cfs_open(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
fd = openat(basedir_fd, redirect,
O_CLOEXEC | O_NOCTTY | O_NOFOLLOW | O_RDONLY, 0);
if (fd < 0) {
fuse_reply_err(req, -errno);
fuse_reply_err(req, errno);
return;
}

Expand Down

0 comments on commit 110d64b

Please sign in to comment.