diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-12-04 14:27:54 +0800 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-12-04 15:19:57 +0800 |
| commit | 274367116a57c5788cc4b30861dcd94f54fba60e (patch) | |
| tree | 0a0f611802cfc3ea50f2590640256f85467742c1 /src/remote.hh | |
| parent | 7d32b3fc3689219d47fc236eefa4749f2e7c3c61 (diff) | |
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.
Diffstat (limited to 'src/remote.hh')
| -rw-r--r-- | src/remote.hh | 1 |
1 files changed, 1 insertions, 0 deletions
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<Server> { |
