diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-02-13 09:39:13 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-02-13 09:39:13 +0000 |
commit | cb37680cba43ab2803e376cef23c4381bbd4f034 (patch) | |
tree | 6c00fa614008b5b62a7caed3d9473164addfc43e /libdiskfs | |
parent | dbe1211d027346c1e61a7befdb930ae64758329e (diff) |
Sat Feb 13 04:29:29 1999 Thomas Bushnell, BSG <tb@mit.edu>
* peropen-make.c (diskfs_make_peropen): If there is no existing
context, then set the shadow_root iff we are a chrooted virtual
root filesystem.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/ChangeLog | 6 | ||||
-rw-r--r-- | libdiskfs/peropen-make.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libdiskfs/ChangeLog b/libdiskfs/ChangeLog index f1c1a716..a4922ab2 100644 --- a/libdiskfs/ChangeLog +++ b/libdiskfs/ChangeLog @@ -1,3 +1,9 @@ +Sat Feb 13 04:29:29 1999 Thomas Bushnell, BSG <tb@mit.edu> + + * peropen-make.c (diskfs_make_peropen): If there is no existing + context, then set the shadow_root iff we are a chrooted virtual + root filesystem. + 1999-02-12 Gordon Matzigkeit <gord@trick.fig.org> * init-startup.c (diskfs_startup_diskfs): Release the virtual diff --git a/libdiskfs/peropen-make.c b/libdiskfs/peropen-make.c index d74186e7..887658c7 100644 --- a/libdiskfs/peropen-make.c +++ b/libdiskfs/peropen-make.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1994, 1997 Free Software Foundation + Copyright (C) 1994, 1997, 1999 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -50,8 +50,8 @@ diskfs_make_peropen (struct node *np, int flags, struct peropen *context) else { po->root_parent = MACH_PORT_NULL; - po->shadow_root = 0; po->shadow_root_parent = MACH_PORT_NULL; + po->shadow_root = _diskfs_chroot_directory ? diskfs_root_node : 0; } diskfs_nref (np); |