Henrik Nordstrom wrote:
> Salil Kumar wrote:
>
> > I need to change the time of symlink only.
> > Any other suggestions ?
>
> I think the only way is to use the time/date hack.
>
> 1. remove the link
> 2. set the clock to when the link should be modified
> 3. recreate the link
> 4. reset the clock to current date/time.
Thanks for the suggestion, but If we change system time, and if the next
CPU slice goesto some utility acting on system time, (cron jobs etc.)
will not this solution work adversely ?
Currenty I am working on a restore solution, I can restore all files
correcty,
but when I go back to change dates on the restored data, I cannot do it
for symbolic links.
>
>
> There are wery few syscalls that affects symbolic links besides
> symlink(), lstat() and readlink(). Of these symlink() is the only one
> that can modify the modification date, and only to the current
> date/time.
>
> ---
> Henrik Nordstrom