oslib-posix: relocate path to /var
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
f4f5ed2cbd
commit
fcb4f59c87
@ -339,8 +339,10 @@ int qemu_pipe(int pipefd[2])
|
|||||||
char *
|
char *
|
||||||
qemu_get_local_state_pathname(const char *relative_pathname)
|
qemu_get_local_state_pathname(const char *relative_pathname)
|
||||||
{
|
{
|
||||||
return g_strdup_printf("%s/%s", CONFIG_QEMU_LOCALSTATEDIR,
|
g_autofree char *dir = g_strdup_printf("%s/%s",
|
||||||
relative_pathname);
|
CONFIG_QEMU_LOCALSTATEDIR,
|
||||||
|
relative_pathname);
|
||||||
|
return get_relocated_path(dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
void qemu_set_tty_echo(int fd, bool echo)
|
void qemu_set_tty_echo(int fd, bool echo)
|
||||||
|
Loading…
Reference in New Issue
Block a user