| Message ID | 20260206-fix-openssh-hardcoded-paths-v1-1-5f6f91b8b2f5@bootlin.com |
|---|---|
| State | New |
| Headers | show |
| Series | openssh: replace hardcoded paths by standard paths | expand |
diff --git a/meta/recipes-connectivity/openssh/openssh_10.2p1.bb b/meta/recipes-connectivity/openssh/openssh_10.2p1.bb index d8ea487ae3a..929c9e4b9fb 100644 --- a/meta/recipes-connectivity/openssh/openssh_10.2p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_10.2p1.bb @@ -100,8 +100,8 @@ CACHED_CONFIGUREVARS += "ac_cv_path_PATH_PASSWD_PROG=${bindir}/passwd" CACHED_CONFIGUREVARS += "ac_cv_header_maillock_h=no" # This allows overriding the key location -OPENSSH_HOST_KEY_DIR_READONLY_CONFIG ?= "/var/run/ssh" -OPENSSH_HOST_KEY_DIR ?= "/etc/ssh" +OPENSSH_HOST_KEY_DIR_READONLY_CONFIG ?= "${localstatedir}/run/ssh" +OPENSSH_HOST_KEY_DIR ?= "${sysconfdir}/ssh" do_configure:prepend () { export LD="${CC}"
Use common definitions from bitbake.conf instead of hardcoded values for OPENSSH_HOST_KEY_DIR and OPENSSH_HOST_KEY_DIR_READONLY_CONFIG. Fixes: addd80ddfd89 ("openssh: add variable for key path") Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> --- meta/recipes-connectivity/openssh/openssh_10.2p1.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- base-commit: 6ce19709f7835ee5cd7915e181f89397975236c8 change-id: 20260206-fix-openssh-hardcoded-paths-98e8c3755e0f