]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: add cred_read_str() for credential string parsing
authorKarel Zak <kzak@redhat.com>
Wed, 22 Apr 2026 10:18:08 +0000 (12:18 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 22 Apr 2026 10:18:08 +0000 (12:18 +0200)
commit5c587edd616c5fd0daf36e33c2d3c76e17fa9ba2
tree7b85c07e55aff0b0ac567299ad0b7073678ab923
parent0707d898dd642061166a42cc8fdd86306edbb695
agetty: add cred_read_str() for credential string parsing

Introduce cred_read_str() helper that reads a systemd credential
file and stores the string value into a struct member addressed
via offsetof(). This replaces the open-coded string credential
handling and prepares for adding more credential types.

Addresses: https://github.com/util-linux/util-linux/issues/2255
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/agetty.c