mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-02 17:08:56 +00:00
Fix build breakage.
This commit is contained in:
parent
7869327cfa
commit
b6f6e672f7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167155
@ -1118,7 +1118,7 @@ ffs_extwrite(struct vnode *vp, struct uio *uio, int ioflag, struct ucred *ucred)
|
||||
* tampering.
|
||||
*/
|
||||
if ((ip->i_mode & (ISUID | ISGID)) && resid > uio->uio_resid && ucred) {
|
||||
if (priv_check_cred(ap->a_cred, PRIV_VFS_RETAINSUGID,
|
||||
if (priv_check_cred(ucred, PRIV_VFS_RETAINSUGID,
|
||||
SUSER_ALLOWJAIL)) {
|
||||
ip->i_mode &= ~(ISUID | ISGID);
|
||||
dp->di_mode = ip->i_mode;
|
||||
|
Loading…
x
Reference in New Issue
Block a user