From: Roger Merchberger <zmerch-cctalk at 30below.com>
Rumor has it that Tim Riker may have mentioned these words:
timr at slop:~$ touch \/path
touch: cannot touch `/path': Permission denied
timr at slop:~$ uname -a
Linux slop 2.6.24-timriker #1 SMP Sun Feb 17 01:36:19 MST 2008 i686
GNU/Linux
which *nix are you on? just curious.
I was too, because it didn't work on this either:
Linux
mail.30below.com 2.4.20-8 #1 Thu Mar 13 17:18:24 EST 2003 i686 athlon
i386 GNU/Linux
Maybe 2.2?
Taking a look at the ext3 source (it's in my
mental cache from the book project), there's
no escaping of the '/' character. In __link_path_walk(),
it clearly splits on '/' and doesn't look at the
previous character at all.
To bring it back on topic (and because I was
curious), I just pulled out my copy of Lions
and in 6th edition namei(), it's the same
thing. It definitely loops looking for '/'
with no regard to the previous character.
So, the old and the new both do not recognize
a file with '/' in the name. I'm not sufficiently
motivated to look through the BSD FFS :-)
BLS