summaryrefslogtreecommitdiff
path: root/pkg/varlinkapi
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-09-24 13:43:44 -0500
committerbaude <bbaude@redhat.com>2019-09-24 13:43:44 -0500
commit61a226fbd51de015e1753df451a2c67a689caf69 (patch)
tree84ac924a433f37d5fb4d40df2cef7b3705e8277b /pkg/varlinkapi
parent83b2348313c52cc3e20d72285a9d81d3d72c2d5d (diff)
downloadpodman-61a226fbd51de015e1753df451a2c67a689caf69.tar.gz
podman-61a226fbd51de015e1753df451a2c67a689caf69.tar.bz2
podman-61a226fbd51de015e1753df451a2c67a689caf69.zip
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>
Diffstat (limited to 'pkg/varlinkapi')
-rw-r--r--pkg/varlinkapi/attach.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/varlinkapi/attach.go b/pkg/varlinkapi/attach.go
index 3bd487849..f8557ae0c 100644
--- a/pkg/varlinkapi/attach.go
+++ b/pkg/varlinkapi/attach.go
@@ -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)