git: kernel/rmdir: Return EBUSY if the dir is a mount point for a mounted fs.

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Apr 13 00:14:37 PDT 2013


commit cd6a8264ce320929480ebadd227f0a8de0763a3d
Author: Sascha Wildner <saw at online.de>
Date:   Sat Apr 13 09:09:58 2013 +0200

    kernel/rmdir: Return EBUSY if the dir is a mount point for a mounted fs.
    
    See: http://pubs.opengroup.org/onlinepubs/009695399/functions/rmdir.html
    
    It was already documented like that in the manual page.
    
    While here, also document that we return EINVAL if the last component of
    the path is "." or ".." (taken from FreeBSD).
    
    Reported-by:   Joris Giovannangeli <joris at giovannangeli.fr>
    Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2543>

Summary of changes:
 lib/libc/sys/rmdir.2    | 8 ++++++--
 sys/kern/vfs_syscalls.c | 2 +-
 2 files changed, 7 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cd6a8264ce320929480ebadd227f0a8de0763a3d


-- 
DragonFly BSD source repository



More information about the Commits mailing list