← Commit list

4a6869752

Denys Vlasenko
Denys Vlasenko
2021-06-24
SUCCESS Duration: 45s

Subject

libbb: do not check closedir() in remove_file()

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/remove_file.c+1 -5
@@ -60,11 +60,7 @@ int FAST_FUNC remove_file(const char *path, int flags)
status = -1;
free(new_path);
}
-
- if (closedir(dp) < 0) {
- bb_perror_msg("can't close '%s'", path);
- return -1;
- }
+ closedir(dp);
if (flags & FILEUTILS_INTERACTIVE) {
fprintf(stderr, "%s: remove directory '%s'? ",