Paul Eggert <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] writes:
>
>> Well at least: Ah ha, isn't "now" the current time? Bug! Muhahaha.
>
> Thanks for the bug report.  Here is a patch.  It's not that easy to
> write up a test case, due to the permissions issues, so I omitted
> that.
>
> 2008-01-03  Paul Eggert  <[EMAIL PROTECTED]>
>
>       * src/touch.c (main): Treat "-d now" as if it were absent, if
>       neither -a nor -m is specified.  Problem reported by Dan Jacobson in:
>       http://lists.gnu.org/archive/html/bug-coreutils/2008-01/msg00010.html

Thanks, Paul.
I've applied your patch:

    http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=fd12e98f36bdea

and added a test for it:

        touch: add a test for today's change.
        * tests/touch/now-owned-by-other: New script.  Test today's change.
        * tests/touch/Makefile.am (TESTS): Add now-owned-by-other.
        * tests/Makefile.am (all_t): Add td, a new root-only test.
        (td): New target.
        * NEWS: Mention the improvement.

    http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=9b76bc2b54180c


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to