summaryrefslogtreecommitdiffstats
path: root/bin/sh
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2015-02-15 21:28:00 +0000
committerjilles <jilles@FreeBSD.org>2015-02-15 21:28:00 +0000
commite751f888a0a8701c0797b39e00ebe4beca4b8192 (patch)
treef69a8ee4347d34f3cd3a776c4d3fd1330fc4b1cb /bin/sh
parentcf9516e251f044191dcf92fec3dcfca3451a8567 (diff)
downloadFreeBSD-src-e751f888a0a8701c0797b39e00ebe4beca4b8192.zip
FreeBSD-src-e751f888a0a8701c0797b39e00ebe4beca4b8192.tar.gz
touch: Fix some subtle bugs related to NULL times fallback:
* Do not subvert vfs.timestamp_precision by reading the time and passing that to utimensat(). Instead, pass UTIME_NOW. A fallback to a NULL times pointer is no longer used. * Do not ignore -a/-m if the user has write access but does not own the file. Leave timestamps unchanged using UTIME_OMIT and do not fall back to a NULL times pointer (which would set both timestamps) if that fails. Reviewed by: bde
Diffstat (limited to 'bin/sh')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud