libbb: do not check closedir() in remove_file()
If it's needed, there has to be a comment why. There isn't. function old new delta .rodata 103686 103669 -17 remove_file 598 571 -27 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-44) Total: -44 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
6481070eb9
commit
4a68697521
@ -60,11 +60,7 @@ int FAST_FUNC remove_file(const char *path, int flags)
|
|||||||
status = -1;
|
status = -1;
|
||||||
free(new_path);
|
free(new_path);
|
||||||
}
|
}
|
||||||
|
closedir(dp);
|
||||||
if (closedir(dp) < 0) {
|
|
||||||
bb_perror_msg("can't close '%s'", path);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (flags & FILEUTILS_INTERACTIVE) {
|
if (flags & FILEUTILS_INTERACTIVE) {
|
||||||
fprintf(stderr, "%s: remove directory '%s'? ",
|
fprintf(stderr, "%s: remove directory '%s'? ",
|
||||||
|
Loading…
Reference in New Issue
Block a user