]> git.ipfire.org Git - thirdparty/util-linux.git/commit
logger: use xgetlogin from pwdutils.
authorÉrico Nogueira <erico.erc@gmail.com>
Wed, 28 Jul 2021 02:54:42 +0000 (23:54 -0300)
committerÉrico Nogueira <erico.erc@gmail.com>
Thu, 29 Jul 2021 12:58:19 +0000 (09:58 -0300)
commit7f22751bd1fa6693dbe05872551c6f13f6371096
tree216eb49fef8b4ee8e19e5e6f57495aae06b7a9c1
parent11109352d4a3fb34ecfdb120cca65640bcecf5b2
logger: use xgetlogin from pwdutils.

It defined its own xgetlogin, which queried geteuid() instead of getuid(),
with a fallback to "<someone>" when lookup fails. This has been the case
since the function was introduced in
019b97024fde3f07eaf541eef990762483369a11, so geteuid() has always been
used. Since using geteuid for identification isn't consistent with the
rest of util-linux, switching to xgetlogin(), which uses getuid(),
should be correct.

Signed-off-by: Érico Nogueira <erico.erc@gmail.com>
misc-utils/Makemodule.am
misc-utils/logger.c