[Toybox] [PATCH] Fix touch -a/-m (and add the missing tests).

enh enh at google.com
Mon Apr 10 12:03:55 PDT 2017


ping?

On Thu, Apr 6, 2017 at 2:47 PM, enh <enh at google.com> wrote:

>
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20170410/a0ecf5fa/attachment.htm>


More information about the Toybox mailing list