mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-09-10 07:59:52 +02:00
(remove_cwd_entries): Use CLOSEDIR, not closedir.
Give a diagnostic and fail if closedir fails.
This commit is contained in:
@@ -871,7 +871,11 @@ remove_cwd_entries (char **subdir, struct stat *subdir_sb,
|
||||
break;
|
||||
}
|
||||
|
||||
closedir (dirp);
|
||||
if (CLOSEDIR (dirp) != 0)
|
||||
{
|
||||
error (0, errno, _("reading directory %s"), quote (full_filename (".")));
|
||||
status = RM_ERROR;
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user