fusefs: fix an inverted error check in my last commit

This should be merged alongside 345766

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Alan Somers 2019-04-01 16:15:29 +00:00
parent 5ec10aa527
commit 4a6d5507f7

View File

@ -285,9 +285,8 @@ fuse_vnop_close(struct vop_close_args *ap)
if (vnode_isdir(vp)) { if (vnode_isdir(vp)) {
struct fuse_filehandle *fufh; struct fuse_filehandle *fufh;
if (fuse_filehandle_get(vp, O_RDONLY, &fufh)) { if (fuse_filehandle_get(vp, O_RDONLY, &fufh) == 0)
fuse_filehandle_close(vp, fufh, NULL, cred); fuse_filehandle_close(vp, fufh, NULL, cred);
}
return 0; return 0;
} }
if (fflag & IO_NDELAY) { if (fflag & IO_NDELAY) {