Anonymous | Login | 2023-12-07 16:48 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 | ||
0001620 | [Issue 8 drafts] Base Definitions and Headers | Editorial | Enhancement Request | 2022-11-22 03:55 | 2022-11-28 16:30 | ||
Reporter | calestyo | View Status | public | ||||
Assigned To | |||||||
Priority | normal | Resolution | Rejected | ||||
Status | Closed | Product Version | Draft 2.1 | ||||
Name | Christoph Anton Mitterer | ||||||
Organization | |||||||
User Reference | |||||||
Section | 3.243 Pathname, 4.14 Pathname Resolution | ||||||
Page Number | 63 resp. 93 | ||||||
Line Number | 1967 ff. resp. 2830 ff. | ||||||
Final Accepted Text | |||||||
Summary | 0001620: is the empty string a valid pathname? | ||||||
Description |
Hey. It seems the current wordings of: 3.243 Pathname and via that also of: 3.297 Relative Pathname do not exclude the empty string to be considered a pathname. 3.243 says: > In the context of POSIX.1-202x, a pathname may > be limited to {PATH_MAX} bytes, including the > terminating null byte. So there is no minimum size. > It has optional beginning <slash> characters, > followed by zero or more filenames separated by > <slash> characters. A pathname can optionally > contain one or more trailing <slash> characters. Since the <slash> characters in the beginning are optional, those may be followed by possibly zero filenames and there may be no trailing <slash> characters, the empty string seems to be a valid pathname. And the same via 3.297 Relative Pathname, which says: > A pathname not beginning with a <slash> character. So the empty string would also be a relative pathname. 4.14 Pathname Resolution says: > A null pathname shall not be successfully resolved. One could not start nitpicking whether this means that just the resolution o such pathname should fail.. or whether such pathnames are disallowed per se. ;-) |
||||||
Desired Action |
... but wouldn't it make sense to clarify in 3.243 Pathname and 3.297 Relative Pathname that empty pathnames are not valid (if so)? Thanks, Chris. |
||||||
Tags | No tags attached. | ||||||
Attached Files | |||||||
|
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |