user-util: switch from utmp to utmpx
authorLennart Poettering <lennart@poettering.net>
Fri, 6 Sep 2024 11:20:11 +0000 (13:20 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 6 Sep 2024 11:54:09 +0000 (13:54 +0200)
commitf3389fffd6c91ea518b9f2572d9184f4eeb0259f
tree81ce064679e7effc2880203215df2882bea76888
parent4ac1755be2d6c141fae7e57c42936e507c5b54e3
user-util: switch from utmp to utmpx

We generally use utmpx instead of utmp (both are actually identical on
Linux, but utmpx is POSIX, while utmp is not). Let's fix one left-over
case.

UT_NAMESIZE does not exist in utmpx world, it has no direct counterpart,
hence let's just sizeof_field() to determine the size of the actual
field. (which comes to the same result of course: 32).
src/basic/user-util.c