diff options
author | Roland McGrath <roland@gnu.org> | 2001-06-16 20:23:09 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-06-16 20:23:09 +0000 |
commit | 487bba2f0cd506b4a79e1d92184a5f80d827954f (patch) | |
tree | f26a7bc5548e27603cdd3a239fec26490b2f8b4a /libdiskfs/dir-lookup.c | |
parent | a2529808d1aaf878eb6fff54ab491bd3d47db894 (diff) |
2001-04-01 Neal H Walfield <neal@cs.uml.edu>
* dir-lookup.c (diskfs_S_dir_lookup): Use
iohelp_create_empty_iouser.
* fsys-getfile.c (diskfs_S_fsys_getfile): Use
iohelp_create_complex_iouser.
* io-reauthenticate.c (diskfs_S_io_reauthenticate): Use
new iohelp_reauth semantics.
* io-restrict-auth.c (diskfs_S_io_restrict_auth): Use
new iohelp_create_iouser semantics.
* protid-make.c (diskfs_finish_protid): Use
iohelp_create_simple_iouser and new iohelp_dup_iouse
semantics.
* trans-callback.c (_diskfs_translator_callback2_fn):
Use iohelp_create_simple_iouser.
Diffstat (limited to 'libdiskfs/dir-lookup.c')
-rw-r--r-- | libdiskfs/dir-lookup.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c index 2cecc91d..3d749dd5 100644 --- a/libdiskfs/dir-lookup.c +++ b/libdiskfs/dir-lookup.c @@ -248,11 +248,15 @@ diskfs_S_dir_lookup (struct protid *dircred, /* Create an unauthenticated port for DNP, and then unlock it. */ - user = iohelp_create_iouser (make_idvec (), make_idvec ()); - error = - diskfs_create_protid (diskfs_make_peropen (dnp, 0, dircred->po), - user, &newpi); - iohelp_free_iouser (user); + error = iohelp_create_empty_iouser (&user); + if (! error) + { + error = + diskfs_create_protid (diskfs_make_peropen (dnp, 0, + dircred->po), + user, &newpi); + iohelp_free_iouser (user); + } if (error) goto out; |