Commit 73a1f078 authored by Max Kellermann's avatar Max Kellermann

archive/iso9660: use IsSpecialFilename()

parent b7ce4523
...@@ -93,7 +93,8 @@ Iso9660ArchiveFile::Visit(char *path, size_t length, size_t capacity, ...@@ -93,7 +93,8 @@ Iso9660ArchiveFile::Visit(char *path, size_t length, size_t capacity,
auto *statbuf = (iso9660_stat_t *) auto *statbuf = (iso9660_stat_t *)
_cdio_list_node_data(entnode); _cdio_list_node_data(entnode);
const char *filename = statbuf->filename; const char *filename = statbuf->filename;
if (strcmp(filename, ".") == 0 || strcmp(filename, "..") == 0) if (PathTraitsUTF8::IsSpecialFilename(filename))
/* skip special names like "." and ".." */
continue; continue;
size_t filename_length = strlen(filename); size_t filename_length = strlen(filename);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment