Build and packaging library
  • Python 55.1%
  • Makefile 32.6%
  • Shell 12.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann dc101a5a7f
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 4m10s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m21s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 4m3s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m32s
CI / Packaging test (push) Successful in 0s
lib.ec.ssh.Exec: Fix askpass script
__init_askpass() embeds the password verbatim in a generated bash script,
with a newline included inside the double quotes of the echo -n. The
askpass program therefore always appends a newline to the password, and
any password containing quotes or shell metacharacters either breaks the
script or injects commands into it.

Embed the password as base64 and decode it with printf piped into base64
-d, so the script is safe for any password and prints the password exactly,
byte for byte.

Make __del__() idempotent: it deletes the environment variables and the
script file, so a second call, e.g. an explicit one followed by garbage
collection, raises KeyError and FileNotFoundError.

Add a unit test that executes the generated script and compares its output
with the password byte for byte.

Signed-off-by: Jan Lindemann <jan@janware.com>
Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.85.1
2026-09-14 20:32:14 +02:00
.github/workflows ci.yaml: test-packaging.yaml@{master-test -> master} 2026-06-08 19:43:15 +02:00
bin bin, make, scripts: Re-add files necessary for packaging jw-build 2025-11-14 11:22:50 +01:00
conf topdir.mk: Add target gitignore 2026-09-13 23:09:25 +02:00
doc doc: Add subdir 2026-08-19 20:51:11 +02:00
make projects-dir.mk: Resolve JWB_SCRIPT_DIR from JWBDIR 2026-09-13 23:49:26 +02:00
scripts jw-pkg-create-project.sh: Use make gitignore 2026-09-13 23:09:25 +02:00
src lib.ec.ssh.Exec: Fix askpass script 2026-09-14 20:32:14 +02:00
test lib.ec.ssh.Exec: Fix askpass script 2026-09-14 20:32:14 +02:00
.gitignore .gitignore: Run make gitignore 2026-09-13 23:09:26 +02:00
HASH Release 1.0.0-264@suse-tumbleweed/x86_64 2026-09-13 23:30:46 +00:00
Makefile .gitignore: Run make gitignore 2026-09-13 23:09:26 +02:00
RELEASES Release 1.0.0-264@suse-tumbleweed/x86_64 2026-09-13 23:30:46 +00:00
VERSION Start version: 1.0.0-264 2026-09-13 23:10:38 +00:00