diff options
Diffstat (limited to 'src/input/FileInputPlugin.cxx')
-rw-r--r-- | src/input/FileInputPlugin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input/FileInputPlugin.cxx b/src/input/FileInputPlugin.cxx index 75103f711..a8557fc4d 100644 --- a/src/input/FileInputPlugin.cxx +++ b/src/input/FileInputPlugin.cxx @@ -24,6 +24,7 @@ #include "InputPlugin.hxx" #include "util/Error.hxx" #include "util/Domain.hxx" +#include "fs/Path.hxx" #include "system/fd_util.h" #include "open.h" @@ -62,7 +63,7 @@ input_file_open(const char *filename, int fd, ret; struct stat st; - if (!g_path_is_absolute(filename)) + if (!Path::IsAbsoluteFS(filename)) return nullptr; fd = open_cloexec(filename, O_RDONLY|O_BINARY, 0); |