From mboxrd@z Thu Jan 1 00:00:00 1970 From: Theodore Ts'o Subject: Re: O_CREAT|O_DIRECTORY on nonexisting file with ext4 not posix-compliant Date: Tue, 16 Dec 2014 11:36:46 -0500 Message-ID: <20141216163646.GS17575@thunk.org> References: <2ECE9D9EEF1F524185270138AE23265947D57FA7@S0MSMAIL112.arc.local> <20141216134926.70253edb@notabene.brown> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Fiedler Roman , "linux-fsdevel@vger.kernel.org" , "Michael Kerrisk (man-pages)" To: NeilBrown Return-path: Received: from imap.thunk.org ([74.207.234.97]:59091 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751492AbaLPQgw (ORCPT ); Tue, 16 Dec 2014 11:36:52 -0500 Content-Disposition: inline In-Reply-To: <20141216134926.70253edb@notabene.brown> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Dec 16, 2014 at 01:49:26PM +1100, NeilBrown wrote: > > Given that O_DIRECTORY is not part of POSIX, I don't think that > POSIX-compliance is an issue here. Actually, it is part of POSIX (the latest IEEE Std 1003.1, 2013 edition): http://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html (Things like openat(2) and friends were also added in this revision.) - Ted