From: Michael Roth <mdroth@linux.vnet.ibm.com>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, Yuri Pudgorodskiy <yur@virtuozzo.com>,
"Denis V. Lunev" <den@openvz.org>
Subject: Re: [Qemu-devel] [PULL for-2.5 2/2] qga: allow to lookup in PATH from the passed envp for guest-exec
Date: Sat, 14 Nov 2015 08:35:16 -0600 [thread overview]
Message-ID: <20151114143516.7353.9765@loki> (raw)
In-Reply-To: <1447454404-10754-3-git-send-email-mdroth@linux.vnet.ibm.com>
Quoting Michael Roth (2015-11-13 16:40:04)
> From: Yuri Pudgorodskiy <yur@virtuozzo.com>
>
> This was original behaviour before GLIB gspawn() rework and we rely on
> this behaviour.
>
> Signed-off-by: Yuri Pudgorodskiy <yur@virtuozzo.com>
> Signed-off-by: Denis V. Lunev <den@openvz.org>
> CC: Michael Roth <mdroth@linux.vnet.ibm.com>
> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
> ---
> qga/commands.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/qga/commands.c b/qga/commands.c
> index 7644ca0..559f18f 100644
> --- a/qga/commands.c
> +++ b/qga/commands.c
> @@ -400,7 +400,8 @@ GuestExec *qmp_guest_exec(const char *path,
> argv = guest_exec_get_args(&arglist, true);
> envp = has_env ? guest_exec_get_args(env, false) : NULL;
>
> - flags = G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD;
> + flags = G_SPAWN_SEARCH_PATH | G_SPAWN_SEARCH_PATH_FROM_ENVP |
Sorry, just noticed this was only added around 2.33. I'll send updated
PULL that adds a version check.
> + G_SPAWN_DO_NOT_REAP_CHILD;
> if (!has_output) {
> flags |= G_SPAWN_STDOUT_TO_DEV_NULL | G_SPAWN_STDERR_TO_DEV_NULL;
> }
> --
> 1.9.1
>
next prev parent reply other threads:[~2015-11-14 14:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-13 22:40 [Qemu-devel] [PULL for-2.5 0/2] qemu-ga patch queue for 2.5 Michael Roth
2015-11-13 22:40 ` [Qemu-devel] [PULL for-2.5 1/2] qga: fix for default env processing for guest-exec Michael Roth
2015-11-13 22:40 ` [Qemu-devel] [PULL for-2.5 2/2] qga: allow to lookup in PATH from the passed envp " Michael Roth
2015-11-14 14:35 ` Michael Roth [this message]
2015-11-16 12:09 ` [Qemu-devel] [PULL for-2.5 0/2] qemu-ga patch queue for 2.5 Peter Maydell
2015-11-16 19:00 ` Michael Roth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151114143516.7353.9765@loki \
--to=mdroth@linux.vnet.ibm.com \
--cc=den@openvz.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=yur@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).