Re: cp -a not preserving timestamps on symlinks
Alan Ford <[email protected]> Tue, 27 May 2003 12:21:51 +0100
| Newsgroups | gmane.comp.gnu.fileutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
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 * [email protected]