mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(remove_cwd_entries): Use closedir (not CLOSEDIR) when ignoring any return value.
This commit is contained in:
1 parent
82c0b315bc
commit
1f8ece552f
1 file changed
+1
-1
+1
-1
@@ -823,7 +823,7 @@ remove_cwd_entries (char **subdir, struct stat *subdir_sb,
|
||||
{
|
||||
/* Save/restore errno across closedir call. */
|
||||
int e = errno;
|
||||
CLOSEDIR (dirp);
|
||||
closedir (dirp);
|
||||
errno = e;
|
||||
|
||||
/* Arrange to give a diagnostic after exiting this loop. */
|
||||
|
||||
Reference in new issue
Block a user