Any help is appreciated.
Cheers.....,
Pavan
Unless the time you want to set it to is *now*, I don't think you can do
this in my Unix versions without writing to the disk directly. If you want
to set it to now, remove the symlink and create a new one.
Why do you need to do this, anyway? The timestamps of a symlink aren't
generally used for anything.
--
Barry Margolin, bar...@genuity.net
Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
Impossible unless you do it in a nasty way. But, why do you want to do it.?
--
Nithyanand.
Siemens, Bangalore, India.
(Opinions expressed are my own and do not reflect the opinions of my employer,
Siemens)
"What do you hope to accomplish by changing the timestamp of a
symlink??? No one
can think of any case in which the timestamp of a symlink is used for
anything."
Speaking only for myself,
Joe Durusau
The reason is that there's no Unix system call that tar could use to set
the time of a symlink. The utime() syscall follows links.
>time for symbolic link where as it restores for files & directories. Why
>symlink special?????
Most operations on symlinks are automatically propagated to the target of
the link, unless there's a need to be able to be able to operate on the
symlink itself. For instance, it's obviously necessary to be able to
remove symlinks, so unlink() doesn't follow the link. But since the times
of symlinks aren't used for anything important, utime() follows links.