summaryrefslogtreecommitdiffstats
path: root/sys/nfsserver
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-11-04 19:20:33 +0000
committerrwatson <rwatson@FreeBSD.org>2007-11-04 19:20:33 +0000
commit35dc7f2858e664c421cef0249f55f74e99e47892 (patch)
tree7c6e8445c1ba141d21cf198f892981a47cd3a2e9 /sys/nfsserver
parent37e0f71c83b688a9e7667c44eee6ceb351ba1cb8 (diff)
downloadFreeBSD-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')
-rw-r--r--sys/nfsserver/nfs.h1
-rw-r--r--sys/nfsserver/nfs_srvsubs.c17
2 files changed, 0 insertions, 18 deletions
diff --git a/sys/nfsserver/nfs.h b/sys/nfsserver/nfs.h
index 72e1204..2604e90 100644
--- a/sys/nfsserver/nfs.h
+++ b/sys/nfsserver/nfs.h
@@ -347,7 +347,6 @@ void nfsrv_cleancache(void);
void nfsrv_init(int);
int nfsrv_errmap(struct nfsrv_descript *, int);
void nfsrvw_sort(gid_t *, int);
-void nfsrv_setcred(struct ucred *, struct ucred *);
void nfsrv_wakenfsd(struct nfssvc_sock *slp);
int nfsrv_writegather(struct nfsrv_descript **, struct nfssvc_sock *,
struct thread *, struct mbuf **);
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.
*/
OpenPOWER on IntegriCloud