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.

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

Reply via email to