8 ms·
My bet is on an off-by-one error somewhere amongst all the fixed-length-buffers used to handle paths. In some ways, I'm surprised that modern operating systems
by userbinator 11y ago
My bet is on an off-by-one error somewhere amongst all the fixed-length-buffers used to handle paths. In some ways, I'm surprised that modern operating systems still make extensive use of fixed-length-buffers and manipulate paths as strings, since other representations like arrays of inode numbers or even a linked list could be simpler and more efficient to manipulate while avoiding some of the strangeness and edge cases with respect to path parsing.
- aidenn0 11y agoYou cannot represent file paths as inode numbers if you support hardlinks.