3dd3120a8a changed open mode from Write to ReadWrite, which stopped truncating files. This could be noticed by building a slightly older branch, as compiling it gave compile errors.
3dd3120a8a
is
==
lint-ports.py