[PATCH] Fix some problems with truncate and mtime semantics.