[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] qio: fix command spawn RDONLY/WRONLY
From: |
marcandre . lureau |
Subject: |
[PATCH] qio: fix command spawn RDONLY/WRONLY |
Date: |
Thu, 1 Sep 2022 14:11:20 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
The in/out handling is inverted, although nothing seemed to notice that yet.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
io/channel-command.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/io/channel-command.c b/io/channel-command.c
index 9f2f4a1793..ed17b44f74 100644
--- a/io/channel-command.c
+++ b/io/channel-command.c
@@ -79,10 +79,10 @@ qio_channel_command_new_spawn(const char *const argv[],
flags = flags & O_ACCMODE;
if (flags == O_RDONLY) {
- stdinnull = true;
+ stdoutnull = true;
}
if (flags == O_WRONLY) {
- stdoutnull = true;
+ stdinnull = true;
}
if (stdinnull || stdoutnull) {
--
2.37.2
- [PATCH] qio: fix command spawn RDONLY/WRONLY,
marcandre . lureau <=