Austin Group Bug Tracker
2014-06-19 07:02:39 UTC
The following issue has been SUBMITTED.
======================================================================
http://austingroupbugs.net/view.php?id=847
======================================================================
Reported By: rhansen
Assigned To:
======================================================================
Project: 1003.1(2013)/Issue7+TC1
Issue ID: 847
Category: System Interfaces
Type: Error
Severity: Editorial
Priority: normal
Status: New
Name: Richard Hansen
Organization: BBN
User Reference:
Section: open, openat
Page Number: 1394
Line Number: 46098
Interp Status: ---
Final Accepted Text:
======================================================================
Date Submitted: 2014-06-19 07:02 UTC
Last Modified: 2014-06-19 07:02 UTC
======================================================================
Summary: open(O_CREAT), directories, and EISDIR
Description:
open("/path/to/existing/directory", O_CREAT) should fail with EISDIR, but
implementations should be allowed to support creating and opening a
directory via open("/path/to/directory", O_CREAT|O_DIRECTORY) as an
extension
see discussion at
http://thread.gmane.org/gmane.comp.standards.posix.austin.general/9503
and
http://thread.gmane.org/gmane.comp.standards.posix.austin.general/9451
Desired Action:
On page 1391 at line 45975 (open() description, O_CREAT), change:
<blockquote>Otherwise, the file shall be created</blockquote>
to:
<blockquote>Otherwise, if O_DIRECTORY is not set the file shall be created
as a regular file</blockquote>
On page 1393 after line 46051 (open() description), insert a new
paragraph:
<blockquote>If O_CREAT and O_DIRECTORY are set and the requested access
mode is neither O_WRONLY nor O_RDWR, the result is
unspecified.</blockquote>
On page 1394 at line 46098 (open() errors, EISDIR), change:
<blockquote>The named file is a directory and oflag includes O_WRONLY or
O_RDWR.</blockquote>
to:
<blockquote>The named file is a directory and oflag includes O_WRONLY or
O_RDWR, or includes O_CREAT without O_DIRECTORY.</blockquote>
(wording courtesy of Geoff)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-06-19 07:02 rhansen New Issue
2014-06-19 07:02 rhansen Name => Richard Hansen
2014-06-19 07:02 rhansen Organization => BBN
2014-06-19 07:02 rhansen Section => open, openat
2014-06-19 07:02 rhansen Page Number => 1394
2014-06-19 07:02 rhansen Line Number => 46098
======================================================================
======================================================================
http://austingroupbugs.net/view.php?id=847
======================================================================
Reported By: rhansen
Assigned To:
======================================================================
Project: 1003.1(2013)/Issue7+TC1
Issue ID: 847
Category: System Interfaces
Type: Error
Severity: Editorial
Priority: normal
Status: New
Name: Richard Hansen
Organization: BBN
User Reference:
Section: open, openat
Page Number: 1394
Line Number: 46098
Interp Status: ---
Final Accepted Text:
======================================================================
Date Submitted: 2014-06-19 07:02 UTC
Last Modified: 2014-06-19 07:02 UTC
======================================================================
Summary: open(O_CREAT), directories, and EISDIR
Description:
open("/path/to/existing/directory", O_CREAT) should fail with EISDIR, but
implementations should be allowed to support creating and opening a
directory via open("/path/to/directory", O_CREAT|O_DIRECTORY) as an
extension
see discussion at
http://thread.gmane.org/gmane.comp.standards.posix.austin.general/9503
and
http://thread.gmane.org/gmane.comp.standards.posix.austin.general/9451
Desired Action:
On page 1391 at line 45975 (open() description, O_CREAT), change:
<blockquote>Otherwise, the file shall be created</blockquote>
to:
<blockquote>Otherwise, if O_DIRECTORY is not set the file shall be created
as a regular file</blockquote>
On page 1393 after line 46051 (open() description), insert a new
paragraph:
<blockquote>If O_CREAT and O_DIRECTORY are set and the requested access
mode is neither O_WRONLY nor O_RDWR, the result is
unspecified.</blockquote>
On page 1394 at line 46098 (open() errors, EISDIR), change:
<blockquote>The named file is a directory and oflag includes O_WRONLY or
O_RDWR.</blockquote>
to:
<blockquote>The named file is a directory and oflag includes O_WRONLY or
O_RDWR, or includes O_CREAT without O_DIRECTORY.</blockquote>
(wording courtesy of Geoff)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-06-19 07:02 rhansen New Issue
2014-06-19 07:02 rhansen Name => Richard Hansen
2014-06-19 07:02 rhansen Organization => BBN
2014-06-19 07:02 rhansen Section => open, openat
2014-06-19 07:02 rhansen Page Number => 1394
2014-06-19 07:02 rhansen Line Number => 46098
======================================================================