Date: Tue, 03 Sep 2019 14:06:06 -0000 From: Alan Somers <asomers@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r345767 - projects/fuse2/sys/fs/fuse Message-ID: <201904011615.x31GFT6J004479@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: asomers Date: Mon Apr 1 16:15:29 2019 New Revision: 345767 URL: https://svnweb.freebsd.org/changeset/base/345767 Log: fusefs: fix an inverted error check in my last commit This should be merged alongside 345766 Sponsored by: The FreeBSD Foundation Modified: projects/fuse2/sys/fs/fuse/fuse_vnops.c Modified: projects/fuse2/sys/fs/fuse/fuse_vnops.c ============================================================================== --- projects/fuse2/sys/fs/fuse/fuse_vnops.c Mon Apr 1 14:23:43 2019 (r345766) +++ projects/fuse2/sys/fs/fuse/fuse_vnops.c Mon Apr 1 16:15:29 2019 (r345767) @@ -285,9 +285,8 @@ fuse_vnop_close(struct vop_close_args *ap) if (vnode_isdir(vp)) { 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); - } return 0; } if (fflag & IO_NDELAY) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904011615.x31GFT6J004479>