summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-06-05 10:04:52 +0000
committerRoland McGrath <roland@gnu.org>1994-06-05 10:04:52 +0000
commit6f84e085de85dbb7b3197ad336b39773042e7d58 (patch)
tree01c06813c66f49a354456a04ab970b909b8048b4 /libdiskfs
parentf58bf56f953b4a2667a01d1c39d0c4267c1613d6 (diff)
Formerly io-reauthenticate.c.~8~
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/io-reauthenticate.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/libdiskfs/io-reauthenticate.c b/libdiskfs/io-reauthenticate.c
index c7f50314..38670b65 100644
--- a/libdiskfs/io-reauthenticate.c
+++ b/libdiskfs/io-reauthenticate.c
@@ -24,20 +24,19 @@ diskfs_S_io_reauthenticate (struct protid *cred,
int rend_int)
{
struct protid *newcred;
- uid_t *gen_uids = alloca (sizeof (uid_t) * 20);
- uid_t *gen_gids = alloca (sizeof (uid_t) * 20);
- uid_t *aux_uids = alloca (sizeof (uid_t) * 20);
- uid_t *aux_gids = alloca (sizeof (uid_t) * 20);
+ uid_t gubuf[20], ggbuf[20], aubuf[20], agbuf[20];
+ uid_t *gen_uids, *gen_gids, *aux_uids, *aux_gids;
u_int genuidlen, gengidlen, auxuidlen, auxgidlen;
- uid_t *gubuf, *ggbuf, *aubuf, *agbuf;
error_t err;
if (cred == 0)
return EOPNOTSUPP;
genuidlen = gengidlen = auxuidlen = auxgidlen = 20;
- gubuf = gen_uids; ggbuf = gen_gids;
- aubuf = aux_uids; agbuf = aux_gids;
+ gen_uids = gubuf;
+ gen_gids = ggbuf;
+ aux_uids = aubuf;
+ aux_gids = agbuf;
mutex_lock (&cred->po->np->lock);
newcred = diskfs_start_protid (cred->po);