Am Samstag, 9. April 2011 15:30:12 schrieb Thomas Moritz:
Am Freitag, 8. April 2011 17:11:43 schrieb David Haller:
Hallo,
So konnte ich fast alles setzen, nur keine Symlinks: TZ=GMT find /path -exec touch -d "1970-01-01 00:00" {} \;
Auch hier klemmt es, die Symlinks haben die alte Zeit: TZ=GMT find /path -type l -exec touch -d "1970-01-01 00:00" {} \;
Die Links werden alle von find gelistet. Hier scheint touch nicht ranzuwollen? Gibt es da noch einen Trick?
Scheinbar nein :-( There may be no way to change the timestamps of a symbolic link with a compiled C program. :-) The operating system kernel supplies an interface to change the ownership of a symbolic link with lchown(2) but does not supply any interface to change the timestamp of a symbolic link (no lutime(2) or lutimes(2) exists) and therefore what you are asking for is not supported by the operating system kernel. The only way I know to do this on BSD like systems is to remove and recreate the symlink. MfG Th. Moritz -- To unsubscribe, e-mail: opensuse-programming-de+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming-de+help@opensuse.org