Fix typo in util_linux.go

This commit is contained in:
Ali Farah 2020-06-14 13:53:47 +10:00
parent 35fc65dc2c
commit 81b91563e4
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ func CreateListener(endpoint string) (net.Listener, error) {
return nil, fmt.Errorf("error creating socket directory %q: %v", filepath.Dir(addr), err) return nil, fmt.Errorf("error creating socket directory %q: %v", filepath.Dir(addr), err)
} }
// Create the socket on a tempfile and move it to the destination socket to handle improprer cleanup // Create the socket on a tempfile and move it to the destination socket to handle improper cleanup
file, err := ioutil.TempFile(filepath.Dir(addr), "") file, err := ioutil.TempFile(filepath.Dir(addr), "")
if err != nil { if err != nil {
return nil, fmt.Errorf("failed to create temporary file: %v", err) return nil, fmt.Errorf("failed to create temporary file: %v", err)

View File

@ -56,7 +56,7 @@ func CreateListener(endpoint string) (net.Listener, error) {
return nil, fmt.Errorf("error creating socket directory %q: %v", filepath.Dir(addr), err) return nil, fmt.Errorf("error creating socket directory %q: %v", filepath.Dir(addr), err)
} }
// Create the socket on a tempfile and move it to the destination socket to handle improprer cleanup // Create the socket on a tempfile and move it to the destination socket to handle improper cleanup
file, err := ioutil.TempFile(filepath.Dir(addr), "") file, err := ioutil.TempFile(filepath.Dir(addr), "")
if err != nil { if err != nil {
return nil, fmt.Errorf("failed to create temporary file: %v", err) return nil, fmt.Errorf("failed to create temporary file: %v", err)