Returned a low level error when an ioctl fails

When an ioctl fails, the errno is not correctly propagated, and the
log was wrong.
This commit is contained in:
Jean-Pierre André 2019-01-23 17:40:23 +01:00
parent 006799ab80
commit 1ae6d818f0

View File

@ -2781,8 +2781,10 @@ static void fuse_lib_ioctl(fuse_req_t req, fuse_ino_t ino, int cmd, void *arg,
fuse_finish_interrupt(f, req, &d);
free(path);
if (err >= 0) { /* not an error */
fuse_reply_ioctl(req, err, out_buf, out_bufsz);
goto out;
}
err:
reply_err(req, err);
out: