mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 10:31:35 +00:00
nc-vsock: output to stdout rather than stdin
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
This commit is contained in:
parent
8fdebc091c
commit
ce5c85f7c1
@ -212,6 +212,8 @@ static int xfer_data(int in_fd, int out_fd)
|
||||
ssize_t nbytes;
|
||||
ssize_t remaining;
|
||||
|
||||
if (out_fd == STDIN_FILENO) out_fd = STDOUT_FILENO;
|
||||
|
||||
nbytes = read(in_fd, buf, sizeof(buf));
|
||||
if (nbytes <= 0) {
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user