From 6eedb489e1e99574dd125b3880eb71c4978501b4 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 5 Nov 2003 23:27:15 +0000 Subject: [PATCH] An additional ui*() API cleanup that I missed. --- sys/kern/vfs_aio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index dee96357dc..7c589ef354 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -14,7 +14,7 @@ * of the author. This software is distributed AS-IS. * * $FreeBSD: src/sys/kern/vfs_aio.c,v 1.70.2.28 2003/05/29 06:15:35 alc Exp $ - * $DragonFly: src/sys/kern/vfs_aio.c,v 1.10 2003/07/30 00:19:14 dillon Exp $ + * $DragonFly: src/sys/kern/vfs_aio.c,v 1.11 2003/11/05 23:27:15 dillon Exp $ */ /* @@ -670,8 +670,7 @@ aio_daemon(void *uproc) mycp->p_fd = NULL; cr = cratom(&mycp->p_ucred); cr->cr_uid = 0; - uifree(cr->cr_uidinfo); - cr->cr_uidinfo = uifind(0); + uireplace(&cr->cr_uidinfo, uifind(0)); cr->cr_ngroups = 1; cr->cr_groups[0] = 1; -- 2.41.0