Viewing Issue Simple Details
[ Jump to Notes ]
|
[ Issue History ]
[ Print ]
|
ID |
Category |
Severity |
Type |
Date Submitted |
Last Update |
0001665 |
[Issue 8 drafts] System Interfaces |
Objection |
Error |
2023-04-13 09:15 |
2024-06-11 09:12 |
|
Reporter |
geoffclare |
View Status |
public |
|
Assigned To |
|
Priority |
normal |
Resolution |
Accepted |
|
Status |
Closed |
|
Product Version |
Draft 3 |
|
Name |
Geoff Clare |
Organization |
The Open Group |
User Reference |
|
Section |
open() |
Page Number |
1506 |
Line Number |
50451, 50458 |
Final Accepted Text |
|
|
Summary |
0001665: Contradictory text in descriptions of O_EXEC and O_SEARCH |
Description |
The changes from bug 0000658 talk about the possibility of open() with O_EXEC on a directory, or O_SEARCH on a non-directory file, opening the file with an unspecified access mode. However, there is no circumstance in which text elsewhere allows this to happen.
For O_EXEC on a directory:- If O_EXEC is the same value as O_SEARCH, the description of O_SEARCH applies and the directory is opened for searching.
- If O_EXEC is not the same value as O_SEARCH, the ERRORS section mandates
an EISDIR error.
Similarly for O_SEARCH on a non-directory file and ENOTDIR.
|
Desired Action |
On page 1506 line 50451 section open() O_EXEC, change:If path names a directory, it is unspecified whether open() fails, or whether the directory is opened but with an unspecified access mode. to:If path names a directory and O_EXEC is not the same value as O_SEARCH, open() shall fail.
On page 1506 line 50458 section open() O_SEARCH, change:If path names a non-directory file, it is unspecified whether open() fails, or whether the file is opened but with an unspecified access mode. to:If path names a non-directory file and O_SEARCH is not the same value as O_EXEC, open() shall fail.
On page 1506 line 50462 section open(), delete:If a file is successfully opened with an unspecified access mode, an application can use fcntl() to discover the access mode that was selected.
On page 1513 line 50753 section open() RATIONALE, change:Although the standard allows open() to fail on an attempt to use O_EXEC on a directory, or O_SEARCH on a non-directory, this is only possible in implementations where the two modes have distinct values. to:Although this standard requires open() to fail on an attempt to use O_EXEC on a directory, or O_SEARCH on a non-directory, this only applies in implementations where the two modes have distinct values.
|
Tags |
applied_after_i8d3, issue8 |
|
Attached Files |
|
|