diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:38:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:38:58 +0000 |
commit | 54a043ffd13f3d896b58c6a9f0a4a5bb2170b9ab (patch) | |
tree | 1d8aa5f85a9450353ec3fdaaa5100f60c2d6478e /gl/lib/closedir.c | |
parent | Adding debian version 2.12.0-4. (diff) | |
download | man-db-54a043ffd13f3d896b58c6a9f0a4a5bb2170b9ab.tar.xz man-db-54a043ffd13f3d896b58c6a9f0a4a5bb2170b9ab.zip |
Merging upstream version 2.12.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gl/lib/closedir.c')
-rw-r--r-- | gl/lib/closedir.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gl/lib/closedir.c b/gl/lib/closedir.c index 3777e9f..24b6bda 100644 --- a/gl/lib/closedir.c +++ b/gl/lib/closedir.c @@ -1,5 +1,5 @@ /* Stop reading the entries of a directory. - Copyright (C) 2006-2023 Free Software Foundation, Inc. + Copyright (C) 2006-2024 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as @@ -40,7 +40,7 @@ int closedir (DIR *dirp) #undef closedir { -#if GNULIB_defined_DIR || REPLACE_FCHDIR || defined __KLIBC__ +#if GNULIB_defined_DIR || REPLACE_FCHDIR int fd = dirfd (dirp); #endif int retval; @@ -55,10 +55,6 @@ closedir (DIR *dirp) retval = closedir (dirp); # endif -# ifdef __KLIBC__ - if (!retval) - _gl_unregister_dirp_fd (fd); -# endif #else if (dirp->current != INVALID_HANDLE_VALUE) |