aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-31 16:50:51 +0100
committerMax Kellermann <max@duempel.org>2008-10-31 16:50:51 +0100
commit9fdac529b4eae2e8093db8308fcf95d270b2bfa7 (patch)
treebd1f3004004877a1168a9cdbdf975dba57aa29a8 /src/command.c
parentf291876772d1283433924518f87e639e17901a17 (diff)
downloadmpd-9fdac529b4eae2e8093db8308fcf95d270b2bfa7.tar.gz
mpd-9fdac529b4eae2e8093db8308fcf95d270b2bfa7.tar.xz
mpd-9fdac529b4eae2e8093db8308fcf95d270b2bfa7.zip
path: removed sanitizePathDup()
We don't need to sanitize the path, because the mapper already checks for malformed paths.
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/command.c b/src/command.c
index 452568238..dc71f1d1a 100644
--- a/src/command.c
+++ b/src/command.c
@@ -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) {