summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_syscalls.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-01-19 20:52:48 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-01-19 20:52:48 +0000
commita18e7546cee63728749fc803976aab69bc07265d (patch)
treef39d3dfab003e61fbdd7449dc6e775008f36ccaa /sys/kern/vfs_syscalls.c
parent34ecdb4b2d873ad154d1de041e1d840be105093a (diff)
Single Unix specification 2 says that rmdir(".") should suceed or give EBUSY
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r--sys/kern/vfs_syscalls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 199202c383a..adcaaa4d0fc 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_syscalls.c,v 1.52 1999/01/10 22:47:08 art Exp $ */
+/* $OpenBSD: vfs_syscalls.c,v 1.53 1999/01/19 20:52:47 art Exp $ */
/* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */
/*
@@ -2176,7 +2176,7 @@ sys_rmdir(p, v, retval)
* No rmdir "." please.
*/
if (nd.ni_dvp == vp) {
- error = EINVAL;
+ error = EBUSY;
goto out;
}
/*