]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virfile: Add extra check for direct delete in virFileRemove
authorJohn Ferlan <jferlan@redhat.com>
Wed, 30 Sep 2015 21:25:34 +0000 (17:25 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 5 Oct 2015 12:14:44 +0000 (08:14 -0400)
commitc6b32d6801e17fddb2974859145efc309c0894c9
treee45962c4d7a71a52af19bb295970cad97518b115
parent938368f8382ca94c5156c44ad85a06cf9e4f8f8f
virfile: Add extra check for direct delete in virFileRemove

Unlike create options, if the file to be removed is already in the
pool, then the uid/gid will come from the pool. If it's the same as the
currently running process, then just do the unlink/rmdir directly
rather than going through the fork processing unnecessarily
src/util/virfile.c