mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-05 21:21:54 +00:00
kvm tools: Fix 'kvm run' when run the first time
The realpath() function returns NULL if directory does not exists. This patch changes kvm__set_dir() to call mkdir() to make sure the directory is there. This fixes 'kvm run' breakage when run the very first time. Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
committed by
Will Deacon
parent
fa0022d276
commit
2bc995fbc0
Reference in New Issue
Block a user