summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-08-29 23:11:43 +0000
committerMiles Bader <miles@gnu.org>1997-08-29 23:11:43 +0000
commit0efee51c943041eb084ecf0705f974ef0c903af2 (patch)
treece4d261ed23fe8aed4802abe2861ebb6108375b0
parent1d9949d72516653a85e7511654b037029be2fdf7 (diff)
(netfs_S_file_reparent):
Use a copy of CRED->user when creating NEW_CRED.
-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)