templates / branches--on commit write_entry(): use fstat() instead of lstat() when file is open (e4c7292)
   1: this is just to ensure the directory exists.