]> xenbits.xensource.com Git - libvirt.git/commit
util: correct retry path in virFileOperation
authorEric Blake <eblake@redhat.com>
Wed, 2 Mar 2011 23:25:57 +0000 (16:25 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 3 Mar 2011 15:12:08 +0000 (08:12 -0700)
commitd152f647606a86992b775c4241ba09dce47fd063
tree81b1b13f7def96a99bbbb9e1916783c6a7bfbf9f
parente5f3b90e975a21222985641abb4ebaef0e616714
util: correct retry path in virFileOperation

In virFileOperation, the parent does a fallback to a non-fork
attempt if it detects that the child returned EACCES.  However,
the child was calling _exit(-EACCES), which does _not_ appear
as EACCES in the parent.

* src/util/util.c (virFileOperation): Correctly pass EACCES from
child to parent.
src/util/util.c