View Issue Details

IDProjectCategoryView StatusLast Update
00004861003.1(2008)/Issue 7System Interfacespublic2011-09-01 17:55
Reportermdempsky Assigned Toajosey  
PrioritynormalSeverityEditorialTypeError
Status ClosedResolutionDuplicate 
NameMatthew Dempsky
OrganizationOpenBSD
User Reference
Sectionlink
Page Number1216
Line Number40135-40136
Interp Status---
Final Accepted Text
Summary0000486: Contradictory comparison of link() and linkat() behaviors
Description"If linkat() is passed the special value AT_FDCWD in the fd1 or fd2 parameter, the current working directory is used for the respective path argument. If both fd1 and fd2 have value AT_FDCWD, the behavior shall be identical to a call to link()."

Since the latter sentence is not predicated upon the value of flag, my reading of this is that both linkat(AT_FDCWD, path1, AT_FDCWD, path2, 0) and linkat(AT_FDCWD, path1, AT_FDCWD, path2, AT_SYMLINK_FOLLOW) should be identical in behavior to link(path1, path2), which is impossible since flag==0 and flag==AT_SYMLINK_FOLLOW specify different behaviors.
Desired ActionChange

  "If both fd1 and fd2 have value AT_FDCWD, the behavior shall be identical to a call to link()."

to

  "If both fd1 and fd2 have value AT_FDCWD and flag has an implementation-defined value of either 0 or AT_SYMLINK_FOLLOW, the behavior shall be identical to a call to link()."
TagsNo tags attached.

Relationships

duplicate of 0000326 Closedajosey linkat() equivalence to link() exception insufficient 

Activities

geoffclare

2011-08-15 15:20

manager   bugnote:0000940

This is closely related to 0000326 which is being fixed in TC1.
It would be good if this additional aspect of the problem could be
addressed by updating the resolution of 0000326, so that the
change can be included in TC1.

Don Cragun

2011-09-01 16:33

manager   bugnote:0000952

This was handled by changing the resolution of 0000326 as suggested in 0000486:0000940.

Issue History

Date Modified Username Field Change
2011-08-10 16:35 mdempsky New Issue
2011-08-10 16:35 mdempsky Status New => Under Review
2011-08-10 16:35 mdempsky Assigned To => ajosey
2011-08-10 16:35 mdempsky Name => Matthew Dempsky
2011-08-10 16:35 mdempsky Organization => OpenBSD
2011-08-10 16:35 mdempsky Section => link
2011-08-10 16:35 mdempsky Page Number => http://pubs.opengroup.org/onlinepubs/9699919799/functions/link.html
2011-08-10 16:35 mdempsky Line Number => Paragraph 11 under Description
2011-08-10 17:15 Don Cragun Page Number http://pubs.opengroup.org/onlinepubs/9699919799/functions/link.html => 1216
2011-08-10 17:15 Don Cragun Line Number Paragraph 11 under Description => 40135-40136
2011-08-10 17:15 Don Cragun Interp Status => ---
2011-08-15 15:20 geoffclare Note Added: 0000940
2011-08-15 15:21 geoffclare Relationship added related to 0000326
2011-09-01 16:33 Don Cragun Note Added: 0000952
2011-09-01 16:33 Don Cragun Status Under Review => Closed
2011-09-01 16:33 Don Cragun Resolution Open => Duplicate
2011-09-01 17:55 Don Cragun Relationship replaced duplicate of 0000326