summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2001-01-23 04:15:19 +0000
committerRobert Watson <rwatson@FreeBSD.org>2001-01-23 04:15:19 +0000
commit02b65ffb648814e70a3023eb49fdce1da15b66e7 (patch)
treefe49d43e5761c0304fe3d7d803d136bb7fb7e79b /sys
parent64d9f3b982721cc9e1730dd3c5087598a08249db (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_export.c2
-rw-r--r--sys/kern/vfs_subr.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c
index 285e084e7c12..fba809c63aaf 100644
--- a/sys/kern/vfs_export.c
+++ b/sys/kern/vfs_export.c
@@ -3128,5 +3128,5 @@ privcheck:
}
#endif
- return (EACCES);
+ return ((acc_mode & VADMIN) ? EPERM : EACCES);
}
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 285e084e7c12..fba809c63aaf 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -3128,5 +3128,5 @@ privcheck:
}
#endif
- return (EACCES);
+ return ((acc_mode & VADMIN) ? EPERM : EACCES);
}