summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-02-14 01:34:03 +0000
committerMiles Bader <miles@gnu.org>1997-02-14 01:34:03 +0000
commit5e484f4ae91753c7a652c480afe801841e936b50 (patch)
treea59dce8e0e053d52ab94adfab1dd7b6f82278d64
parent5a8913b8fd5f8b5eb27a84392b6d6c023e02eac2 (diff)
(trivfs_S_fsys_getroot):
Use trivfs_getroot_hook.
-rw-r--r--libtrivfs/fsys-getroot.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/libtrivfs/fsys-getroot.c b/libtrivfs/fsys-getroot.c
index 81b8c25e..4eadd344 100644
--- a/libtrivfs/fsys-getroot.c
+++ b/libtrivfs/fsys-getroot.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1993, 1994, 1995 Free Software Foundation
+ Copyright (C) 1993, 1994, 1995, 1997 Free Software Foundation
This file is part of the GNU Hurd.
@@ -49,6 +49,15 @@ trivfs_S_fsys_getroot (struct trivfs_control *cntl,
if (!cntl)
return EOPNOTSUPP;
+ if (trivfs_getroot_hook)
+ {
+ err = (*trivfs_getroot_hook) (cntl, reply_port, reply_port_type, dotdot,
+ uids, nuids, gids, ngids, flags,
+ do_retry, retry_name, newpt, newpttype);
+ if (err != EAGAIN)
+ return err;
+ }
+
if ((flags & (O_READ|O_WRITE|O_EXEC) & trivfs_allow_open)
!= (flags & (O_READ|O_WRITE|O_EXEC)))
return EOPNOTSUPP;