bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 664 vs. touch -d now


From: Jim Meyering
Subject: Re: 664 vs. touch -d now
Date: Sun, 06 Jan 2008 13:26:15 +0100

Paul Eggert <address@hidden> wrote:
> address@hidden 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  <address@hidden>
>
>       * 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]