diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-13 14:02:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 14:02:53 -0400 |
commit | cc9491447479844ffdd27ba1c310d7e0a5a59a79 (patch) | |
tree | 229d9cdd5a75ae475084d8c480bf36493977e708 | |
parent | 73422de08d85d790397fe821f5fc6d5a05e30643 (diff) | |
parent | c23f81fab6183892a3565e6b2a818ad9db22421c (diff) | |
download | podman-cc9491447479844ffdd27ba1c310d7e0a5a59a79.tar.gz podman-cc9491447479844ffdd27ba1c310d7e0a5a59a79.tar.bz2 podman-cc9491447479844ffdd27ba1c310d7e0a5a59a79.zip |
Merge pull request #11550 from atykhyy/patch-2
Fix #11444: remote breaks with stdout redirection
-rw-r--r-- | pkg/terminal/console_windows.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/terminal/console_windows.go b/pkg/terminal/console_windows.go index 08e66cb3a..9a636d681 100644 --- a/pkg/terminal/console_windows.go +++ b/pkg/terminal/console_windows.go @@ -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 |