Skip to contentSkip to conversation

openssh: replace hardcoded paths by standard paths

PATCH New Antonin Godard 1 participant 1 message Feb 6

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openssh: replace hardcoded paths by standard paths

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")
---
 meta/recipes-connectivity/openssh/openssh_10.2p1.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-connectivity/openssh/openssh_10.2p1.bb +2 -2
index d8ea487ae3a..929c9e4b9fb 100644
@@ -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}"

---
base-commit: 6ce19709f7835ee5cd7915e181f89397975236c8
change-id: 20260206-fix-openssh-hardcoded-paths-98e8c3755e0f