]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/bsd_init.c
xnu-201.42.3.tar.gz
[apple/xnu.git] / bsd / kern / bsd_init.c
index 1934f20f9923509504e83aae0ab0eaaf4c03f43f..6a055af65f58b5bf5fa71d6fcc816647ba78f319 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2001 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
@@ -496,8 +496,8 @@ bsd_init()
        /* Get the vnode for '/'.  Set fdp->fd_fd.fd_cdir to reference it. */
        if (VFS_ROOT(mountlist.cqh_first, &rootvnode))
                panic("bsd_init: cannot find root vnode");
        /* Get the vnode for '/'.  Set fdp->fd_fd.fd_cdir to reference it. */
        if (VFS_ROOT(mountlist.cqh_first, &rootvnode))
                panic("bsd_init: cannot find root vnode");
-       filedesc0.fd_cdir = rootvnode;
        VREF(rootvnode);
        VREF(rootvnode);
+       filedesc0.fd_cdir = rootvnode;
        VOP_UNLOCK(rootvnode, 0, p);
        
 
        VOP_UNLOCK(rootvnode, 0, p);