From dd350afc7da9c49348a14dcf4d82a3f0cdeb71d0 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 27 Jan 1996 16:53:50 +0000 Subject: (diskfs_S_io_reauthenticate): Use new version of diskfs_start_protid. --- libdiskfs/io-reauthenticate.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libdiskfs/io-reauthenticate.c b/libdiskfs/io-reauthenticate.c index b4a0b0a3..76a2f5a0 100644 --- a/libdiskfs/io-reauthenticate.c +++ b/libdiskfs/io-reauthenticate.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1994, 1995 Free Software Foundation + Copyright (C) 1994, 1995, 1996 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 @@ -39,7 +39,13 @@ diskfs_S_io_reauthenticate (struct protid *cred, aux_gids = agbuf; mutex_lock (&cred->po->np->lock); - newcred = diskfs_start_protid (cred->po); + err = diskfs_start_protid (cred->po, &newcred); + if (err) + { + mutex_unlock (&cred->po->np->lock); + return err; + } + err = auth_server_authenticate (diskfs_auth_server_port, ports_get_right (cred), MACH_MSG_TYPE_MAKE_SEND, -- cgit v1.2.3