summaryrefslogtreecommitdiff
path: root/sys/miscfs/fuse
diff options
context:
space:
mode:
authornatano <natano@cvs.openbsd.org>2016-02-25 19:07:46 +0000
committernatano <natano@cvs.openbsd.org>2016-02-25 19:07:46 +0000
commit75b689c89db1b96e8a3b99440a12aa2a6ffe089e (patch)
treecba1d95aa8331d099374ca815bf811e5cb2ed6dd /sys/miscfs/fuse
parent5862331f101048971bea8e7560925d45fb40d4cf (diff)
Replace a usage of ROOTINO ((ufsino_t)2 with FUSE_ROOTINO ((ino_t)1).
The FUSE_ROOTINO define is used everywhere else in fuse, so the mismatch caused a file handle for the filesystem root to be falsely rejected with ESTALE. ok stefan@
Diffstat (limited to 'sys/miscfs/fuse')
-rw-r--r--sys/miscfs/fuse/fuse_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/miscfs/fuse/fuse_vfsops.c b/sys/miscfs/fuse/fuse_vfsops.c
index ca58eca11a3..2b99f56cea8 100644
--- a/sys/miscfs/fuse/fuse_vfsops.c
+++ b/sys/miscfs/fuse/fuse_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fuse_vfsops.c,v 1.17 2016/02/25 18:59:26 natano Exp $ */
+/* $OpenBSD: fuse_vfsops.c,v 1.18 2016/02/25 19:07:45 natano Exp $ */
/*
* Copyright (c) 2012-2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
@@ -304,7 +304,7 @@ fusefs_fhtovp(struct mount *mp, struct fid *fhp, struct vnode **vpp)
ufhp = (struct ufid *)fhp;
if (ufhp->ufid_len != sizeof(struct ufid) ||
- ufhp->ufid_ino < ROOTINO)
+ ufhp->ufid_ino < FUSE_ROOTINO)
return (ESTALE);
return (VFS_VGET(mp, ufhp->ufid_ino, vpp));