]> git.ipfire.org Git - thirdparty/systemd.git/commit
util: remove lookup_uid(), replace by uid_to_name()
authorLennart Poettering <lennart@poettering.net>
Sun, 25 Oct 2015 22:20:05 +0000 (23:20 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 26 Oct 2015 00:24:38 +0000 (01:24 +0100)
commitd02608170e599b1ffbc7c9a22062bae2579d6e36
tree607136c4d409d664388def7b934bedc23604f4d0
parentb1d5277372a26e5a5b9980174652e1e287ba6b14
util: remove lookup_uid(), replace by uid_to_name()

So far we had two pretty much identical calls in user-util.[ch]:
lookup_uid() and uid_to_name(). Get rid of the former, in favour of the
latter, and while we are at it, rewrite it, to use getpwuid_r()
correctly, inside an allocation loop, as POSIX intended.
.gitignore
Makefile.am
src/basic/user-util.c
src/basic/user-util.h
src/login/logind-dbus.c
src/login/logind-utmp.c
src/test/test-user-util.c [new file with mode: 0644]