diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2002-03-05 19:45:45 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2002-03-05 19:45:45 +0000 |
commit | 89e1164ee22c2d989c9ee92c88d7b0cac3b640ca (patch) | |
tree | b79d8bd4ba6b9b1da07a5bbfd27435bbace9adad | |
parent | eb1c57d87293f51ce8b71a87834fbc5afb471007 (diff) | |
download | src-89e1164ee22c2d989c9ee92c88d7b0cac3b640ca.tar.gz src-89e1164ee22c2d989c9ee92c88d7b0cac3b640ca.zip |
Three p_ucred -> td_ucred's missed in jhb's earlier pass; all appear to
be safe.
Notes
Notes:
svn path=/head/; revision=91709
-rw-r--r-- | sys/kern/vfs_extattr.c | 4 | ||||
-rw-r--r-- | sys/kern/vfs_subr.c | 2 | ||||
-rw-r--r-- | sys/kern/vfs_syscalls.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index 81e86ce8dedd..fd2260269f88 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -4143,12 +4143,12 @@ extattr_get_vp(struct vnode *vp, int attrnamespace, const char *attrname, auio.uio_td = td; cnt = nbytes; error = VOP_GETEXTATTR(vp, attrnamespace, attrname, &auio, - NULL, td->td_proc->p_ucred, td); + NULL, td->td_ucred, td); cnt -= auio.uio_resid; td->td_retval[0] = cnt; } else { error = VOP_GETEXTATTR(vp, attrnamespace, attrname, NULL, - &size, td->td_proc->p_ucred, td); + &size, td->td_ucred, td); td->td_retval[0] = size; } done: diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 95df46b8f218..8e5ea283a88e 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1920,7 +1920,7 @@ loop: */ if ((flags & WRITECLOSE) && (vp->v_type == VNON || - (VOP_GETATTR(vp, &vattr, td->td_proc->p_ucred, td) == 0 && + (VOP_GETATTR(vp, &vattr, td->td_ucred, td) == 0 && vattr.va_nlink > 0)) && (vp->v_writecount == 0 || vp->v_type != VREG)) { mtx_unlock(&vp->v_interlock); diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 81e86ce8dedd..fd2260269f88 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -4143,12 +4143,12 @@ extattr_get_vp(struct vnode *vp, int attrnamespace, const char *attrname, auio.uio_td = td; cnt = nbytes; error = VOP_GETEXTATTR(vp, attrnamespace, attrname, &auio, - NULL, td->td_proc->p_ucred, td); + NULL, td->td_ucred, td); cnt -= auio.uio_resid; td->td_retval[0] = cnt; } else { error = VOP_GETEXTATTR(vp, attrnamespace, attrname, NULL, - &size, td->td_proc->p_ucred, td); + &size, td->td_ucred, td); td->td_retval[0] = size; } done: |