Fixed bug #97:
* BEntry::Remove() now uses _kern_remove_dir() for directories. * Added fd parameter to _kern_remove_dir(). * Fixed LibBeAdapter's _kern_unlink() to only work on files, and added _kern_remove_dir() for directories. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16078 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2005, Axel Dörfler, [email protected]. All rights reserved.
|
||||
* Copyright 2002-2006, Axel Dörfler, [email protected]. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
@@ -68,7 +68,7 @@ getcwd(char *buffer, size_t size)
|
||||
int
|
||||
rmdir(const char *path)
|
||||
{
|
||||
int status = _kern_remove_dir(path);
|
||||
int status = _kern_remove_dir(-1, path);
|
||||
|
||||
RETURN_AND_SET_ERRNO(status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user