Merge pull request #2258 from mlaventure/fix-stupid-typo

Fix typo in CreateUnixSocket error message
This commit is contained in:
Michael Crosby 2018-03-30 16:44:34 -04:00 committed by GitHub
commit 1a9f9e65b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ import (
func CreateUnixSocket(path string) (net.Listener, error) { func CreateUnixSocket(path string) (net.Listener, error) {
// BSDs have a 104 limit // BSDs have a 104 limit
if len(path) > 104 { if len(path) > 104 {
return nil, errors.Errorf("%q: unix socket path too long (> 106)", path) return nil, errors.Errorf("%q: unix socket path too long (> 104)", path)
} }
if err := os.MkdirAll(filepath.Dir(path), 0660); err != nil { if err := os.MkdirAll(filepath.Dir(path), 0660); err != nil {
return nil, err return nil, err