mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
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:
parent
006799ab80
commit
1ae6d818f0
@ -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);
|
fuse_finish_interrupt(f, req, &d);
|
||||||
free(path);
|
free(path);
|
||||||
|
|
||||||
fuse_reply_ioctl(req, err, out_buf, out_bufsz);
|
if (err >= 0) { /* not an error */
|
||||||
|
fuse_reply_ioctl(req, err, out_buf, out_bufsz);
|
||||||
goto out;
|
goto out;
|
||||||
|
}
|
||||||
err:
|
err:
|
||||||
reply_err(req, err);
|
reply_err(req, err);
|
||||||
out:
|
out:
|
||||||
|
Loading…
Reference in New Issue
Block a user