From 96607f543421dffad92d3f592bcddd1c15e97243 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 16 May 2018 14:55:29 +0200 Subject: [PATCH] Remove sshd restart from glibc_post_upgrade /etc/rc.d/init.d/sshd no longer exists in Fedora, so the code never runs. --- glibc_post_upgrade.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/glibc_post_upgrade.c b/glibc_post_upgrade.c index c74d440..3b31912 100644 --- a/glibc_post_upgrade.c +++ b/glibc_post_upgrade.c @@ -163,16 +163,6 @@ main (void) if (check_elf ("/proc/1/exe")) verbose_exec (116, "/sbin/telinit", "/sbin/telinit", "u"); - /* Check if we can safely condrestart sshd. */ - if (access ("/sbin/service", X_OK) == 0 - && access ("/usr/sbin/sshd", X_OK) == 0 - && access ("/etc/rc.d/init.d/sshd", X_OK) == 0 - && access ("/bin/bash", X_OK) == 0) - { - if (check_elf ("/usr/sbin/sshd")) - verbose_exec (-121, "/sbin/service", "/sbin/service", "sshd", "condrestart"); - } - _exit(0); }