LWN.net Logo

Potential pitfalls in DNS handling

Potential pitfalls in DNS handling

Posted Nov 16, 2012 12:25 UTC (Fri) by cate (subscriber, #1359)
In reply to: Potential pitfalls in DNS handling by rvfh
Parent article: Potential pitfalls in DNS handling

Not really. You can eventually have "/" in a filename: "/" has a value defined in localedef, thus you can define a private locale, create a file containing the ascii value of "/", and returning to a normal locale.

It is allowed by POSIX (but without specifying what a POSIX program should behave when it encounters such file), but I never tested.


(Log in to post comments)

'/' in filename? Really?

Posted Nov 17, 2012 2:35 UTC (Sat) by pr1268 (subscriber, #24648) [Link]

Really...? Any online examples of this?

I'm sincerely curious as to how I could overcome the inability to create a directory named "AC/DC" in my music files directory (where each subdirectory is named after the artist/band whose song files are stored within).

Back to the article, I feel somewhat re-assured that the various DNS library implementations would appear to fail given strange input that the RFCs seem to allow. And besides, those are relatively low-numbered RFCs; surely they've been around a while to shake out the bugs. </slightly ignorant observation>

Thanks to Phil Pennock and the Exim developers looking into this.

'/' in filename? Really?

Posted Nov 17, 2012 11:47 UTC (Sat) by hummassa (subscriber, #307) [Link]

Use the codepoint 0x2215 And be happy...

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds