From a31febf5701a55614cc323a25039cd135fd4e1c5 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Mon, 29 Oct 2018 11:16:49 -0700 Subject: [PATCH] cmd/awstester/eks: fix permission bits Signed-off-by: Gyuho Lee --- cmd/awstester/eks/prow.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/awstester/eks/prow.go b/cmd/awstester/eks/prow.go index 39546bc27..3a7a2c307 100644 --- a/cmd/awstester/eks/prow.go +++ b/cmd/awstester/eks/prow.go @@ -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) } @@ -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) } @@ -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) }