Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37520553
en ru br
Репозитории ALT
S:9.4p1-alt1
5.1: 5.3p1-alt1
4.1: 5.0p1-alt3
4.0: 5.0p1-alt3
+updates:4.7p1-alt1
3.0: 3.6.1p2-alt6
www.altlinux.org/Changes

Группа :: Сети/Удалённый доступ
Пакет: openssh

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: openssh-3.4p1-kevin-resolver.patch
Скачать


--- openssh-3.4p1/sshd.c~	2002-06-26 03:24:19 +0400
+++ openssh-3.4p1/sshd.c	2002-07-02 13:56:26 +0400
@@ -92,6 +92,10 @@
 int deny_severity = LOG_WARNING;
 #endif /* LIBWRAP */
 
+#ifdef HAVE_LIBRESOLV
+#include <resolv.h>
+#endif /* HAVE_LIBRESOLV */
+
 #ifndef O_NOCTTY
 #define O_NOCTTY	0
 #endif
@@ -1410,6 +1414,17 @@
 	    sizeof(on)) < 0)
 		error("setsockopt SO_KEEPALIVE: %.100s", strerror(errno));
 
+#ifdef HAVE_LIBRESOLV
+	/*
+	 * Initialize the resolver.  This may not happen automatically
+	 * before privsep chroot().
+	 */
+	if (!(_res.options & RES_INIT)) {
+	        debug("res_init()");
+	        res_init();
+	}
+#endif /* HAVE_LIBRESOLV */
+
 	/*
 	 * Register our connection.  This turns encryption off because we do
 	 * not have a key.
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin