Skip to content

Commit

Permalink
Merge pull request #2675 from hashicorp/b-perms
Browse files Browse the repository at this point in the history
Fix perms to just set exec bit
  • Loading branch information
dadgar committed May 25, 2017
2 parents 28b256f + f321837 commit 44db750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ func (c *Client) init() error {

// Ensure the alloc dir exists if we have one
if c.config.AllocDir != "" {
if err := os.MkdirAll(c.config.AllocDir, 0755); err != nil {
if err := os.MkdirAll(c.config.AllocDir, 0711); err != nil {
return fmt.Errorf("failed creating alloc dir: %s", err)
}
} else {
Expand All @@ -369,7 +369,7 @@ func (c *Client) init() error {
}

// Change the permissions to have the execute bit
if err := os.Chmod(p, 0755); err != nil {
if err := os.Chmod(p, 0711); err != nil {
return fmt.Errorf("failed to change directory permissions for the AllocDir: %v", err)
}

Expand Down

0 comments on commit 44db750

Please sign in to comment.