path: removed sanitizePathDup()

We don't need to sanitize the path, because the mapper already checks
for malformed paths.
This commit is contained in:
Max Kellermann
2008-10-31 16:50:51 +01:00
parent f291876772
commit 9fdac529b4
3 changed files with 2 additions and 47 deletions

View File

@@ -830,10 +830,8 @@ handle_update(struct client *client, mpd_unused int argc, char *argv[])
unsigned ret;
assert(argc <= 2);
if (argc == 2 && !(path = sanitizePathDup(argv[1]))) {
command_error(client, ACK_ERROR_ARG, "invalid path");
return COMMAND_RETURN_ERROR;
}
if (argc == 2)
path = g_strdup(argv[1]);
ret = directory_update_init(path);
if (ret > 0) {