Skip to content

Commit 5d4c121

Browse files
committed
sshutil: Quote control socket path.
The path may contain spaces (such as "Application Support"); ensure that it can be used correctly by ssh. Signed-off-by: Mark Yen <[email protected]>
1 parent 87286e2 commit 5d4c121

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)