safesocket: gofmt

Was developed on a random machine without my normal environment.
pull/238/head
Brad Fitzpatrick 5 years ago
parent fee2d9fad4
commit 5362e952e1

@ -88,10 +88,10 @@ func listen(path string, port uint16) (ln net.Listener, _ uint16, err error) {
// * we return the net.Conn and the caller speaks the normal protocol // * we return the net.Conn and the caller speaks the normal protocol
func connectMacOSAppSandbox() (net.Conn, error) { func connectMacOSAppSandbox() (net.Conn, error) {
out, err := exec.Command("lsof", out, err := exec.Command("lsof",
"-n", // numeric sockets; don't do DNS lookups, etc "-n", // numeric sockets; don't do DNS lookups, etc
"-a", // logical AND remaining options "-a", // logical AND remaining options
fmt.Sprintf("-u%d", os.Getuid()), // process of same user only fmt.Sprintf("-u%d", os.Getuid()), // process of same user only
"-c", "IPNExtension", // starting with IPNExtension "-c", "IPNExtension", // starting with IPNExtension
"-F", // machine-readable output "-F", // machine-readable output
).Output() ).Output()
if err != nil { if err != nil {

Loading…
Cancel
Save