[PATCH] Don't hardcode the sshd location, either.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 anaconda |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/anaconda b/anaconda
index b48310f..d3c65a2 100755
--- a/anaconda
+++ b/anaconda
@@ -450,8 +450,9 @@ def startSsh():
             }
         for (algorithm, keyfile) in ssh_keys.items():
             createSshKey(algorithm, keyfile)
-        args = ["/sbin/sshd", "-f", "/etc/ssh/sshd_config.anaconda"]
-        os.execv("/sbin/sshd", args)
+        sshd = iutil.find_program_in_path("sshd")
+        args = [sshd, "-f", "/etc/ssh/sshd_config.anaconda"]
+        os.execv(sshd, args)
         sys.exit(1)
 
 def startDebugger(signum, frame):
-- 
1.7.1.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux