Logfile is write only in V1.4 #5346
Labels
good first issue
A well-defined bug or improvement with sufficient context which should be approachable for new contr
type/bug
Feature does not function as expected
logfile is write only in Redhat Linux
OS: Redhat Enterprise Linux Server release 6.9 (Santiago)
Consul: Ver1.4
Reproduction Steps
Steps to reproduce this issue, eg:
then you can find that all log files are write only. (0200)
Reason:
In file consul/logger/logfile.go, Line57:
os.OpenFile(newfilePath, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 640)
I find that the last number is 640.
But in golang doc, the sample is 0640.
So I think that it should be fixed.
Golang doc: https://golang.org/pkg/os/#OpenFile
The text was updated successfully, but these errors were encountered: