summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-11-20 04:00:32 +0000
committerMiles Bader <miles@gnu.org>1996-11-20 04:00:32 +0000
commit47af432fa8c07ed6db5a4d3cbbf330b140d5762e (patch)
tree9e69d036d412f90d393725338153ff5d84a6fdb2
parent79dbd75721ada3bd0e0df65c11d65284cc23c65c (diff)
(trivfs_S_io_stat):
Clear S_ITRANS and set S_IROOT in ST->st_mode (before calling trivfs_modify_stat).
-rw-r--r--libtrivfs/io-stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtrivfs/io-stat.c b/libtrivfs/io-stat.c
index 6466e453..9e6c9585 100644
--- a/libtrivfs/io-stat.c
+++ b/libtrivfs/io-stat.c
@@ -37,12 +37,12 @@ trivfs_S_io_stat (struct trivfs_protid *cred,
if (!err)
{
- if (!trivfs_fsid)
+ if (! trivfs_fsid)
trivfs_fsid = getpid();
st->st_fstype = trivfs_fstype;
st->st_fsid = trivfs_fsid;
- st->st_mode = (st->st_mode & ~S_IFMT) | S_IFCHR;
+ st->st_mode = (st->st_mode & ~S_IFMT & ~S_ITRANS) | S_IFCHR | S_IROOT;
trivfs_modify_stat (cred, st);
}