Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 23, 2013
An "enum" for Python 3
An unexpected perf feature
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
And I maintain that's a bug. Kernels should be doing:
* UTF-8 normalization
* Leading and trailing space elimination
* Banning leading dashes
* Banning non-printable unicode characters
There's absolutely no reason for treating filenames as opaque strings, except that by doing so, you avoid having arguments about encodings. Now that UTF-8 has won, we should revisit that decision.
Potential pitfalls in DNS handling
Posted Nov 17, 2012 1:39 UTC (Sat) by anselm (subscriber, #2796)
UTF-8 normalisation probably makes sense, but disallowing leading dashes in filenames would disable potentially desirable features like being able to create a file called »-i« in a directory where you don't want to accidentally have »rm *« delete all your files.
Posted Nov 17, 2012 2:13 UTC (Sat) by apoelstra (subscriber, #75205)
Nor would it allow creating "-r" in directories where you want rm to be extra destructive. :)
Posted Nov 17, 2012 15:13 UTC (Sat) by Jandar (subscriber, #85683)
Posted Nov 19, 2012 10:51 UTC (Mon) by cesarb (subscriber, #6266)
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds