summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-03-07 09:15:54 +0100
committerMax Kellermann <max@musicpd.org>2020-03-07 09:30:56 +0100
commit73a1f078a6bb0a2228f7d9e7a48a53382707ec35 (patch)
treefc21429ba3fd074161e8f7327addb175b95dad2e
parentb7ce4523083d5c98b4d944045a318b6a3e590a46 (diff)
archive/iso9660: use IsSpecialFilename()
-rw-r--r--src/archive/plugins/Iso9660ArchivePlugin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/archive/plugins/Iso9660ArchivePlugin.cxx b/src/archive/plugins/Iso9660ArchivePlugin.cxx
index a27230728..50cea2aef 100644
--- a/src/archive/plugins/Iso9660ArchivePlugin.cxx
+++ b/src/archive/plugins/Iso9660ArchivePlugin.cxx
@@ -93,7 +93,8 @@ Iso9660ArchiveFile::Visit(char *path, size_t length, size_t capacity,
auto *statbuf = (iso9660_stat_t *)
_cdio_list_node_data(entnode);
const char *filename = statbuf->filename;
- if (strcmp(filename, ".") == 0 || strcmp(filename, "..") == 0)
+ if (PathTraitsUTF8::IsSpecialFilename(filename))
+ /* skip special names like "." and ".." */
continue;
size_t filename_length = strlen(filename);