From a52917a37dcc40eda1ff5034103d4a89883de2aa Mon Sep 17 00:00:00 2001 From: Anton Kovalenko Date: Thu, 30 May 2024 13:38:09 +0300 Subject: [PATCH] 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. --- caddy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddy.go b/caddy.go index 1e0eacd2b..27acabb12 100644 --- a/caddy.go +++ b/caddy.go @@ -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 }