From beec15ddaaff0ac65d63b54d9fc1a9cf5a228159 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 16 Oct 2008 07:40:34 +0200 Subject: 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. --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3