Skip to content

Commit 5275369

Browse files
authored
Merge pull request #21 from alexsn/chmod-x
Remove executable bit from generated files
2 parents 2502276 + 9bb9acc commit 5275369

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/interfacer/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func main() {
8787
}
8888
f := os.Stdout
8989
if *output != "-" {
90-
f, err = os.OpenFile(*output, os.O_TRUNC|os.O_CREATE|os.O_WRONLY, 0755)
90+
f, err = os.OpenFile(*output, os.O_TRUNC|os.O_CREATE|os.O_WRONLY, 0644)
9191
if err != nil {
9292
die(err)
9393
}

cmd/structer/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func run() (err error) {
123123

124124
w := os.Stdout
125125
if *output != "-" {
126-
w, err = os.OpenFile(*output, os.O_TRUNC|os.O_CREATE|os.O_WRONLY, 0755)
126+
w, err = os.OpenFile(*output, os.O_TRUNC|os.O_CREATE|os.O_WRONLY, 0644)
127127
if err != nil {
128128
return err
129129
}

0 commit comments

Comments
 (0)