"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:
@@ -887,7 +887,7 @@ remove_dir_contents(int parentDir, const char *name, bool force)
|
|||||||
if (numRead < 0) {
|
if (numRead < 0) {
|
||||||
fprintf(stderr, "Error: Failed to read directory \"%s\": %s\n", name,
|
fprintf(stderr, "Error: Failed to read directory \"%s\": %s\n", name,
|
||||||
fssh_strerror(numRead));
|
fssh_strerror(numRead));
|
||||||
return numRead;
|
error = numRead;
|
||||||
}
|
}
|
||||||
|
|
||||||
// close
|
// close
|
||||||
|
|||||||
Reference in New Issue
Block a user