The following issue has been SUBMITTED. 
====================================================================== 
http://austingroupbugs.net/view.php?id=1280 
====================================================================== 
Reported By:                dalias
Assigned To:                
====================================================================== 
Project:                    1003.1(2016)/Issue7+TC2
Issue ID:                   1280
Category:                   System Interfaces
Type:                       Clarification Requested
Severity:                   Editorial
Priority:                   normal
Status:                     New
Name:                       Rich Felker 
Organization:               musl libc 
User Reference:              
Section:                    utimensat/futimens 
Page Number:                ? 
Line Number:                ? 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2019-08-16 22:45 UTC
Last Modified:              2019-08-16 22:45 UTC
====================================================================== 
Summary:                    Error requirements with UTIME_OMIT
Description: 
The DESCRIPTION specifies:

"If both tv_nsec fields are set to UTIME_OMIT, no ownership or permissions
check shall be performed for the file, but other error conditions may still
be detected (including [EACCES] errors related to the path prefix)."

Note the "may".

However, under ERRORS, there are "shall fail" errors that would apply under
the condition where both times are UTIME_OMIT.

Desired Action: 
Clarify whether these errors are required if both times are UTIME_OMIT.
Either add exceptions to the error conditions (e.g. "and not both tv_nsec
fields are set to UTIME_OMIT") or replace the "may" in the description with
appropriate wording not to imply that these errors are optional.

Note: Linux kernel does not detect any errors in the case where both are
UTIME_OMIT. I'm not aware of what other implementations do.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2019-08-16 22:45 dalias         New Issue                                    
2019-08-16 22:45 dalias         Name                      => Rich Felker     
2019-08-16 22:45 dalias         Organization              => musl libc       
2019-08-16 22:45 dalias         Section                   => utimensat/futimens
2019-08-16 22:45 dalias         Page Number               => ?               
2019-08-16 22:45 dalias         Line Number               => ?               
======================================================================


Reply via email to