mirror of
https://github.com/containers/podman.git
synced 2025-06-19 08:09:12 +08:00
Merge pull request #11550 from atykhyy/patch-2
Fix #11444: remote breaks with stdout redirection
This commit is contained in:
@ -25,7 +25,7 @@ func setConsoleMode(handle windows.Handle, flags uint32) error {
|
||||
var mode uint32
|
||||
err := windows.GetConsoleMode(handle, &mode)
|
||||
if err != nil {
|
||||
return err
|
||||
return nil // not a terminal
|
||||
}
|
||||
if err := windows.SetConsoleMode(handle, mode|flags); err != nil {
|
||||
// In similar code, it is not considered an error if we cannot set the
|
||||
|
Reference in New Issue
Block a user