Skip to content

Commit c852627

Browse files
committed
gtlsshd: Use /c, not -c, for a command string on windows
Signed-off-by: Corey Minyard <corey@minyard.net>
1 parent 8a50f13 commit c852627

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tools/gtlsshd.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,7 +2232,11 @@ new_rem_io(struct gensio *io, struct auth_data *auth)
22322232
goto out_free;
22332233
}
22342234
progv[0] = auth->ushell;
2235+
#ifdef _WIN32
2236+
progv[1] = "/c";
2237+
#else
22352238
progv[1] = "-c";
2239+
#endif
22362240
progv[2] = cmdbuf;
22372241
progv[3] = NULL;
22382242

0 commit comments

Comments
 (0)