From 93054f14cb52bfd576e4ecfdcf0bc1c468e4cbbf Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 16 Jun 2001 20:21:47 +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. * trivfs_protid_dup (trivfs_protid_dup): Use iohelp_dup_iouser as per the new semantics. --- libtrivfs/dir-lookup.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'libtrivfs/dir-lookup.c') 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) -- cgit v1.2.3