summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/io-duplicate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libtrivfs/io-duplicate.c b/libtrivfs/io-duplicate.c
index ce3f29cc..8f0a3c74 100644
--- a/libtrivfs/io-duplicate.c
+++ b/libtrivfs/io-duplicate.c
@@ -47,6 +47,8 @@ trivfs_S_io_duplicate (struct trivfs_protid *cred,
mach_port_mod_refs (mach_task_self (), newcred->realnode,
MACH_PORT_RIGHT_SEND, 1);
+ newcred->hook = cred->hook;
+
if (trivfs_protid_create_hook)
(*trivfs_protid_create_hook) (newcred);