4 ms·
Pathological or not, ensuring that pathnames can essentially contain any byte value except the 0 terminator, and it will still work, is important to prevent sur
by userbinator 12y ago
Pathological or not, ensuring that pathnames can essentially contain any byte value except the 0 terminator, and it will still work, is important to prevent surprising behaviour which often has security implications.
- myhf 12y agotoo pathological; didn't implement
- typedweb 12y agoThe only character not allowed in Unix file names is the forward slash directory separator, so even that would be a pathological mistake waiting to bite someone. Edit: my mistake, they can't contain nulls either: https://news.ycombinator.com/item?id=8485861 https://news.ycombinator.com/item?id=8485861