mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 06:42:51 +01:00
Fix bogus arg (&p instead of p) in the call to VOP_ACCESS() from
msdosfs_setattr(). The bug was benign because the arg isn't used.
This commit is contained in:
parent
e3546115f3
commit
5d81aaee02
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10272
@ -1,4 +1,4 @@
|
||||
/* $Id: msdosfs_vnops.c,v 1.20 1995/08/02 12:59:49 dfr Exp $ */
|
||||
/* $Id: msdosfs_vnops.c,v 1.21 1995/08/03 12:17:35 dfr Exp $ */
|
||||
/* $NetBSD: msdosfs_vnops.c,v 1.20 1994/08/21 18:44:13 ws Exp $ */
|
||||
|
||||
/*-
|
||||
@ -398,7 +398,7 @@ msdosfs_setattr(ap)
|
||||
if (cred->cr_uid != dep->de_pmp->pm_uid &&
|
||||
(error = suser(cred, &ap->a_p->p_acflag)) &&
|
||||
((vap->va_vaflags & VA_UTIMES_NULL) == 0 ||
|
||||
(error = VOP_ACCESS(ap->a_vp, VWRITE, cred, &ap->a_p))))
|
||||
(error = VOP_ACCESS(ap->a_vp, VWRITE, cred, ap->a_p))))
|
||||
return error;
|
||||
dep->de_flag |= DE_UPDATE;
|
||||
error = deupdat(dep, &vap->va_mtime, 1);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: msdosfs_vnops.c,v 1.20 1995/08/02 12:59:49 dfr Exp $ */
|
||||
/* $Id: msdosfs_vnops.c,v 1.21 1995/08/03 12:17:35 dfr Exp $ */
|
||||
/* $NetBSD: msdosfs_vnops.c,v 1.20 1994/08/21 18:44:13 ws Exp $ */
|
||||
|
||||
/*-
|
||||
@ -398,7 +398,7 @@ msdosfs_setattr(ap)
|
||||
if (cred->cr_uid != dep->de_pmp->pm_uid &&
|
||||
(error = suser(cred, &ap->a_p->p_acflag)) &&
|
||||
((vap->va_vaflags & VA_UTIMES_NULL) == 0 ||
|
||||
(error = VOP_ACCESS(ap->a_vp, VWRITE, cred, &ap->a_p))))
|
||||
(error = VOP_ACCESS(ap->a_vp, VWRITE, cred, ap->a_p))))
|
||||
return error;
|
||||
dep->de_flag |= DE_UPDATE;
|
||||
error = deupdat(dep, &vap->va_mtime, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user