View Issue Details

IDProjectCategoryView StatusLast Update
00003531003.1(2008)/Issue 7System Interfacespublic2013-04-16 13:06
Reportergeoffclare Assigned Toajosey  
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionrealpath
Page Number1756
Line Number56099
Interp Status---
Final Accepted Text
Summary0000353: realpath() and permissions
DescriptionThe 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 ActionChange:

    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.

Tagstc1-2008

Activities

There are no notes attached to this issue.

Issue History

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 Don Cragun Status Under Review => Resolved
2010-11-18 17:29 Don Cragun Resolution Open => Accepted
2010-11-18 17:29 Don Cragun Description Updated
2010-11-18 17:29 Don Cragun Tag Attached: tc1-2008
2013-04-16 13:06 ajosey Status Resolved => Closed