agetty: Don't override TERM passed by the user
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 19 Apr 2024 18:07:47 +0000 (20:07 +0200)
committerChris Hofstaedtler <zeha@debian.org>
Sat, 27 Apr 2024 12:23:31 +0000 (14:23 +0200)
commit224d2cd48b9e90cae3b818b7d6e8b78855d1c9aa
tree3c187d5ec09b970834066ece373862eb0e2459b8
parentb96f1f655876e3ef833a48894e66d9fba9e8c1b6
agetty: Don't override TERM passed by the user

Before 4869b259d68f65ea88df625ce8df9c0177d55a01, any TERM passed
on the agetty command line would be used instead of the default TERM.
After 4869b259d68f65ea88df625ce8df9c0177d55a01, the default TERM is
used unconditionally.

Fix the regression by checking if the user passed a custom TERM.

Fixes: 4869b259d68f65ea88df625ce8df9c0177d55a01
(cherry picked from commit af354e92111769d57e43eb4f1825c0d99c894ddb)

Gbp-Pq: Topic upstream
Gbp-Pq: Name agetty-Don-t-override-TERM-passed-by-the-user.patch
term-utils/agetty.c