Skip to content

Commit

Permalink
cli/haproxy: don't make the output file executable
Browse files Browse the repository at this point in the history
Release note (bug fix): The file generated by `cockroach gen haproxy`
does not get an executable bit any more. The executable bit
was previously placed in error.
  • Loading branch information
knz committed Jan 16, 2020
1 parent 6cda8dc commit c787f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/haproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func runGenHAProxyCmd(cmd *cobra.Command, args []string) error {
var f *os.File
if haProxyPath == "-" {
w = os.Stdout
} else if f, err = os.OpenFile(haProxyPath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0755); err != nil {
} else if f, err = os.OpenFile(haProxyPath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644); err != nil {
return err
} else {
w = f
Expand Down

0 comments on commit c787f74

Please sign in to comment.