diff options
author | Miles Bader <miles@gnu.org> | 1997-02-24 22:17:29 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-02-24 22:17:29 +0000 |
commit | a20f6e2adfd2ed81540eeb0e63deccd262a76ac6 (patch) | |
tree | 354d2d476fc7094ffd74b0b374664ed23fc939f5 | |
parent | b7fadbedd0bd45fc1bb880f1a4ba984a58b46972 (diff) |
(diskfs_S_io_stat):
Mark shadow roots with S_IROOT.
-rw-r--r-- | libdiskfs/io-stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/io-stat.c b/libdiskfs/io-stat.c index be584ff7..fb84fa68 100644 --- a/libdiskfs/io-stat.c +++ b/libdiskfs/io-stat.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1994, 1995, 1996 Free Software Foundation + Copyright (C) 1994, 1995, 1996, 1997 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 @@ -47,7 +47,7 @@ diskfs_S_io_stat (struct protid *cred, statbuf->st_mode |= S_IATRANS; mach_port_deallocate (mach_task_self (), atrans); } - if (np == diskfs_root_node) + if (cred->po->shadow_root == np || np == diskfs_root_node) statbuf->st_mode |= S_IROOT; mutex_unlock (&np->lock); |