diff options
author | Paolo Bonzini | 2020-08-18 12:00:41 +0200 |
---|---|---|
committer | Paolo Bonzini | 2020-09-30 19:11:36 +0200 |
commit | fcb4f59c8794f0dea9f9b9d988a016ead5df9353 (patch) | |
tree | a9e7771270deff2f5c2b84fb0ce774f9065e3f23 /util | |
parent | cutils: introduce get_relocated_path (diff) | |
download | qemu-fcb4f59c8794f0dea9f9b9d988a016ead5df9353.tar.gz qemu-fcb4f59c8794f0dea9f9b9d988a016ead5df9353.tar.xz qemu-fcb4f59c8794f0dea9f9b9d988a016ead5df9353.zip |
oslib-posix: relocate path to /var
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/oslib-posix.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/util/oslib-posix.c b/util/oslib-posix.c index 1739930e65..f15234b5c0 100644 --- a/util/oslib-posix.c +++ b/util/oslib-posix.c @@ -339,8 +339,10 @@ int qemu_pipe(int pipefd[2]) char * qemu_get_local_state_pathname(const char *relative_pathname) { - return g_strdup_printf("%s/%s", CONFIG_QEMU_LOCALSTATEDIR, - relative_pathname); + g_autofree char *dir = g_strdup_printf("%s/%s", + CONFIG_QEMU_LOCALSTATEDIR, + relative_pathname); + return get_relocated_path(dir); } void qemu_set_tty_echo(int fd, bool echo) |