summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/file-reparent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnetfs/file-reparent.c b/libnetfs/file-reparent.c
index 095a9232..6397951e 100644
--- a/libnetfs/file-reparent.c
+++ b/libnetfs/file-reparent.c
@@ -37,7 +37,7 @@ netfs_S_file_reparent (struct protid *cred, mach_port_t parent,
mutex_lock (&node->lock);
new_cred =
netfs_make_protid (netfs_make_peropen (node, cred->po->openstat, cred->po),
- cred->user);
+ iohelp_dup_iouser (cred->user));
mutex_unlock (&node->lock);
if (new_cred)