On Thu, 14 Mar 2013, Michael Kerrisk (man-pages) wrote:
When O_PATH is specified in flags, flag bits other than O_DIRECTORY and O_NOFOLLOW are ignored.
We are told elsewhere in this man page that O_DIRECTORY "should not be used outside of the implementation of opendir(3)". Is O_PATH an exception to this? It seems like the implementation makes special accomodation for O_DIRECTORY, but opendir(3) is not going to use O_PATH.
(What's the reasoning behind the rule against O_DIRECTORY in the general case, anyway?)
-- Geoffrey Thomas gthomas@xxxxxxxxxxxx -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html