Skip to content

Commit

Permalink
cmd/awstester/eks: fix permission bits
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed Oct 29, 2018
1 parent 4861d5f commit a31febf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/awstester/eks/prow.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ awstester \
*/
func prowStatusGetFunc(cmd *cobra.Command, args []string) {
if !fileutil.Exist(prowStatusGetDataDir) {
if err := os.MkdirAll(prowStatusGetDataDir, 0666); err != nil {
if err := os.MkdirAll(prowStatusGetDataDir, 0700); err != nil {
fmt.Fprintf(os.Stderr, "failed to mkdir %v\n", err)
os.Exit(1)
}
Expand All @@ -135,7 +135,7 @@ func prowStatusGetFunc(cmd *cobra.Command, args []string) {
os.Exit(1)
}
resp.Body.Close()
if err = ioutil.WriteFile(p+".html", d, 0666); err != nil {
if err = ioutil.WriteFile(p+".html", d, 0600); err != nil {
fmt.Fprintf(os.Stderr, "failed to write %q (%v)\n", p+".html", err)
os.Exit(1)
}
Expand All @@ -151,7 +151,7 @@ func prowStatusGetFunc(cmd *cobra.Command, args []string) {
os.Exit(1)
}
resp.Body.Close()
if err = ioutil.WriteFile(p+".txt", d, 0666); err != nil {
if err = ioutil.WriteFile(p+".txt", d, 0600); err != nil {
fmt.Fprintf(os.Stderr, "failed to write %q (%v)\n", p+".txt", err)
os.Exit(1)
}
Expand Down

0 comments on commit a31febf

Please sign in to comment.