am 39e01fc2: Add a mode to the open(2) call when creating the output file.

* commit '39e01fc213f81eb7366324d04d449fb9a07e6e55':
  Add a mode to the open(2) call when creating the output file.