summaryrefslogtreecommitdiff
path: root/libdiskfs/peropen-make.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/peropen-make.c')
-rw-r--r--libdiskfs/peropen-make.c4
1 files changed, 2 insertions, 2 deletions
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);