[DragonFlyBSD - Bug #2543] man rmdir(2) : add EINVAL to the error section
Joris giovannangeli via Redmine
bugtracker-admin at leaf.dragonflybsd.org
Wed Apr 10 15:49:56 PDT 2013
Issue #2543 has been updated by jorisgio.
You're right, linux returns EBUSY too. I have check the pathname ending by a dot, it returnds EINVAL, hence it's correct. (By ending by a dot, I mean foo/bar/.)
----------------------------------------
Bug #2543: man rmdir(2) : add EINVAL to the error section
http://bugs.dragonflybsd.org/issues/2543
Author: jorisgio
Status: New
Priority: Normal
Assignee:
Category:
Target version:
rmdir can return EINVAL if the directory is a mount point :
See sys/kern/vfs_syscalls.c:3997
/*
* Do not allow directories representing mount points to be
* deleted, even if empty. Check write perms on mount point
* in case the vnode is aliased (aka nullfs).
*/
if (nd->nl_nch.ncp->nc_flag & (NCF_ISMOUNTPT))
return (EINVAL);
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account
More information about the Bugs
mailing list