Discussion:
[PATCH] Fix touch -a/-m (and add the missing tests).
(too old to reply)
enh
2017-04-06 21:47:58 UTC
Permalink
Raw Message
utimensat takes atime in [0] and mtime in [1], but since we're overwriting
with UTIME_OMIT, we actually want to flip the comparison so -a blats 1 and
-m blats 0.
---
tests/touch.test | 12 +++++++++---
toys/posix/touch.c | 2 +-
2 files changed, 10 insertions(+), 4 deletions(-)
enh
2017-04-10 19:03:55 UTC
Permalink
Raw Message
ping?
Post by enh
utimensat takes atime in [0] and mtime in [1], but since we're overwriting
with UTIME_OMIT, we actually want to flip the comparison so -a blats 1 and
-m blats 0.
---
tests/touch.test | 12 +++++++++---
toys/posix/touch.c | 2 +-
2 files changed, 10 insertions(+), 4 deletions(-)
--
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.
Loading...