[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/10] scsi: Use qemu_get_runtime_dir()
From: |
Akihiko Odaki |
Subject: |
[PATCH 06/10] scsi: Use qemu_get_runtime_dir() |
Date: |
Thu, 10 Nov 2022 15:23:25 +0900 |
qemu_get_runtime_dir() is used to construct the default paths.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
scsi/qemu-pr-helper.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scsi/qemu-pr-helper.c b/scsi/qemu-pr-helper.c
index 196b78c00d..adb7baecaa 100644
--- a/scsi/qemu-pr-helper.c
+++ b/scsi/qemu-pr-helper.c
@@ -77,10 +77,10 @@ static int gid = -1;
static void compute_default_paths(void)
{
- g_autofree char *state = qemu_get_local_state_dir();
+ g_autofree char *run = qemu_get_runtime_dir();
- socket_path = g_build_filename(state, "run", "qemu-pr-helper.sock", NULL);
- pidfile = g_build_filename(state, "run", "qemu-pr-helper.pid", NULL);
+ socket_path = g_build_filename(run, "qemu-pr-helper.sock", NULL);
+ pidfile = g_build_filename(run, "qemu-pr-helper.pid", NULL);
}
static void usage(const char *name)
--
2.38.1
- [PATCH 00/10] util: Introduce qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 01/10] qga: Remove platform GUID definitions, Akihiko Odaki, 2022/11/10
- [PATCH 02/10] util: Introduce qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 03/10] ivshmem-server: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 04/10] contrib/rdmacm-mux: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 05/10] qga: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 06/10] scsi: Use qemu_get_runtime_dir(),
Akihiko Odaki <=
- [PATCH 07/10] virtiofsd: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 09/10] util: Remove qemu_get_local_state_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 10/10] spice-app: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10
- [PATCH 08/10] module: Use qemu_get_runtime_dir(), Akihiko Odaki, 2022/11/10