LinearTapeFileSystem / LinearTapeFileSystem/ltfs
A file which has US (0x1f) character is not accepted
Open
Nobody has claimed this yet.
bug
Hacktoberfest
help wanted
- Dominant language
- C
- Stars
- 352
- Forks
- 110
- Avg merge
- 2h 50m
- Merged PRs (30d)
- 2
Description
Describe the bug
Cannot create a file or a symlink that has US (0x1f) character in the name.
To Reproduce
In bash,touch $'[mount_point]/aaa\x1faaa'.
LTFS returns an invalid argument error.
Expected behavior
Accept the filename and write to an index aaa%1faaa with percent encoded flag.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Reproduce the filename case in bash, then trace LTFS's filename validation and index encoding; done means creating a file or symlink containing 0x1f succeeds and the index records it as aaa%1faaa with the percent-encoded flag.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100