Don't silently fail to set file flags.

Obtained from:  NetBSD
This commit is contained in:
Peter Wemm 1998-05-31 19:24:19 +00:00
parent ccc2eb6a3a
commit ec26d608b6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36536
2 changed files with 16 additions and 2 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95
* $Id: nfs_vnops.c,v 1.98 1998/05/31 18:30:42 peter Exp $
* $Id: nfs_vnops.c,v 1.99 1998/05/31 19:00:18 peter Exp $
*/
@ -583,6 +583,13 @@ nfs_setattr(ap)
#ifndef nolint
tsize = (u_quad_t)0;
#endif
/*
* Setting of flags is not supported.
*/
if (vap->va_flags != VNOVAL)
return (EOPNOTSUPP);
/*
* Disallow write attempts if the filesystem is mounted read-only.
*/

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vnops.c 8.16 (Berkeley) 5/27/95
* $Id: nfs_vnops.c,v 1.98 1998/05/31 18:30:42 peter Exp $
* $Id: nfs_vnops.c,v 1.99 1998/05/31 19:00:18 peter Exp $
*/
@ -583,6 +583,13 @@ nfs_setattr(ap)
#ifndef nolint
tsize = (u_quad_t)0;
#endif
/*
* Setting of flags is not supported.
*/
if (vap->va_flags != VNOVAL)
return (EOPNOTSUPP);
/*
* Disallow write attempts if the filesystem is mounted read-only.
*/