aboutsummaryrefslogtreecommitdiffstats
path: root/src/ClientFile.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-19 19:39:40 +0200
committerMax Kellermann <max@duempel.org>2013-10-19 19:39:40 +0200
commitc2d5ce0ca213e2d25df17e080b07a3d91d330972 (patch)
tree4d7088e9e2a91408a0d5f16b247016fc125cdecc /src/ClientFile.cxx
parent32645b80c4c6792140e312b5b9fe9f96b48c6ec7 (diff)
downloadmpd-c2d5ce0ca213e2d25df17e080b07a3d91d330972.tar.gz
mpd-c2d5ce0ca213e2d25df17e080b07a3d91d330972.tar.xz
mpd-c2d5ce0ca213e2d25df17e080b07a3d91d330972.zip
Client: move trivial functions into the Client class
Diffstat (limited to '')
-rw-r--r--src/ClientFile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ClientFile.cxx b/src/ClientFile.cxx
index 6d9fa474e..382b76083 100644
--- a/src/ClientFile.cxx
+++ b/src/ClientFile.cxx
@@ -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 */