summaryrefslogtreecommitdiff
path: root/sys/miscfs/fuse/fuse_lookup.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/miscfs/fuse/fuse_lookup.c')
-rw-r--r--sys/miscfs/fuse/fuse_lookup.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/miscfs/fuse/fuse_lookup.c b/sys/miscfs/fuse/fuse_lookup.c
index ca93c59d186..a0d2fc49aa6 100644
--- a/sys/miscfs/fuse/fuse_lookup.c
+++ b/sys/miscfs/fuse/fuse_lookup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fuse_lookup.c,v 1.13 2016/08/16 21:32:58 natano Exp $ */
+/* $OpenBSD: fuse_lookup.c,v 1.14 2016/08/21 09:23:33 natano Exp $ */
/*
* Copyright (c) 2012-2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
@@ -174,15 +174,11 @@ fusefs_lookup(void *v)
error = 0;
} else {
error = VFS_VGET(fmp->mp, nid, &tdp);
-
- if (!error)
- tdp->v_type = IFTOVT(fbuf->fb_vattr.va_mode);
-
- update_vattr(fmp->mp, &fbuf->fb_vattr);
-
if (error)
goto out;
+ tdp->v_type = IFTOVT(fbuf->fb_vattr.va_mode);
+
if (vdp != NULL && vdp->v_type == VDIR)
VTOI(tdp)->parent = dp->ufs_ino.i_number;