View Issue Details

IDProjectCategoryView StatusLast Update
00004871003.1(2008)/Issue 7System Interfacespublic2019-06-10 08:55
Reportermdempsky Assigned Toajosey  
PrioritynormalSeverityEditorialTypeError
Status ClosedResolutionAccepted As Marked 
NameMatthew Dempsky
OrganizationOpenBSD
User Reference
Sectionaccess, faccessat
Page Number561
Line Number19464-19465
Interp Status---
Final Accepted TextSee 0000487:0000951
Summary0000487: Contradictory comparison of access() and faccessat() behaviors
Description"If faccessat() is passed the special value AT_FDCWD in the fd parameter, the current working directory is used and the behavior shall be identical to a call to access()."

Since this sentence isn't predicated upon the value of flag, my reading is the behavior of both faccessat(AT_FDCWD, path, amode, 0) and faccessat(AT_FDCWD, path, amode, AT_EACCESS) should be identical to the behavior of access(path, amode), but that's impossible since flag==0 and flag==AT_EACCESS specify different behaviors for faccessat().
Desired ActionChange

  "If faccessat() is passed the special value AT_FDCWD in the fd parameter, the current working directory is used and the behavior shall be identical to a call to access()."

to

  "If faccessat() is passed the special value AT_FDCWD in the fd parameter, the current working directory is used. If also flag is zero, the behavior shall be identical to a call to access()."
Tagstc2-2008

Relationships

related to 0000461 Closedajosey missing shalls in interfaces new to Issue 7 

Activities

geoffclare

2011-09-01 16:31

manager   bugnote:0000951

Last edited: 2014-06-26 09:19

Change

    If faccessat() is passed the special value AT_FDCWD in the fd
    parameter, the current working directory is used and the behavior
    shall be identical to a call to access().

to:

    If faccessat() is passed the special value AT_FDCWD in the fd
    parameter, the current working directory shall be used and, if
    flag is zero, the behavior shall be identical to a call to access().

At line 19457 change:

    The faccessat() function shall be equivalent to the access()
    function, except in the case where path specifies a relative path.
    
to:

    The faccessat() function shall be equivalent to the access()
    function, except that the behavior shall be modified by the value of
    flag as described below, and except in the case where path specifies
    a relative path.

[Update: the line 19457 change will not be included in TC2 since the same problem is fixed (in a different way) by 0000838. Although 838 is newer than this bug, it is an approved interpretation and so takes precedence.]

Issue History

Date Modified Username Field Change
2011-08-10 16:41 mdempsky New Issue
2011-08-10 16:41 mdempsky Status New => Under Review
2011-08-10 16:41 mdempsky Assigned To => ajosey
2011-08-10 16:41 mdempsky Name => Matthew Dempsky
2011-08-10 16:41 mdempsky Organization => OpenBSD
2011-08-10 16:41 mdempsky Section => access, faccessat
2011-08-10 16:41 mdempsky Page Number => http://pubs.opengroup.org/onlinepubs/9699919799/functions/faccessat.html
2011-08-10 16:41 mdempsky Line Number => Paragraph 5 under Description
2011-08-10 17:18 Don Cragun Page Number http://pubs.opengroup.org/onlinepubs/9699919799/functions/faccessat.html => 561
2011-08-10 17:18 Don Cragun Line Number Paragraph 5 under Description => 19464-19465
2011-08-10 17:18 Don Cragun Interp Status => ---
2011-08-11 16:01 jim_pugsley Status Under Review => Resolved
2011-08-11 16:01 jim_pugsley Resolution Open => Accepted
2011-08-11 16:01 jim_pugsley Tag Attached: tc2-2008
2011-08-11 16:04 jim_pugsley Status Resolved => Under Review
2011-08-11 16:04 jim_pugsley Resolution Accepted => Open
2011-08-11 16:05 jim_pugsley Tag Detached: tc2-2008
2011-09-01 16:08 eblake Relationship added related to 0000461
2011-09-01 16:31 geoffclare Note Added: 0000951
2011-09-08 15:28 Don Cragun Final Accepted Text => See 0000487:0000951
2011-09-08 15:28 Don Cragun Status Under Review => Resolved
2011-09-08 15:28 Don Cragun Resolution Open => Accepted As Marked
2011-09-08 15:28 Don Cragun Tag Attached: tc2-2008
2014-06-26 09:19 geoffclare Note Edited: 0000951
2019-06-10 08:55 agadmin Status Resolved => Closed