提交 dec720aa 编写于 作者: D Daniel P. Berrange 提交者: Eric Blake

virExec: fix bug in setting up child stderr/out with /dev/null

上级 aca20efb
...@@ -463,7 +463,7 @@ __virExec(const char *const*argv, ...@@ -463,7 +463,7 @@ __virExec(const char *const*argv,
int childerr = -1; int childerr = -1;
int tmpfd; int tmpfd;
if ((null = open("/dev/null", O_RDONLY)) < 0) { if ((null = open("/dev/null", O_RDWR)) < 0) {
virReportSystemError(errno, virReportSystemError(errno,
_("cannot open %s"), _("cannot open %s"),
"/dev/null"); "/dev/null");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册