From d02608170e599b1ffbc7c9a22062bae2579d6e36 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 25 Oct 2015 23:20:05 +0100 Subject: 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. --- Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 69a2b732d0..6540402da9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1414,6 +1414,7 @@ tests += \ test-utf8 \ test-ellipsize \ test-util \ + test-user-util \ test-hostname-util \ test-process-util \ test-terminal-util \ @@ -1698,6 +1699,12 @@ test_util_SOURCES = \ test_util_LDADD = \ libshared.la +test_user_util_SOURCES = \ + src/test/test-user-util.c + +test_user_util_LDADD = \ + libshared.la + test_hostname_util_SOURCES = \ src/test/test-hostname-util.c -- cgit v1.2.3-54-g00ecf