bug-fileutils
[Top][All Lists]
Advanced

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

Re: cp -a not preserving timestamps on symlinks


From: Alan Ford
Subject: Re: cp -a not preserving timestamps on symlinks
Date: Tue, 27 May 2003 12:21:51 +0100
User-agent: Mutt/1.4i

On Mon, May 26, 2003 at 11:51:25PM -0600, Bob Proulx wrote:
> For kernel calls like stat(2) there is lstat(2).  But there is no
> lutime(2) equivalent for utime(2).  Therefore there is no way to
> change the times on a symlink.

I was just doing more research on this... there is a lutimes function,
which does for symlinks what utimes does for files. There's no manual
page for lutimes, but the page for utimes says it is equivalent to
utime, so I guess lutimes would do this then?

Would this be implementatble in touch and cp ?

-- 
Alan Ford * address@hidden 




reply via email to

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