←back to thread

359 points dgl | 1 comments | | HN request time: 0.204s | source
Show context
TacticalCoder[dead post] ◴[] No.44503752[source]
[flagged]
zahlman ◴[] No.44504059[source]
Suppose the system call to list a directory examined the place on the disk where a filename should be, and found bytes representing ASCII control characters. Should it deny the existence of the corresponding file? Assume disk corruption? Something else? After all, maybe (this is admittedly more theoretical than practical) those bytes map to something else in the current locale. It's not like modern Windows which assumes the filenames are all UTF-16.
replies(1): >>44509491 #
immibis ◴[] No.44509491[source]
What does it do today if there's a forward slash and a null byte?
replies(1): >>44511592 #
1. zahlman ◴[] No.44511592[source]
Well for a null byte at least it would have just stopped reading at that point anyway.