View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000353 | 1003.1(2008)/Issue 7 | System Interfaces | public | 2010-11-11 12:10 | 2013-04-16 13:06 |
| Reporter | geoffclare | Assigned To | ajosey | ||
| Priority | normal | Severity | Objection | Type | Error |
| Status | Closed | Resolution | Accepted | ||
| Name | Geoff Clare | ||||
| Organization | The Open Group | ||||
| User Reference | |||||
| Section | realpath | ||||
| Page Number | 1756 | ||||
| Line Number | 56099 | ||||
| Interp Status | --- | ||||
| Final Accepted Text | |||||
| Summary | 0000353: realpath() and permissions | ||||
| Description | The EACCES error for realpath() is described as follows: [EACCES] Read or search permission was denied for a component of file_name. This does not match the actual permissions needed by realpath() in three respects: 1. Read permission is not needed for any components of file_name. It may be needed for a directory above the current directory if file_name is a relative pathname (see point 3 about getcwd()). Note that symlinks can always be "read"; they do not need read permission. 2. Search permission is only needed for components of the path prefix of file_name, not for the final component. 3. If file_name does not begin with a slash and resolving it does not involve a symlink whose contents begin with a slash, realpath() needs to perform the equivalent of getcwd() and therefore needs the same permissions as getcwd() in this case. (The corresponding getcwd() error is a "may fail", so it should be the same for realpath().) | ||||
| Desired Action | Change: Read or search permission was denied for a component of file_name. to: Search permission was denied for a component of the path prefix of file_name. After line 56112 add a new "may fail" error:
[EACCES] The file_name argument does not begin with a <slash> and
none of the symbolic links (if any) processed during
pathname resolution of file_name had contents that began
with a <slash>, and either search permission was denied
for the current directory or read or search permission
was denied for a directory above the current directory
in the file hierarchy.
| ||||
| Tags | tc1-2008 | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2010-11-11 12:10 | geoffclare | New Issue | |
| 2010-11-11 12:10 | geoffclare | Status | New => Under Review |
| 2010-11-11 12:10 | geoffclare | Assigned To | => ajosey |
| 2010-11-11 12:10 | geoffclare | Name | => Geoff Clare |
| 2010-11-11 12:10 | geoffclare | Organization | => The Open Group |
| 2010-11-11 12:10 | geoffclare | Section | => realpath |
| 2010-11-11 12:10 | geoffclare | Page Number | => 1756 |
| 2010-11-11 12:10 | geoffclare | Line Number | => 56099 |
| 2010-11-11 12:10 | geoffclare | Interp Status | => --- |
| 2010-11-18 17:29 |
|
Status | Under Review => Resolved |
| 2010-11-18 17:29 |
|
Resolution | Open => Accepted |
| 2010-11-18 17:29 |
|
Description Updated | |
| 2010-11-18 17:29 |
|
Tag Attached: tc1-2008 | |
| 2013-04-16 13:06 | ajosey | Status | Resolved => Closed |