summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2023-10-31 08:50:33 +0100
committerHelmut Grohne <helmut@subdivi.de>2023-10-31 08:50:33 +0100
commitc7de34c7a292e6c75cbb756ca92c5c4696012772 (patch)
tree012cebca8287be6650a849cffc4fbc319fc47720
parentcd83344a5f1a0dc67d248b74ae5035b163d05597 (diff)
downloaddebvm-c7de34c7a292e6c75cbb756ca92c5c4696012772.tar.gz
customize-autologin.sh: bump minimum setterm version
There was a bug that would cause setterm to randomly enable O_ASYNC on the console due to the use of uninitialized memory. As a consequence, any keystroke would raise SIGIO and kill the shell. Since setterm is a convenience feature and killing the shell is bad, disable it for earlier versions. Reported-by: Emanuele Rocca <ema@debian.org> Thanks: Chris Hofstaedtler <zeha@debian.org>
-rwxr-xr-xshare/customize-autologin.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/customize-autologin.sh b/share/customize-autologin.sh
index da386b5..a6fc1d2 100755
--- a/share/customize-autologin.sh
+++ b/share/customize-autologin.sh
@@ -11,7 +11,7 @@ set -eu
TARGET=$1
-if dpkg --compare-versions "$(dpkg-query --root "$TARGET" -f '${Version}' -W util-linux)" ge 2.33; then
+if dpkg --compare-versions "$(dpkg-query --root "$TARGET" -f '${Version}' -W util-linux)" ge 2.39.2-5~; then
cat >"$TARGET/etc/profile.d/resize_serial_term.sh" <<'EOF'
if test -n "${TERM-}" && test -n "${PS1-}"; then
case "$(tty)" in