"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:
parent
5bf0362724
commit
c852f04a83
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user