Skip to content

Commit a4abd16

Browse files
authored
Merge pull request #169 from mook-as/home-space
sshutil: Quote control socket path.
2 parents 87286e2 + 5d4c121 commit a4abd16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sshutil/sshutil.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func SSHArgs(instDir string, useDotSSH bool) ([]string, error) {
164164
args = append(args,
165165
"-l", u.Username, // guest and host have the same username, but we should specify the username explicitly (#85)
166166
"-o", "ControlMaster=auto",
167-
"-o", "ControlPath="+controlSock,
167+
"-o", fmt.Sprintf("ControlPath=\"%s\"", controlSock),
168168
"-o", "ControlPersist=5m",
169169
)
170170
return args, nil

0 commit comments

Comments
 (0)