diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-02-07 17:51:49 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-02-07 17:51:49 +0000 |
commit | 22d20abb1aad051e1820fc2fe513548456c71b89 (patch) | |
tree | a83706cb3c1968a92fd2268fb3d223fa33bff07b /sys/msdosfs | |
parent | 97a302248148408e070f6d0f05512ccda315b31c (diff) |
fix debug case; from Mike Pechkin <mpech@prosoft.org.lv>
Diffstat (limited to 'sys/msdosfs')
-rw-r--r-- | sys/msdosfs/msdosfs_vfsops.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c index 7d3c727eaa0..b2706b8f00c 100644 --- a/sys/msdosfs/msdosfs_vfsops.c +++ b/sys/msdosfs/msdosfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_vfsops.c,v 1.20 2000/03/15 03:18:02 aaron Exp $ */ +/* $OpenBSD: msdosfs_vfsops.c,v 1.21 2001/02/07 17:51:48 mickey Exp $ */ /* $NetBSD: msdosfs_vfsops.c,v 1.48 1997/10/18 02:54:57 briggs Exp $ */ /*- @@ -664,12 +664,14 @@ msdosfs_root(mp, vpp) struct denode *ndep; int error; + if ((error = deget(pmp, MSDOSFSROOT, MSDOSFSROOT_OFS, &ndep)) != 0) + return (error); + #ifdef MSDOSFS_DEBUG printf("msdosfs_root(); mp %08x, pmp %08x, ndep %08x, vp %08x\n", mp, pmp, ndep, DETOV(ndep)); #endif - if ((error = deget(pmp, MSDOSFSROOT, MSDOSFSROOT_OFS, &ndep)) != 0) - return (error); + *vpp = DETOV(ndep); return (0); } |