Skip to content

Commit

Permalink
core: MkdirAll appDataDir in InstanceID with 0o700 (#6340)
Browse files Browse the repository at this point in the history
appDataDir components should be searchable (u+x) when they are
created, or else Caddy is unable to start with an empty HOME.
  • Loading branch information
akovalenko authored May 30, 2024
1 parent e6f46c8 commit a52917a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caddy.go
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ func InstanceID() (uuid.UUID, error) {
if err != nil {
return uuid, err
}
err = os.MkdirAll(appDataDir, 0o600)
err = os.MkdirAll(appDataDir, 0o700)
if err != nil {
return uuid, err
}
Expand Down

0 comments on commit a52917a

Please sign in to comment.