Skip to content

Commit a52917a

Browse files
authored
core: MkdirAll appDataDir in InstanceID with 0o700 (#6340)
appDataDir components should be searchable (u+x) when they are created, or else Caddy is unable to start with an empty HOME.
1 parent e6f46c8 commit a52917a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

caddy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ func InstanceID() (uuid.UUID, error) {
869869
if err != nil {
870870
return uuid, err
871871
}
872-
err = os.MkdirAll(appDataDir, 0o600)
872+
err = os.MkdirAll(appDataDir, 0o700)
873873
if err != nil {
874874
return uuid, err
875875
}

0 commit comments

Comments
 (0)