diff options
author | Rich Felker <dalias@aerifal.cx> | 2019-07-27 10:20:01 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019-07-27 13:43:13 -0400 |
commit | cb856a616076c0df27dad7222640814ae58cdc96 (patch) | |
tree | 806a00171641329ed75a6ff82ed02f06953426ca /src/process | |
parent | 331993e3fc3623f111d95796d3d7f30b4f6552c1 (diff) | |
download | musl-cb856a616076c0df27dad7222640814ae58cdc96.tar.gz musl-cb856a616076c0df27dad7222640814ae58cdc96.tar.xz musl-cb856a616076c0df27dad7222640814ae58cdc96.zip |
fix and simplify futimesat fallback in utimensat
previously the fallback wrongly failed with EINVAL rather than ENOSYS when UTIME_NOW was used with one component but not both. commit dd5f50da6f6c3df5647e922e47f8568a8896a752 introduced this behavior when initially adding the fallback support. instead, detect the case where both are UTIME_NOW early and replace with a null times pointer; this may improve performance slightly (less copy from user), and removes the complex logic from the fallback case. it also makes things slightly simpler for adding time64 code paths.
Diffstat (limited to 'src/process')
0 files changed, 0 insertions, 0 deletions