Anonymous | Login | 2023-12-05 05:25 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0001210 | [1003.1(2016/18)/Issue7+TC2] System Interfaces | Objection | Error | 2018-09-21 14:38 | 2019-11-13 10:12 | ||
Reporter | geoffclare | View Status | public | ||||
Assigned To | |||||||
Priority | normal | Resolution | Accepted | ||||
Status | Applied | ||||||
Name | Geoff Clare | ||||||
Organization | The Open Group | ||||||
User Reference | |||||||
Section | nftw() | ||||||
Page Number | 1397 | ||||||
Line Number | 46455 | ||||||
Interp Status | Approved | ||||||
Final Accepted Text | |||||||
Summary | 0001210: FTW_MOUNT and symbolic links to directories on other file systems | ||||||
Description |
Between the descriptions of FTW_MOUNT on the <ftw.h> page and the nftw() page, it is clear that when a mount point is encountered it is not reported (nftw() description) and is not crossed (<ftw.h> description). However, the same is not true for symbolic links to directories on other file systems, when FTW_MOUNT is set and FTW_PHYS is clear. Since the <ftw.h> description only refers to mount points, the standard requires that nftw() does not report such directories but does descend below them (if they are not also mount points), and that it reports symbolic links found there that point back to the original file system. Of course, this is not how nftw() implementations behave. They do not cross any directory with a different device ID, regardless of how it was reached. |
||||||
Desired Action |
On page 255 line 8562 section <ftw.h>, change:FTW_MOUNTto:The walk does not cross a mount point. FTW_MOUNTThe walk only reports files that have the same device ID as the starting directory and does not descend below directories that have a different device ID than the starting directory. On page 1397 line 46455 section nftw(), change: If set, nftw() shall only report files in the same file system as path.to: If set, nftw() shall only report files that have the same device ID (st_dev) as path and shall not descend below directories that have a different device ID than path. On page 1400 line 46570 section nftw(), change RATIONALE from: None.to: Earlier versions of this standard did not make clear that, as well as not reporting them, FTW_MOUNT prevents descent below directories that have a different device ID than path if they are encountered by following a symbolic link (rather than by being a mount point). This meant that if such a directory contained any symbolic links to files with the same device ID as path, nftw() with FTW_PHYS clear was required to report them. However, this was not how nftw() implementations behaved and the standard has been amended to match existing practice. |
||||||
Tags | tc3-2008 | ||||||
Attached Files | |||||||
|
![]() |
||||||
|
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |