[Toybox] [PATCH] Fix touch -a/-m (and add the missing tests).
enh
enh at google.com
Thu Apr 6 14:47:58 PDT 2017
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(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20170406/2bf5ab9c/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-touch-a-m-and-add-the-missing-tests.patch
Type: text/x-patch
Size: 1810 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20170406/2bf5ab9c/attachment-0003.bin>
More information about the Toybox
mailing list