From d4a374818f3931874c4de35270e80f6c7204ba14 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 16 Jun 2001 20:23:52 +0000 Subject: 2001-04-01 Neal H Walfield * magic.c (trivfs_S_dir_lookup): Use iohelp_dup_iouser as per the new semantics. --- trans/magic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3