diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-11-04 19:20:33 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-11-04 19:20:33 +0000 |
commit | 35dc7f2858e664c421cef0249f55f74e99e47892 (patch) | |
tree | 7c6e8445c1ba141d21cf198f892981a47cd3a2e9 /sys/nfsserver/nfs_srvsubs.c | |
parent | 37e0f71c83b688a9e7667c44eee6ceb351ba1cb8 (diff) | |
download | FreeBSD-src-35dc7f2858e664c421cef0249f55f74e99e47892.zip FreeBSD-src-35dc7f2858e664c421cef0249f55f74e99e47892.tar.gz |
Garbage collect now-unused nfsrv_setcred() -- it's not only unused, but
also a purveyor of unfortunate (and now unsupported) direct frobbing of
struct ucred.
MFC after: 3 days
Diffstat (limited to 'sys/nfsserver/nfs_srvsubs.c')
-rw-r--r-- | sys/nfsserver/nfs_srvsubs.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sys/nfsserver/nfs_srvsubs.c b/sys/nfsserver/nfs_srvsubs.c index 380df3a..e0ecb68 100644 --- a/sys/nfsserver/nfs_srvsubs.c +++ b/sys/nfsserver/nfs_srvsubs.c @@ -1266,23 +1266,6 @@ nfsrvw_sort(gid_t *list, int num) } /* - * copy credentials making sure that the result can be compared with bcmp(). - */ -void -nfsrv_setcred(struct ucred *incred, struct ucred *outcred) -{ - int i; - - bzero((caddr_t)outcred, sizeof (struct ucred)); - refcount_init(&outcred->cr_ref, 1); - outcred->cr_uid = incred->cr_uid; - outcred->cr_ngroups = incred->cr_ngroups; - for (i = 0; i < incred->cr_ngroups; i++) - outcred->cr_groups[i] = incred->cr_groups[i]; - nfsrvw_sort(outcred->cr_groups, outcred->cr_ngroups); -} - -/* * Helper functions for macros. */ |