Remove temporary directory containing arbitrary files.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 13 Apr 2011 21:02:08 +0000 (22:02 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 18 Apr 2011 21:08:15 +0000 (22:08 +0100)
commitfe03580928ecac05d71e7dc0435487c9e467b1cc
tree5f4153ec75ac3e0fe7a3545052d9202f1083fee0
parent9732939509a7ff517c29d4d172b9a0e9288b9c54
Remove temporary directory containing arbitrary files.

In preparation for caching inspection information in the temporary
directory (g->tmpdir), allow the temporary directory to contain
arbitrary files, and remove all of them when the handle is closed.

This just generalizes the previous method of cleaning up the tmpdir.
(cherry picked from commit 70975981bed8e0c01b5966c10b507bb82086e5f8)
src/guestfs.c