summaryrefslogtreecommitdiff
path: root/lib/sqfs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqfs')
-rw-r--r--lib/sqfs/readdir.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/sqfs/readdir.c b/lib/sqfs/readdir.c
index 1323c36..25d0438 100644
--- a/lib/sqfs/readdir.c
+++ b/lib/sqfs/readdir.c
@@ -60,18 +60,6 @@ int sqfs_meta_reader_read_dir_ent(sqfs_meta_reader_t *m,
return err;
}
- if (strchr((char *)out->name, '/') != NULL ||
- strchr((char *)out->name, '\\') != NULL) {
- free(out);
- return SQFS_ERROR_CORRUPTED;
- }
-
- if (strcmp((char *)out->name, "..") == 0 ||
- strcmp((char *)out->name, ".") == 0) {
- free(out);
- return SQFS_ERROR_CORRUPTED;
- }
-
*result = out;
return 0;
}