From eb55ee8585eff7509a13092a6cbead30a1e83ee9 Mon Sep 17 00:00:00 2001 From: rwatson Date: Sat, 5 Oct 2002 20:05:23 +0000 Subject: [PATCH] Make sure that the accounting credential is saved along with the vp when accounting is suspended--otherwise when accounting is restored, we may incorrectly assume the credential is valid. Panics experienced by: juli --- sys/kern/kern_acct.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/kern_acct.c b/sys/kern/kern_acct.c index a92630ff016..9707caf1d61 100644 --- a/sys/kern/kern_acct.c +++ b/sys/kern/kern_acct.c @@ -388,6 +388,7 @@ acctwatch(a) if (sb.f_bavail <= acctsuspend * sb.f_blocks / 100) { savacctp = acctp; savacctflags = acctflags; + savacctcred = acctcred; acctp = NULLVP; acctcred = NOCRED; log(LOG_NOTICE, "Accounting suspended\n"); -- 2.45.2