]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Fix 'kvm run' when run the first time
authorPekka Enberg <penberg@kernel.org>
Tue, 25 Oct 2011 20:53:14 +0000 (23:53 +0300)
committerPekka Enberg <penberg@kernel.org>
Tue, 25 Oct 2011 20:53:14 +0000 (23:53 +0300)
commitcb74799f8ce056e95ce1e7a514846fedc515424d
treec5e582cf7f20116fa11730e9d5b37343a590b580
parent64b9771575d7d909eca905e0736c537f166bc6bc
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>
tools/kvm/kvm.c