jw-pkg/src/python/jw/pkg/lib/ec
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann 6c4ac75596
lib.ec.ssh.Exec: Drop askpass newline
__init_askpass() generates an askpass script whose echo statement
embeds a newline inside the quoted password: echo -n "PASSWORD
". Bash happily spans the quote over the newline, and the script
therefore prints the password followed by a trailing newline.
run_askpass() returns that output verbatim, so the password passed
on carries a newline and authentication fails.

Write the script so it prints the password and nothing else.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.84.2
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-08-22 10:07:58 +02:00
..
ssh lib.ec.ssh.Exec: Drop askpass newline 2026-08-22 10:07:58 +02:00
Curl.py py-check.mk: Run isort with "make format" 2026-08-11 16:45:14 +02:00
Local.py App, cmds, lib: Fix Any returns from typed functions 2026-08-09 12:07:37 +00:00
Makefile lib.Distro, ExecContext: Add classes, refactor lib.distro 2026-03-06 14:56:46 +01:00
SSHClient.py App, cmds, lib: Fix Any returns from typed functions 2026-08-09 12:07:37 +00:00