Skip to content

Commit 2dcd86b

Browse files
authored
Update main.go (#459)
シンボリックリンクになっているtfファイルが読まれた時に、ここでエラーになっている
1 parent 76d0c25 commit 2dcd86b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func run() (err error) {
6565
body := file.Body()
6666
ret := tfrbac(body)
6767

68-
wf, err := root.OpenFile(relPath, os.O_WRONLY|os.O_TRUNC, info.Mode())
68+
wf, err := root.OpenFile(relPath, os.O_WRONLY|os.O_TRUNC, info.Mode().Perm())
6969
if err != nil {
7070
return errors.Wrap(err, "Error on OpenFile")
7171
}

0 commit comments

Comments
 (0)