diff options
author | Max Kellermann <max@duempel.org> | 2008-10-16 07:40:34 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-16 07:40:34 +0200 |
commit | beec15ddaaff0ac65d63b54d9fc1a9cf5a228159 (patch) | |
tree | a758e40fcedda30538872e0b7bd24a53dda5241a /src | |
parent | f9222fdabeccd2b53a9e549c633982928c9451a1 (diff) | |
download | mpd-beec15ddaaff0ac65d63b54d9fc1a9cf5a228159.tar.gz mpd-beec15ddaaff0ac65d63b54d9fc1a9cf5a228159.tar.xz mpd-beec15ddaaff0ac65d63b54d9fc1a9cf5a228159.zip |
command: special case for "add /"
The undocumented command "add /" adds the full music database to the
playlist. Don't interpret this special path as a local file path.
Diffstat (limited to '')
-rw-r--r-- | src/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c index b141bda45..b4f001c85 100644 --- a/src/command.c +++ b/src/command.c @@ -448,7 +448,7 @@ static int handleAdd(struct client *client, char *path = argv[1]; enum playlist_result result; - if (path[0] == '/') { + if (path[0] == '/' && path[1] != 0) { result = playlist_append_file(path, client_get_uid(client), NULL); return print_playlist_result(client, result); |