From 75065d2cd830b6f58cc041a28881de62143cc84a Mon Sep 17 00:00:00 2001
From: Dmitrij Tejblum
Date: Wed, 10 Jun 1998 11:36:01 +0000
Subject: Also return EOPNOTSUPP rather than EINVAL for not supported owner and
group changes.
---
sys/fs/msdosfs/msdosfs_vnops.c | 4 ++--
sys/msdosfs/msdosfs_vnops.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
(limited to 'sys')
diff --git a/sys/fs/msdosfs/msdosfs_vnops.c b/sys/fs/msdosfs/msdosfs_vnops.c
index 6ac533ca0e73..718692100702 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.70 1998/06/09 13:20:29 dt Exp $ */
+/* $Id: msdosfs_vnops.c,v 1.71 1998/06/10 06:30:31 peter Exp $ */
/* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg Exp $ */
/*-
@@ -473,7 +473,7 @@ msdosfs_setattr(ap)
(error = suser(cred, &ap->a_p->p_acflag)))
return error;
if (uid != pmp->pm_uid || gid != pmp->pm_gid)
- return EINVAL;
+ return EOPNOTSUPP;
}
if (vap->va_size != VNOVAL) {
diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c
index 6ac533ca0e73..718692100702 100644
--- a/sys/msdosfs/msdosfs_vnops.c
+++ b/sys/msdosfs/msdosfs_vnops.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_vnops.c,v 1.70 1998/06/09 13:20:29 dt Exp $ */
+/* $Id: msdosfs_vnops.c,v 1.71 1998/06/10 06:30:31 peter Exp $ */
/* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg Exp $ */
/*-
@@ -473,7 +473,7 @@ msdosfs_setattr(ap)
(error = suser(cred, &ap->a_p->p_acflag)))
return error;
if (uid != pmp->pm_uid || gid != pmp->pm_gid)
- return EINVAL;
+ return EOPNOTSUPP;
}
if (vap->va_size != VNOVAL) {
--
cgit v1.2.3