Client: move trivial functions into the Client class

This commit is contained in:
Max Kellermann
2013-10-19 19:39:40 +02:00
parent 32645b80c4
commit c2d5ce0ca2
5 changed files with 31 additions and 50 deletions

View File

@@ -41,7 +41,7 @@ client_allow_file(const Client &client, Path path_fs, Error &error)
error.Set(ack_domain, ACK_ERROR_PERMISSION, "Access denied");
return false;
#else
const int uid = client_get_uid(client);
const int uid = client.GetUID();
if (uid >= 0 && (uid_t)uid == geteuid())
/* always allow access if user runs his own MPD
instance */