[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 5/8] scsi: Use qemu_get_runtime_dir()
From: |
Akihiko Odaki |
Subject: |
[PATCH v3 5/8] scsi: Use qemu_get_runtime_dir() |
Date: |
Thu, 21 Sep 2023 16:54:19 +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 c6c6347e9b..507f23357f 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.41.0
- [PATCH v3 0/8] util: Introduce qemu_get_runtime_dir(), Akihiko Odaki, 2023/09/21
- [PATCH v3 1/8] util: Introduce qemu_get_runtime_dir(), Akihiko Odaki, 2023/09/21
- [PATCH v3 2/8] ivshmem-server: Use qemu_get_runtime_dir(), Akihiko Odaki, 2023/09/21
- [PATCH v3 3/8] contrib/rdmacm-mux: Use qemu_get_runtime_dir(), Akihiko Odaki, 2023/09/21
- [PATCH v3 4/8] qga: Use qemu_get_runtime_dir(), Akihiko Odaki, 2023/09/21
- [PATCH v3 5/8] scsi: Use qemu_get_runtime_dir(),
Akihiko Odaki <=
- [PATCH v3 6/8] module: Use qemu_get_runtime_dir(), Akihiko Odaki, 2023/09/21
- [PATCH v3 7/8] util: Remove qemu_get_local_state_dir(), Akihiko Odaki, 2023/09/21
- [PATCH v3 8/8] spice-app: Use qemu_get_runtime_dir(), Akihiko Odaki, 2023/09/21