From 274367116a57c5788cc4b30861dcd94f54fba60e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 4 Dec 2017 14:27:54 +0800 Subject: Replace uses of getpwuid which is incompatible with static linking Introduce a get_user_name function which parses '/etc/passwd' to find the username associated with a user id. --- src/remote.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'src/remote.hh') diff --git a/src/remote.hh b/src/remote.hh index d723713f..ce84cb42 100644 --- a/src/remote.hh +++ b/src/remote.hh @@ -43,6 +43,7 @@ private: }; void send_command(StringView session, StringView command); +String get_user_name(int uid); struct Server : public Singleton { -- cgit v1.2.3