Bug #1777 » vn.patch
| 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.
|
||
|
*/
|
||
- « Previous
- 1
- 2
- 3
- Next »