aboutsummaryrefslogtreecommitdiff
path: root/src/client_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client_file.c')
-rw-r--r--src/client_file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client_file.c b/src/client_file.c
index e2d31570..2ee43330 100644
--- a/src/client_file.c
+++ b/src/client_file.c
@@ -39,6 +39,11 @@ client_allow_file(const struct client *client, const char *path_fs,
return false;
#else
const int uid = client_get_uid(client);
+ if (uid >= 0 && (uid_t)uid == geteuid())
+ /* always allow access if user runs his own MPD
+ instance */
+ return true;
+
if (uid <= 0) {
/* unauthenticated client */
g_set_error(error_r, ack_quark(), ACK_ERROR_PERMISSION,