am f8b0743e: Merge "init: fix write_file checkreqprot logic error"

* commit 'f8b0743ef418c15fe622143a6b4b42b102a07803':
  init: fix write_file checkreqprot logic error