0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

Corrected permissions for UUID file

This commit is contained in:
Matthew Holt 2018-04-20 00:04:44 -06:00
parent b019501b8b
commit 518edd3cd4
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -298,7 +298,7 @@ func initTelemetry() {
newUUID := func() uuid.UUID {
id := uuid.New()
err := ioutil.WriteFile(uuidFilename, []byte(id.String()), 0644) // human-readable this way
err := ioutil.WriteFile(uuidFilename, []byte(id.String()), 0600) // human-readable as a string
if err != nil {
log.Printf("[ERROR] Persisting instance UUID: %v", err)
}