Bug#997094: debootstrap: 764:debootstrap cp "$0" "$TARGET/ instead of cp "/usr/sbin/$0" "$TARGET/

2024-02-14 Thread Ken Sharp
cp needs the fully-qualified path - not just $0/progname I've tested this on Bash, Dash, Zsh and Tcsh on Linux and FreeBSD and ${0} already expands to the fully-qualified path. It never expands to ${0}/progname as that would always fail. Can you give and example of where this fails? Also

Bug#997094: debootstrap: 764:debootstrap cp "$0" "$TARGET/ instead of cp "/usr/sbin/$0" "$TARGET/

2021-10-23 Thread Veek
Package: debootstrap Version: 1.0.123 Severity: important X-Debbugs-Cc: vek.m1...@gmail.com Dear Maintainer, debootstrap line 764 copies debootstrap into the mountpoint/debootsrap but cp needs the fully-qualified path - not just $0/progname Also in functions:1520 "$2" can sometimes be set to