Module Name: src Committed By: manu Date: Fri Sep 3 14:32:50 UTC 2010
Modified Files: src/lib/libperfuse: ops.c Log Message: Fix reference count bug introduced by previous commit To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/lib/libperfuse/ops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libperfuse/ops.c diff -u src/lib/libperfuse/ops.c:1.7 src/lib/libperfuse/ops.c:1.8 --- src/lib/libperfuse/ops.c:1.7 Fri Sep 3 07:15:18 2010 +++ src/lib/libperfuse/ops.c Fri Sep 3 14:32:50 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: ops.c,v 1.7 2010/09/03 07:15:18 manu Exp $ */ +/* $NetBSD: ops.c,v 1.8 2010/09/03 14:32:50 manu Exp $ */ /*- * Copyright (c) 2010 Emmanuel Dreyfus. All rights reserved. @@ -1006,7 +1006,9 @@ * aware that the file was created. If we do not do it, we * get "SETATTR (null) (fuse_loc_fill() failed)" */ - (void)node_lookup_common(pu, opc, (char*)PCNPATH(pcn), NULL); + (void)puffs_pn_nodewalk(pu, puffs_path_walkcmp, + __UNCONST(&pcn->pcn_po_full)); + out: ps->ps_destroy_msg(pm); @@ -2489,7 +2491,6 @@ if (puffs_pn_getvap((struct puffs_node *)opc)->va_type == VDIR) return EBADF; -DPRINTF("%s ENTER\n", __func__); pnd->pnd_flags |= PND_INWRITE; requested = *resid;