lib/suitar: reject names ending in "/." or "/.."

This commit is contained in:
Nigel Tao committed 2026-09-15 10:42:51 +10:00
1 parent 5049107b90
commit 742e8b78d9
2 files changed
+6 -3

No files matched your search

+2 -1
View File
@@ -86,7 +86,8 @@ These rules apply to both file names and directory names.
- Names must not contain the `'\x7F'` ASCII DEL byte.
- Names must be no longer than 4095 bytes, excluding a trailing NUL.
- Names must not be `""`, `"."` or `".."`.
- Names must not start or end with `"/"`, `"./"` or `"../"`.
- Names must not start with `"/"`, `"./"` or `"../"`.
- Names must not end with `"/"`, `"/."` or `"/.."`.
- Names must not contain `"//"`, `"/./"` or `"/../"` as substrings.
For example, when converting from ZIP (with Japanese file names) to SUITAR, it