TemplateInstantiate creates its generated file with default mode, 0666. It should create it with the same mode as the source template file.
Log in to post a comment.