diff options
author | Max Kellermann <max@duempel.org> | 2008-12-30 19:14:13 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-30 19:14:13 +0100 |
commit | bb55ec6b4ec89408e32b9af562d891c39e96501d (patch) | |
tree | 7f53818665a40809f783880229554906cd74a50f /src/command.c | |
parent | 7330002960d2c89081614ef5d15f2f5181e5886c (diff) | |
download | mpd-bb55ec6b4ec89408e32b9af562d891c39e96501d.tar.gz mpd-bb55ec6b4ec89408e32b9af562d891c39e96501d.tar.xz mpd-bb55ec6b4ec89408e32b9af562d891c39e96501d.zip |
command: don't allow adding local files on WIN32
There are no unix sockets on WIN32, and therefore no authentication.
WIN32 might have similar capabilities, but until we implement them,
disable that MPD feature.
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c index c9b2fcbd2..3929978ba 100644 --- a/src/command.c +++ b/src/command.c @@ -451,8 +451,12 @@ handle_add(struct client *client, G_GNUC_UNUSED int argc, char *argv[]) enum playlist_result result; if (strncmp(path, "file:///", 8) == 0) { +#ifndef WIN32 + result = PLAYLIST_RESULT_DENIED; +#else result = playlist_append_file(path + 7, client_get_uid(client), NULL); +#endif return print_playlist_result(client, result); } |