]> git.ipfire.org Git - thirdparty/util-linux.git/commit
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)
committerKarel Zak <kzak@redhat.com>
Mon, 22 Apr 2024 10:07:11 +0000 (12:07 +0200)
commit32cc417009a26a095924fda415e53e82a917af0e
tree4c5f666d9e20cc7e1fadc404124acc1447db011a
parent9fcfea99a940f970442b60e6d78ffac8090e78af
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)
term-utils/agetty.c