mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-18 17:00:49 +01:00
Slightly better fix than previous revision.
Submitted by: Rick Macklem <rick@snowhite.cis.uoguelph.ca>
This commit is contained in:
parent
b4489dc30a
commit
e1b686876b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9681
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_vnops.c 8.5 (Berkeley) 2/13/94
|
||||
* $Id: nfs_vnops.c,v 1.20 1995/07/13 17:55:12 dfr Exp $
|
||||
* $Id: nfs_vnops.c,v 1.21 1995/07/24 12:50:49 dfr Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -619,9 +619,8 @@ nfs_setattr(ap)
|
||||
ap->a_p, 1)) == EINTR)
|
||||
return (error);
|
||||
error = nfs_setattrrpc(vp, vap, ap->a_cred, ap->a_p);
|
||||
if (error) {
|
||||
if (vap->va_size != VNOVAL)
|
||||
np->n_size = np->n_vattr.va_size = tsize;
|
||||
if (error && vap->va_size != VNOVAL) {
|
||||
np->n_size = np->n_vattr.va_size = tsize;
|
||||
vnode_pager_setsize(vp, (u_long)np->n_size);
|
||||
}
|
||||
return (error);
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)nfs_vnops.c 8.5 (Berkeley) 2/13/94
|
||||
* $Id: nfs_vnops.c,v 1.20 1995/07/13 17:55:12 dfr Exp $
|
||||
* $Id: nfs_vnops.c,v 1.21 1995/07/24 12:50:49 dfr Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -619,9 +619,8 @@ nfs_setattr(ap)
|
||||
ap->a_p, 1)) == EINTR)
|
||||
return (error);
|
||||
error = nfs_setattrrpc(vp, vap, ap->a_cred, ap->a_p);
|
||||
if (error) {
|
||||
if (vap->va_size != VNOVAL)
|
||||
np->n_size = np->n_vattr.va_size = tsize;
|
||||
if (error && vap->va_size != VNOVAL) {
|
||||
np->n_size = np->n_vattr.va_size = tsize;
|
||||
vnode_pager_setsize(vp, (u_long)np->n_size);
|
||||
}
|
||||
return (error);
|
||||
|
Loading…
Reference in New Issue
Block a user