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:
Axel Dörfler
2006-01-25 11:12:21 +00:00
parent 7f370a1f89
commit 979aeaf71c
6 changed files with 52 additions and 32 deletions
+2 -2
View File
@@ -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);
}