From a8e52ad89f60741adc474d460724e25bc783dfe5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 2 Feb 2014 13:59:07 +0100 Subject: ClientFile: move client_allow_file() into the Client class --- src/client/ClientFile.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/client/ClientFile.cxx') diff --git a/src/client/ClientFile.cxx b/src/client/ClientFile.cxx index bdd9b0426..eba64d09c 100644 --- a/src/client/ClientFile.cxx +++ b/src/client/ClientFile.cxx @@ -18,7 +18,6 @@ */ #include "config.h" -#include "ClientFile.hxx" #include "Client.hxx" #include "protocol/Ack.hxx" #include "fs/Path.hxx" @@ -29,16 +28,14 @@ #include bool -client_allow_file(const Client &client, Path path_fs, Error &error) +Client::AllowFile(Path path_fs, Error &error) const { #ifdef WIN32 - (void)client; (void)path_fs; error.Set(ack_domain, ACK_ERROR_PERMISSION, "Access denied"); return false; #else - const int uid = client.GetUID(); if (uid >= 0 && (uid_t)uid == geteuid()) /* always allow access if user runs his own MPD instance */ -- cgit v1.2.3