summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-01-27 16:53:50 +0000
committerMiles Bader <miles@gnu.org>1996-01-27 16:53:50 +0000
commitdd350afc7da9c49348a14dcf4d82a3f0cdeb71d0 (patch)
treeff4984337da18571789d574b2a69fefabf9672eb
parent2295793c9ecf5e24933e373204d605b8455894f8 (diff)
(diskfs_S_io_reauthenticate): Use new version of diskfs_start_protid.
-rw-r--r--libdiskfs/io-reauthenticate.c10
1 files 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,