diff --git a/cmd/interfacer/main.go b/cmd/interfacer/main.go index 8dbc36e..5f0b2f7 100644 --- a/cmd/interfacer/main.go +++ b/cmd/interfacer/main.go @@ -87,7 +87,7 @@ func main() { } f := os.Stdout if *output != "-" { - f, err = os.OpenFile(*output, os.O_TRUNC|os.O_CREATE|os.O_WRONLY, 0755) + f, err = os.OpenFile(*output, os.O_TRUNC|os.O_CREATE|os.O_WRONLY, 0644) if err != nil { die(err) } diff --git a/cmd/structer/main.go b/cmd/structer/main.go index ec81a46..476eb29 100644 --- a/cmd/structer/main.go +++ b/cmd/structer/main.go @@ -123,7 +123,7 @@ func run() (err error) { w := os.Stdout if *output != "-" { - w, err = os.OpenFile(*output, os.O_TRUNC|os.O_CREATE|os.O_WRONLY, 0755) + w, err = os.OpenFile(*output, os.O_TRUNC|os.O_CREATE|os.O_WRONLY, 0644) if err != nil { return err }