From f7008b4ff185d43e52f4fc9aea783c2334c302aa Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 10 Jun 1998 06:30:31 +0000 Subject: Return EOPNOTSUPP rather than EINVAL for flags that are not supported. --- sys/fs/msdosfs/msdosfs_vnops.c | 4 ++-- sys/msdosfs/msdosfs_vnops.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/fs/msdosfs/msdosfs_vnops.c b/sys/fs/msdosfs/msdosfs_vnops.c index d74bb6f..6ac533c 100644 --- a/sys/fs/msdosfs/msdosfs_vnops.c +++ b/sys/fs/msdosfs/msdosfs_vnops.c @@ -1,4 +1,4 @@ -/* $Id: msdosfs_vnops.c,v 1.69 1998/05/17 21:03:35 dt Exp $ */ +/* $Id: msdosfs_vnops.c,v 1.70 1998/06/09 13:20:29 dt Exp $ */ /* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg Exp $ */ /*- @@ -448,7 +448,7 @@ msdosfs_setattr(ap) return EPERM; } if (vap->va_flags & ~SF_ARCHIVED) - return EINVAL; + return EOPNOTSUPP; if (vap->va_flags & SF_ARCHIVED) dep->de_Attributes &= ~ATTR_ARCHIVE; else if (!(dep->de_Attributes & ATTR_DIRECTORY)) diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c index d74bb6f..6ac533c 100644 --- a/sys/msdosfs/msdosfs_vnops.c +++ b/sys/msdosfs/msdosfs_vnops.c @@ -1,4 +1,4 @@ -/* $Id: msdosfs_vnops.c,v 1.69 1998/05/17 21:03:35 dt Exp $ */ +/* $Id: msdosfs_vnops.c,v 1.70 1998/06/09 13:20:29 dt Exp $ */ /* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg Exp $ */ /*- @@ -448,7 +448,7 @@ msdosfs_setattr(ap) return EPERM; } if (vap->va_flags & ~SF_ARCHIVED) - return EINVAL; + return EOPNOTSUPP; if (vap->va_flags & SF_ARCHIVED) dep->de_Attributes &= ~ATTR_ARCHIVE; else if (!(dep->de_Attributes & ATTR_DIRECTORY)) -- cgit v1.1