utimes(2): changing the birth time

Knowledge Seeker knoseeker at googlemail.com
Wed May 12 17:53:41 UTC 2010


Hi,
Is there a way to set birth time to a value greater(newer) than the actual
birth time (not in the future, but not the current time)?
The man page utimes(2) says that is only possible to change to an older
value.

I saw a way to do this by opening a new file, coping the data, setting the
other attributes, then calling utimes 2 times to set the birth and the
modification time.

Is there a way to change it without creating a new file?

Thanks in advance.


-- 
Knoseeker


More information about the freebsd-hackers mailing list