A NOTE has been added to this issue. ====================================================================== http://austingroupbugs.net/view.php?id=1121 ====================================================================== Reported By: djdelorie Assigned To: ajosey ====================================================================== Project: 1003.1(2008)/Issue 7 Issue ID: 1121 Category: System Interfaces Type: Clarification Requested Severity: Editorial Priority: normal Status: Under Review Name: DJ Delorie Organization: Red Hat Inc User Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1422736 Section: nftw() Page Number: http://pubs.opengroup.org/onlinepubs/9699919799/ Line Number: n/a Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2017-02-24 18:47 UTC Last Modified: 2017-02-25 03:06 UTC ====================================================================== Summary: is the stat data undefined for dangling symlinks, without FTW_PHYS? ======================================================================
---------------------------------------------------------------------- (0003571) carlos (reporter) - 2017-02-25 03:06 http://austingroupbugs.net/view.php?id=1121#c3571 ---------------------------------------------------------------------- I expect the stat buffer to be undefined if FTW_SLN is passed to fn. The caller stated their intent by _not_ setting FTW_PHYS. The only other interpretation is that the stat buffer must be filled by the contents of the dangling symlink, and that is at odds with the caller's intent (didn't set FTW_PHYS) and forces an either an extra stat or lstat to be called (performance cost). There has been an argument made here: https://bugzilla.redhat.com/show_bug.cgi?id=1422736 that the behaviour of providing the dangling symlink data in the buffer is well established. This doesn't mean that POSIX should require it though. Issue History Date Modified Username Field Change ====================================================================== 2017-02-24 18:47 djdelorie New Issue 2017-02-24 18:47 djdelorie Status New => Under Review 2017-02-24 18:47 djdelorie Assigned To => ajosey 2017-02-24 18:47 djdelorie Name => DJ Delorie 2017-02-24 18:47 djdelorie Organization => Red Hat Inc 2017-02-24 18:47 djdelorie User Reference => https://bugzilla.redhat.com/show_bug.cgi?id=1422736 2017-02-24 18:47 djdelorie Section => nftw() 2017-02-24 18:47 djdelorie Page Number => http://pubs.opengroup.org/onlinepubs/9699919799/ 2017-02-24 18:47 djdelorie Line Number => n/a 2017-02-24 20:38 shware_systems Note Added: 0003570 2017-02-25 03:06 carlos Note Added: 0003571 ======================================================================