]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virfile: Check for existence of dir in virFileDeleteTree
authorJohn Ferlan <jferlan@redhat.com>
Tue, 15 Sep 2015 20:33:36 +0000 (16:33 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 16 Sep 2015 15:23:16 +0000 (11:23 -0400)
commitb421a70811b15a2d1853ee7e47069fdef83f7f22
treec180531b63f7f9378281127a4ed42f15465ecc88
parent41d4104d3ee52e1caea3340129141cf82971942f
virfile: Check for existence of dir in virFileDeleteTree

Commit id 'f1f68ca33' added code to remove the directory paths for
auto-generated sockets, but that code could be called before the
paths were created resulting in generating error messages from
virFileDeleteTree indicating that the file doesn't exist.

Rather than "enforce" all callers to make the non-NULL and existence
checks, modify the virFileDeleteTree API to silently ignore NULL on
input and non-existent directory trees.
src/qemu/qemu_process.c
src/util/virfile.c
tests/virhostdevtest.c
tests/virscsitest.c