mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 23:28:57 +00:00
The change from td->td_proc->p_ucred to td->td_ucred has shortened some
lines: more agressively line wrap under those circumstances.
This commit is contained in:
parent
90bbf5454c
commit
b0ad6e203a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91705
@ -2285,8 +2285,7 @@ setfflags(td, vp, flags)
|
||||
* chown can't fail when done as root.
|
||||
*/
|
||||
if (vp->v_type == VCHR || vp->v_type == VBLK) {
|
||||
error = suser_xxx(td->td_ucred, td->td_proc,
|
||||
PRISON_ROOT);
|
||||
error = suser_xxx(td->td_ucred, td->td_proc, PRISON_ROOT);
|
||||
if (error)
|
||||
return (error);
|
||||
}
|
||||
@ -4230,8 +4229,8 @@ extattr_delete_vp(struct vnode *vp, int attrnamespace, const char *attrname,
|
||||
VOP_LEASE(vp, td, td->td_ucred, LEASE_WRITE);
|
||||
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td);
|
||||
|
||||
error = VOP_SETEXTATTR(vp, attrnamespace, attrname, NULL,
|
||||
td->td_ucred, td);
|
||||
error = VOP_SETEXTATTR(vp, attrnamespace, attrname, NULL, td->td_ucred,
|
||||
td);
|
||||
|
||||
VOP_UNLOCK(vp, 0, td);
|
||||
vn_finished_write(mp);
|
||||
|
@ -2285,8 +2285,7 @@ setfflags(td, vp, flags)
|
||||
* chown can't fail when done as root.
|
||||
*/
|
||||
if (vp->v_type == VCHR || vp->v_type == VBLK) {
|
||||
error = suser_xxx(td->td_ucred, td->td_proc,
|
||||
PRISON_ROOT);
|
||||
error = suser_xxx(td->td_ucred, td->td_proc, PRISON_ROOT);
|
||||
if (error)
|
||||
return (error);
|
||||
}
|
||||
@ -4230,8 +4229,8 @@ extattr_delete_vp(struct vnode *vp, int attrnamespace, const char *attrname,
|
||||
VOP_LEASE(vp, td, td->td_ucred, LEASE_WRITE);
|
||||
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td);
|
||||
|
||||
error = VOP_SETEXTATTR(vp, attrnamespace, attrname, NULL,
|
||||
td->td_ucred, td);
|
||||
error = VOP_SETEXTATTR(vp, attrnamespace, attrname, NULL, td->td_ucred,
|
||||
td);
|
||||
|
||||
VOP_UNLOCK(vp, 0, td);
|
||||
vn_finished_write(mp);
|
||||
|
Loading…
Reference in New Issue
Block a user