Project

General

Profile

Bug #1777 » vn.patch

josepht, 06/05/2010 10:19 PM

View differences:

sys/dev/disk/vn/vn.c
int
vnsetcred(struct vn_softc *vn, struct ucred *cred)
{
struct ucred *ocred;
char *tmpbuf;
int error = 0;
/*
* Set credits in our softc
*/
if (vn->sc_cred)
crfree(vn->sc_cred);
ocred = vn->sc_cred;
vn->sc_cred = crdup(cred);
if (ocred)
crfree(ocred);
/*
* Horrible kludge to establish credentials for NFS XXX.
*/
(3-3/3)