Subject: CVS commit: [elad-kernelauth] src/sys
To: None <source-changes@NetBSD.org>
From: Elad Efrat <elad@netbsd.org>
List: source-changes
Date: 03/10/2006 19:11:51
Module Name:	src
Committed By:	elad
Date:		Fri Mar 10 19:11:51 UTC 2006

Modified Files:
	src/sys/kern [elad-kernelauth]: kern_auth.c
	src/sys/nfs [elad-kernelauth]: nfs_export.c nfs_syscalls.c
	src/sys/sys [elad-kernelauth]: kauth.h

Log Message:
Some cleanup.

kauth_cred_setrefcnt() was only called after kauth_cred_convert() in NFS
code to convert a struct uucred to kauth_cred_t. Since there's no valid
use for such a function, make kauth_cred_convert() set the reference
count to 1 and eliminate the need for kauth_cred_setrefcnt() entirely.

Motivated by comments from yamt@ and thorpej@.


To generate a diff of this commit:
cvs rdiff -r1.1.2.12 -r1.1.2.13 src/sys/kern/kern_auth.c
cvs rdiff -r1.9.8.2 -r1.9.8.3 src/sys/nfs/nfs_export.c
cvs rdiff -r1.88.8.2 -r1.88.8.3 src/sys/nfs/nfs_syscalls.c
cvs rdiff -r1.1.2.7 -r1.1.2.8 src/sys/sys/kauth.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.