GNU bug report logs - #7122
touch (GNU coreutils) 7.4 - no way to touch a symlink

Previous Next

Package: coreutils;

Reported by: Peter Bailey <baileyp <at> gmail.com>

Date: Tue, 28 Sep 2010 10:33:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 7122 <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Peter Bailey <baileyp <at> gmail.com>
Cc: 7122 <at> debbugs.gnu.org
Subject: Re: bug#7122: touch (GNU coreutils) 7.4 - no way to touch a symlink
Date: Tue, 28 Sep 2010 08:12:50 -0600
On 09/28/2010 03:51 AM, Peter Bailey wrote:
> There are reports that the BSD version of touch has a -h option which
> will make it update the timestamp of a symlink rather than the target
> of that symlink.  As it is, there's no way to update the timestamp on
> a symlink itself.

Consider upgrading.  'touch -h' support was added in coreutils 8.1; the 
latest stable version is 8.5.

Meanwhile, 'touch -h' requires a new enough kernel (one that has full 
utimensat support).

-- 
Eric Blake   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




This bug report was last modified 14 years and 296 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.