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

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



---
 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


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