summaryrefslogtreecommitdiff
path: root/libtrivfs/dir-lookup.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-06-16 20:21:47 +0000
committerRoland McGrath <roland@gnu.org>2001-06-16 20:21:47 +0000
commit93054f14cb52bfd576e4ecfdcf0bc1c468e4cbbf (patch)
treeee9c2bd4a038dab7f42a7107bcd7b0740f14fc2a /libtrivfs/dir-lookup.c
parent17d01fc816b86f11aa4c82b47ba9aba98463e7e8 (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. * trivfs_protid_dup (trivfs_protid_dup): Use iohelp_dup_iouser as per the new semantics.
Diffstat (limited to 'libtrivfs/dir-lookup.c')
-rw-r--r--libtrivfs/dir-lookup.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libtrivfs/dir-lookup.c b/libtrivfs/dir-lookup.c
index 604df8cc..5a0013aa 100644
--- a/libtrivfs/dir-lookup.c
+++ b/libtrivfs/dir-lookup.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1994, 1998, 1999 Free Software Foundation
+ Copyright (C) 1994,98,99,2001 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -64,7 +64,12 @@ trivfs_S_dir_lookup (struct trivfs_protid *cred,
err = (*trivfs_check_open_hook) (cred->po->cntl, cred->user, flags);
if (!err)
{
- struct iouser *user = iohelp_dup_iouser (cred->user);
+ struct iouser *user;
+
+ err = iohelp_dup_iouser (&user, cred->user);
+ if (err)
+ return err;
+
err = trivfs_open (cred->po->cntl, user, flags,
cred->realnode, &newcred);
if (err)