On Fri, 2007-11-16 at 13:38 +0100, Christian Kujau wrote:
> On Wed, November 14, 2007 06:25, Dave Kleikamp wrote:
> > This is the first I've heard of this.  I don't think Linux ever
> > supported setting the modification times on symlinks.  Surely, I wouldn't
> > expect it to be supported in file-system specific code.
> 
> I couldn't find a POSIX statement on utime() and symbolic links, only some
> IBM document[0], saying that utime() would resolve the symbolic links,
> hence modifying the targets, not the symlinks. And that's what I see on
> Linux/ext3 and on Solaris/ufs:

I'm pretty sure it's not posix, but there's a new (at least to linux)
function called lutimes() which does set the time on a symlink.  I know
the kernel support (utimesat) was added in linux-2.6.22.  I'm not clear
on when the function was added to glibc.

It seems Charles' problem was that he built rsync on one system (which
probably had a newer glibc), and ran it on another where the lutimes()
function failed.

Thanks,
Shaggy
-- 
David Kleikamp
IBM Linux Technology Center


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jfs-discussion mailing list
Jfs-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jfs-discussion

Reply via email to