summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-06-16 20:36:23 +0000
committerRoland McGrath <roland@gnu.org>2001-06-16 20:36:23 +0000
commit33930cdd18b99ee7e80ad953227bfb875ca73224 (patch)
treec10e484af69b95fa55199bcbc6255ad1ff7cd994 /libtrivfs
parentd0c9c92e41409bbe0e2234d832e4aea98b902105 (diff)
2001-04-01 Neal H Walfield <neal@cs.uml.edu>
* 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.
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/protid-dup.c9
1 files changed, 7 insertions, 2 deletions
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,