[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 09/13] vl: relocate path to configuration file
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH 09/13] vl: relocate path to configuration file |
Date: |
Wed, 2 Sep 2020 10:28:39 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 |
On 9/1/20 8:20 AM, Paolo Bonzini wrote:
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> softmmu/vl.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/softmmu/vl.c b/softmmu/vl.c
> index 81e325fa44..b79de9cd66 100644
> --- a/softmmu/vl.c
> +++ b/softmmu/vl.c
> @@ -2676,8 +2676,9 @@ static int global_init_func(void *opaque, QemuOpts
> *opts, Error **errp)
> static int qemu_read_default_config_file(void)
> {
> int ret;
> + g_autofree char *file = get_relocated_path(CONFIG_QEMU_CONFDIR
> "/qemu.conf");
>
> - ret = qemu_read_config_file(CONFIG_QEMU_CONFDIR "/qemu.conf");
> + ret = qemu_read_config_file(file);
> if (ret < 0 && ret != -ENOENT) {
> return ret;
> }
>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
- Re: [PATCH 01/13] fuzz: use qemu_get_exec_dir, (continued)
- [PATCH 05/13] oslib-posix: relocate path to /var, Paolo Bonzini, 2020/09/01
- [PATCH 03/13] oslib-posix: default exec_dir to bindir, Paolo Bonzini, 2020/09/01
- [PATCH 07/13] net: relocate paths to helpers and scripts, Paolo Bonzini, 2020/09/01
- [PATCH 09/13] vl: relocate path to configuration file, Paolo Bonzini, 2020/09/01
- Re: [PATCH 09/13] vl: relocate path to configuration file,
Philippe Mathieu-Daudé <=
- [PATCH 06/13] module: relocate path to modules, Paolo Bonzini, 2020/09/01
- [PATCH 02/13] oslib: do not call g_strdup from qemu_get_exec_dir, Paolo Bonzini, 2020/09/01
- [PATCH 08/13] vl: relocate paths to data directories, Paolo Bonzini, 2020/09/01
- [PATCH 12/13] ui: relocate paths to icons and translations, Paolo Bonzini, 2020/09/01
- [PATCH 13/13] configure: use a platform-neutral prefix, Paolo Bonzini, 2020/09/01