On Wed, 17 Aug 2011 18:42:45 PDT, Philip Guenther wrote: > The diff below adds support to various utilities to preserve timestamps to > the nanosecond. Most of them already preserve down to microseconds and > this just makes them preserve the nanoseconds part too. That might seem > pointless but failure to do that can confuse programs when, for example, > "cp -p" leaves the output file as *older* than the input after the bottom > bits of the timestamp get zeroed.
I'm not sure I agree with using AT_SYMLINK_NOFOLLOW as that is a change in bahavior. If the destination is a symlink, don't we want to update the timestamp of the file that the link points to? For cp, you could also use futimens if fd is non-zero. Otherwise looks OK. - todd