From 33930cdd18b99ee7e80ad953227bfb875ca73224 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 16 Jun 2001 20:36:23 +0000 Subject: 2001-04-01 Neal H Walfield * dir-lookup.c (trivfs_S_dir_lookup): Use iohelp_dup_iouser as per the new semantics. * fsys-getroot.c (trivfs_S_fsys_getroot): Use iohelp_create_complex_iouser. * io-reauthenticate.c (trivfs_S_io_reauthenticate): Use iohelp_reauth as per the new semantics. * io-restrict-auth.c (trivfs_S_io_restrict_auth): Use iohelp_create_complex_iouser. Check return values. * protid-dup.c (trivfs_protid_dup): Use iohelp_dup_iouser as per the new semantics. --- libtrivfs/protid-dup.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libtrivfs') diff --git a/libtrivfs/protid-dup.c b/libtrivfs/protid-dup.c index 097ab55b..855cd062 100644 --- a/libtrivfs/protid-dup.c +++ b/libtrivfs/protid-dup.c @@ -1,6 +1,6 @@ /* Duplicate a protid - Copyright (C) 1993, 1994, 1995, 1996 Free Software Foundation, Inc. + Copyright (C) 1993,94,95,96,2001 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -42,7 +42,12 @@ trivfs_protid_dup (struct trivfs_protid *cred, struct trivfs_protid **dup) new->isroot = cred->isroot; - new->user = iohelp_dup_iouser (cred->user); + err = iohelp_dup_iouser (&new->user, cred->user); + if (err) + { + ports_port_deref (new); + return err; + } new->realnode = cred->realnode; mach_port_mod_refs (mach_task_self (), new->realnode, -- cgit v1.2.3