Fix inconsistencies found by consistency audit of 395f76e
This commit is contained in:
@@ -56,7 +56,8 @@ func New(dataDir string, ts *tsnet.Server, token string) (*Server, error) {
|
||||
}
|
||||
// Also protect existing installations: descendants include transcripts,
|
||||
// credentials and the bearer URLs used by local agent listeners.
|
||||
if err := os.Chmod(dataDir, 0o700); err != nil {
|
||||
err = os.Chmod(dataDir, 0o700)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user