Browse Source
Use 600 instead of 644 for UUID file
Are you happy, linter?
master
Matthew Holt
4 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
1 additions and
1 deletions
-
caddy.go
|
|
@ -675,7 +675,7 @@ func InstanceID() (uuid.UUID, error) { |
|
|
|
if err != nil { |
|
|
|
return uuid, err |
|
|
|
} |
|
|
|
err = ioutil.WriteFile(uuidFilePath, []byte(uuid.String()), 0644) |
|
|
|
err = ioutil.WriteFile(uuidFilePath, []byte(uuid.String()), 0600) |
|
|
|
return uuid, err |
|
|
|
} else if err != nil { |
|
|
|
return [16]byte{}, err |
|
|
|