mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 20:51:44 +00:00
commands: use in instead of os.Stdin in hijack
This commit is contained in:
+1
-1
@@ -1443,7 +1443,7 @@ func (cli *DockerCli) hijack(method, path string, setRawTerminal bool, in *os.Fi
|
||||
return err
|
||||
}
|
||||
|
||||
if !term.IsTerminal(os.Stdin.Fd()) {
|
||||
if !term.IsTerminal(in.Fd()) {
|
||||
if err := <-sendStdin; err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user