summaryrefslogtreecommitdiff
path: root/trans/magic.c
diff options
context:
space:
mode:
Diffstat (limited to 'trans/magic.c')
-rw-r--r--trans/magic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/trans/magic.c b/trans/magic.c
index 824bd5bd..e207ca6f 100644
--- a/trans/magic.c
+++ b/trans/magic.c
@@ -214,7 +214,9 @@ trivfs_S_dir_lookup (struct trivfs_protid *cred,
/* Execute the open */
dotdot = (mach_port_t) cred->po->hook;
- user = iohelp_dup_iouser (cred->user);
+ err = iohelp_dup_iouser (&user, cred->user);
+ if (err)
+ return err;
err = magic_open (cred->po->cntl, user, dotdot, flags,
cred->realnode, &newcred);
if (err)