mirror of
https://github.com/containers/podman.git
synced 2025-06-17 06:57:43 +08:00
conditionally send stdin on remote run
when running a container remotely, we should only be sending stdin when running with --interactive; otherwise use nil. Fixes: #4095 Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -65,7 +65,9 @@ func (i *LibpodAPI) Attach(call iopodman.VarlinkCall, name string, detachKeys st
|
||||
}
|
||||
|
||||
// ACK the client upgrade request
|
||||
call.ReplyAttach()
|
||||
if err := call.ReplyAttach(); err != nil {
|
||||
return call.ReplyErrorOccurred(err.Error())
|
||||
}
|
||||
|
||||
reader, writer, _, pw, streams := setupStreams(call)
|
||||
|
||||
|
Reference in New Issue
Block a user