summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libtrivfs/io-restrict-auth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libtrivfs/io-restrict-auth.c b/libtrivfs/io-restrict-auth.c
index 2d928cbf..21783ef9 100644
--- a/libtrivfs/io-restrict-auth.c
+++ b/libtrivfs/io-restrict-auth.c
@@ -74,6 +74,7 @@ trivfs_S_io_restrict_auth (struct trivfs_protid *cred,
bcopy (newgids, newcred->gids, newngids * sizeof (uid_t));
newcred->ngids = newngids;
newcred->nuids = newnuids;
+ newcred->hook = cred->hook;
io_restrict_auth (cred->realnode, &newcred->realnode,
newuids, newnuids, newgids, newngids);