On Feb 10, 2012, at 11:49 PM, Mouse wrote: >> Why not use O_DIRECTORY (which is part of -current) and add that to >> flags? > > Backporting that might be a better alternative. What are its > semantics? It means the open will only succeed is the file is a directory.