kvm tools: Fix kvm__set_dir() to include trailing slash

All of our code expects kvm__get_dir() to return a path with a trailing slash.
This fixes "kvm run" and "kvm setup" making directories such as
"$HOME/.kvmtoolsdefault" for guest rootfs.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Pekka Enberg
2015-06-01 16:39:48 +01:00
committed by Will Deacon
parent 2bc995fbc0
commit f76a328537
+2
View File
@@ -94,6 +94,8 @@ static void set_dir(const char *fmt, va_list args)
if (!realpath(tmp, kvm_dir))
die("Unable to set KVM tool directory");
strcat(kvm_dir, "/");
}
void kvm__set_dir(const char *fmt, ...)