mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-06 21:51:49 +00:00
kvm-tools: Don't create existed ~/.kvm-tools/ directory
it is created when the progam started(in main.c). Acked-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
committed by
Will Deacon
parent
5173b4af22
commit
898b234833
@@ -138,8 +138,6 @@ static int kvm__create_socket(struct kvm *kvm)
|
||||
if (!kvm->name)
|
||||
return -1;
|
||||
|
||||
sprintf(full_name, "%s", kvm__get_dir());
|
||||
mkdir(full_name, 0777);
|
||||
sprintf(full_name, "%s/%s.sock", kvm__get_dir(), kvm->name);
|
||||
if (access(full_name, F_OK) == 0)
|
||||
die("Socket file %s already exist", full_name);
|
||||
|
||||
Reference in New Issue
Block a user