mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(remove_cwd_entries): Use CLOSEDIR, not closedir.
Give a diagnostic and fail if closedir fails.
This commit is contained in:
1 parent
3ee8ba25ba
commit
cd79080f4a
1 file changed
+5
-1
+5
-1
@@ -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