"rm" was leaking the dir FD when failing to read from the dir.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24493 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-03-20 13:34:23 +00:00
parent 5bf0362724
commit c852f04a83

View File

@ -887,7 +887,7 @@ remove_dir_contents(int parentDir, const char *name, bool force)
if (numRead < 0) {
fprintf(stderr, "Error: Failed to read directory \"%s\": %s\n", name,
fssh_strerror(numRead));
return numRead;
error = numRead;
}
// close