Репозитории ALT
S: | 1.22.0-alt2 |
5.1: | 1.2.0-alt1 |
4.1: | 1.1.7-alt1.M41.1 |
4.0: | 1.1.6-alt1 |
3.0: | 1.0.3-alt1 |
Группа :: Система/Библиотеки
Пакет: gpgme
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: gpgme-1.16.0-fix-closefrom-glibc.patch
Скачать
Скачать
commit 4b64774b6d13ffa4f59dddf947a97d61bcfa2f2e
Author: Jiri Kucera <sanczes@gmail.com>
Date: Sun Jul 25 11:35:54 2021 +0200
core: Support closefrom also for glibc.
* src/posix-io.c (_gpgme_io_spawn): Use glibc's closefrom.
--
Since 2.34, glibc introduces closefrom (the implementation
follows *BSD standard).
Signed-off-by: Werner Koch <wk@gnupg.org>
diff --git a/src/posix-io.c b/src/posix-io.c
index e712ef28..2a3a81fc 100644
--- a/src/posix-io.c
+++ b/src/posix-io.c
@@ -570,7 +570,7 @@ _gpgme_io_spawn (const char *path, char *const argv[], unsigned int flags,
if (fd_list[i].fd > fd)
fd = fd_list[i].fd;
fd++;
-#if defined(__sun) || defined(__FreeBSD__)
+#if defined(__sun) || defined(__FreeBSD__) || defined(__GLIBC__)
closefrom (fd);
max_fds = fd;
#else /*!__sun */