On 2007-08-19 12:40:47 -0600, Bob Proulx wrote: > Vincent Lefevre wrote: > > There seems to be no way to change the timestamps of a symbolic link > > with a shell command. > > There may be no way to change the timestamps of a symbolic link with a > compiled C program. :-)
OK, it seems that the utime(2) man page is misleading. It says: utime, utimes - change access and/or modification times of an inode utime() changes the access and modification times of the inode speci- fied by filename to the actime and modtime fields of buf respectively. Since a symlink has its own inode, I'd really thought that this was this inode that was modified. At least POSIX is clear (it uses the term "file" and says that symbolic links are followed). > For what purpose would you want to change the timestamp of a symlink? For testing. I noticed a bug in VLC that occurred on some symbolic link and I wanted to know the cause, and in particular if this was related to the timestamp (but now the bug no longer occurs while I didn't change anything). -- Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)