mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-03 18:54:13 +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