Skip to content

Commit

Permalink
Stricter permissions on directories that are created
Browse files Browse the repository at this point in the history
  • Loading branch information
ipmb committed Mar 1, 2022
1 parent 62c4792 commit 39c9827
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ var dbDumpCmd = &cobra.Command{
if dbOutputFile != "" {
dir, _ := filepath.Split(dbOutputFile)
if dir != "" {
os.MkdirAll(dir, 0755)
os.MkdirAll(dir, 0750)
}
}
task, getObjectInput, err := app.DBDump()
Expand Down
2 changes: 1 addition & 1 deletion cmd/docgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var docgenCmd = &cobra.Command{
Short: "generate command documentation as markdown",
Hidden: true,
Run: func(cmd *cobra.Command, args []string) {
checkErr(os.MkdirAll(directory, os.FileMode(0755)))
checkErr(os.MkdirAll(directory, os.FileMode(0750)))
identity := func(s string) string { return s }
checkErr(doc.GenMarkdownTreeCustom(rootCmd, directory, filePrepender, identity))
},
Expand Down

0 comments on commit 39c9827

Please sign in to comment.