OSDN Git Service

Fix exec migration on Windows (w32+w64).
authorJohn Berberian, Jr <jeb.study@gmail.com>
Mon, 16 Jan 2023 01:34:21 +0000 (20:34 -0500)
committerJuan Quintela <quintela@redhat.com>
Thu, 2 Mar 2023 16:06:27 +0000 (17:06 +0100)
commitc31772ad6883533757d2a7dfe9ce24325e3ec16c
tree1fd8797d43ad6bd390f2eb9e2524b03d7fe770b8
parentabe2c4bdb65e8dd9cb2f01c355baa394bf49a8af
Fix exec migration on Windows (w32+w64).

* Use cmd instead of /bin/sh on Windows.

* Try to auto-detect cmd.exe's path, but default to a hard-coded path.

Note that this will require that gspawn-win[32|64]-helper.exe and
gspawn-win[32|64]-helper-console.exe are included in the Windows binary
distributions (cc: Stefan Weil).

Signed-off-by: "John Berberian, Jr" <jeb.study@gmail.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/exec.c