fs/Traits: split PathTraits type into PathTraitsFS and PathTraitsUTF8
This commit is contained in:
@@ -46,7 +46,7 @@ input_archive_open(const char *pathname,
|
||||
const struct archive_plugin *arplug;
|
||||
InputStream *is;
|
||||
|
||||
if (!PathTraits::IsAbsoluteFS(pathname))
|
||||
if (!PathTraitsFS::IsAbsolute(pathname))
|
||||
return nullptr;
|
||||
|
||||
char *pname = g_strdup(pathname);
|
||||
|
@@ -60,7 +60,7 @@ input_file_open(const char *filename,
|
||||
int fd, ret;
|
||||
struct stat st;
|
||||
|
||||
if (!PathTraits::IsAbsoluteFS(filename))
|
||||
if (!PathTraitsFS::IsAbsolute(filename))
|
||||
return nullptr;
|
||||
|
||||
fd = open_cloexec(filename, O_RDONLY|O_BINARY, 0);
|
||||
|
Reference in New Issue
Block a user