[Top][All Lists]

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

Re: touch

From: Eric Blake
Subject: Re: touch
Date: Mon, 21 Dec 2009 05:55:12 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20090812 Thunderbird/ Mnenhy/

Hash: SHA1

[please keep the list in the loop]

According to ctrn3e8 on 12/20/2009 10:04 PM:
>>>>    touch -m no longer seems to modify the file modification date.  
>>>> Archlinux,
>>>>    coreutils-8.2 (package coreutils-8.2-1-i686).  Works if use 
>>>> coreutils-7.6.
> What kernel version on which architecture (uname -a)?  Can you send an
> strace?  We recently fixed a bug with kernel 2.6.32 failing to change
> ctime when you use 'touch -a'; I wonder if there is another kernel bug we
> need to be aware of.

> Thanks for responding:

> uname:
> Linux scitrin 2.6.31-ARCH #1 SMP PREEMPT Tue Nov 10 19:48:17 CET 2009
> i686 AMD Athlon(tm) 64 X2 Dual Core Processor 3600+ AuthenticAMD GNU/Linux

> Again should not matter.....(modifying a file with a modify date from
> months ago)...but hardware clock is set to UCT and time then adjusted by
> operating system to local time zone

> Permissions on the file I  chose to modify  are okay.

> strace output::
> 0666) = 6
> dup2(6, 0)                              = 0
> close(6)                                = 0
> utimensat(0, NULL, {UTIME_OMIT, UTIME_NOW}, 0) = 0

That works on the Linux kernels that I have attempted.  I'm wondering
what's not happening for you?

> close(0)                                = 0
> close(1)                                = 0
> close(2)                                = 0
> exit_group(0)                           = ?

Can you also show 'stat startTimidity' before and after the failing
attempt at 'touch -m startTimidity'?

Also, if you built coreutils from source, running 'make -C gnulib-tests
check' would be informative.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


reply via email to

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