From ba675d6a55769a6e82a6efaa2f4a812a4eea2362 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 3 Feb 2014 23:09:25 +0100 Subject: [PATCH] FileCommands: use PathTraitsUTF8::IsAbsolute() --- src/command/FileCommands.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/FileCommands.cxx b/src/command/FileCommands.cxx index 0b0421c3e..cfd5e3926 100644 --- a/src/command/FileCommands.cxx +++ b/src/command/FileCommands.cxx @@ -125,7 +125,7 @@ handle_read_comments(Client &client, gcc_unused int argc, char *argv[]) return print_error(client, error); } else if (uri_has_scheme(uri)) { return read_stream_comments(client, uri); - } else if (*uri != '/') { + } else if (!PathTraitsUTF8::IsAbsolute(uri)) { #ifdef ENABLE_DATABASE path_fs = map_uri_fs(uri); if (path_fs.IsNull()) {