Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle unusual filenames #1

Open
benibela opened this issue Aug 30, 2021 · 0 comments
Open

handle unusual filenames #1

benibela opened this issue Aug 30, 2021 · 0 comments

Comments

@benibela
Copy link

Linux allows any byte in filenames besides null and /

If this should be reliable, it needs to handle them.

Especially line breaks are very confusing.

$ echo  x > $'ccheck/a\nb'
$ ccheck  --nosign ccheck/ ccheck.cc2
Computing checksums for all files...
New file: ccheck/a
b
$ ccheck  --nosign ccheck/ ccheck.cc2
Computing checksums for all files...
WARNING: missing file: b 73cb3858a687a8494ca3323053016282f3dad39d42cf62ca4e79dda2aac7d9ac
Use of uninitialized value $db_checksums{""} in concatenation (.) or string at ./ccheck/ccheck.pl line 132.
WARNING: missing file:  
New file: ccheck/a
b
...

Here are some more files that break all things everywhere, including invalid utf-8 names: https://github.com/benibela/nasty-files

Can't use an undefined value as a symbol reference at /tmp/ccheck/ccheck.pl line 170.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant