PERFORCE change 84061 for review

Robert Watson rwatson at FreeBSD.org
Wed Sep 21 15:46:01 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=84061

Change 84061 by rwatson at rwatson_zoo on 2005/09/21 15:45:51

	Spot integrate of accounting bug fix from TrustedBSD base into
	TrustedBSD audit, as this bug fix is required to pass the audit3
	regression test suite.

Affected files ...

.. //depot/projects/trustedbsd/audit3/sys/kern/kern_acct.c#4 integrate

Differences ...

==== //depot/projects/trustedbsd/audit3/sys/kern/kern_acct.c#4 (text+ko) ====

@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/sys/kern/kern_acct.c,v 1.74 2005/03/01 08:56:13 rwatson Exp $");
+__FBSDID("$FreeBSD: src/sys/kern/kern_acct.c,v 1.75 2005/09/21 15:28:07 rwatson Exp $");
 
 #include "opt_mac.h"
 
@@ -400,7 +400,7 @@
 			mtx_unlock(&acct_mtx);
 			return;
 		}
-		(void)VFS_STATFS(savacctp->v_mount, &sb, (struct thread *)0);
+		(void)VFS_STATFS(savacctp->v_mount, &sb, curthread);
 		if (sb.f_bavail > acctresume * sb.f_blocks / 100) {
 			acctp = savacctp;
 			acctcred = savacctcred;
@@ -422,7 +422,7 @@
 			mtx_unlock(&acct_mtx);
 			return;
 		}
-		(void)VFS_STATFS(acctp->v_mount, &sb, (struct thread *)0);
+		(void)VFS_STATFS(acctp->v_mount, &sb, curthread);
 		if (sb.f_bavail <= acctsuspend * sb.f_blocks / 100) {
 			savacctp = acctp;
 			savacctflags = acctflags;
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list