By the way, since this is of general interest...
I asked the POSIX people if there was anything in the Austin (Unix 2002)
draft that would prohibit this behaviour. The response was more or less
of the form "we are not really sure if it's within the spec, but it is
perfectly reasonable." The (only) issue seems to be whether or not the
requirement to deliver ENOTDIR in cases like this is absolute or if this
is a permissible extension. The way I interpret what I got back was
pretty much "go for it and don't worry about it."
-hpa
-- <hpa@transmeta.com> at work, <hpa@zytor.com> in private! "Unix gives you enough rope to shoot yourself in the foot." http://www.zytor.com/~hpa/puzzle.txt - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/