Project

General

Profile

Actions

Bug #2543

closed

man rmdir(2) : add EINVAL to the error section

Added by jorisgio over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
04/10/2013
Due date:
% Done:

0%

Estimated time:

Description

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);
Actions

Also available in: Atom PDF