This is an automated email from the ASF dual-hosted git repository.

tomaswolf pushed a commit to branch dev_3.0
in repository https://gitbox.apache.org/repos/asf/mina-sshd.git


The following commit(s) were added to refs/heads/dev_3.0 by this push:
     new 64f0427cc Fix oqs-openssh container
64f0427cc is described below

commit 64f0427cc45e40d87eb4e8b9ec0b643d06efb118
Author: Thomas Wolf <[email protected]>
AuthorDate: Sat Oct 31 21:27:05 2026 +0100

    Fix oqs-openssh container
    
    Somehow "set --" didn't work with this container; it failed with "error
    during container init: exec: \"-o\": executable file not found in $PATH:
    unknown".
    
    Change the entrypoint not to use "set --".
---
 docker/oqs-openssh/entrypoint.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/docker/oqs-openssh/entrypoint.sh b/docker/oqs-openssh/entrypoint.sh
index 5eee3c1cc..fbe57582f 100644
--- a/docker/oqs-openssh/entrypoint.sh
+++ b/docker/oqs-openssh/entrypoint.sh
@@ -35,6 +35,8 @@ if [ -n "${TEST_PASSWORD:-}" ]; then
             ;;
     esac
     printf 'test:%s\n' "$TEST_PASSWORD" | chpasswd
-    set -- -o PasswordAuthentication=yes "$@"
+    exec /opt/ssh/sbin/sshd -D -e -o PasswordAuthentication=yes "$@"
+else
+    exec /opt/ssh/sbin/sshd -D -e "$@"
 fi
-exec /opt/ssh/sbin/sshd -D -e "$@"
+

Reply via email to