]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: move utility functions to utils.c
authorKarel Zak <kzak@redhat.com>
Thu, 14 May 2026 08:08:30 +0000 (10:08 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 14 May 2026 11:14:57 +0000 (13:14 +0200)
commiteda4fdfc62381c1d87aa2d4364f88754495b17ad
tree2dcbdf32106bf3fec7c986e6e2cfabf4c8ab8ef9
parent7081e93952482f7a6eb933070bf7ea7946f38bc6
agetty: move utility functions to utils.c

Move agetty_update_utmp(), agetty_xgethostname() and
agetty_xgetdomainname() to utils.c.

Move the SYSV_STYLE detection to agetty.h so it is available to
all split-out files. Change agetty_update_utmp() to take fakehost
as a parameter instead of accessing a file-scope static variable.

Signed-off-by: Karel Zak <kzak@redhat.com>
agetty-cmd/agetty.c
agetty-cmd/agetty.h
agetty-cmd/utils.c