mirror of
https://github.com/git/git.git
synced 2026-01-20 23:52:52 +00:00
fixup! mingw: spawned processes need to inherit only standard handles
When we suppress the warning that we could not restrict file handle inheritance because of known error conditions, we should really suppress the *entire* warning, not just parts of it. This was reported in https://github.com/git-for-windows/git/issues/1578#issuecomment-375692983 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
@@ -1793,7 +1793,7 @@ static pid_t mingw_spawnve_fd(const char *cmd, const char **argv, char **deltaen
|
||||
ret = CreateProcessW(*wcmd ? wcmd : NULL, wargs, NULL, NULL,
|
||||
TRUE, flags, wenvblk, dir ? wdir : NULL,
|
||||
&si.StartupInfo, &pi);
|
||||
if (ret) {
|
||||
if (ret && buf.len) {
|
||||
errno = err_win_to_posix(GetLastError());
|
||||
warning("failed to restrict file handles (%ld)\n\n%s",
|
||||
err, buf.buf);
|
||||
|
||||
Reference in New Issue
Block a user