lib: Add guestfs___remove_tmpdir helper function.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 23 Dec 2011 10:33:25 +0000 (10:33 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 23 Dec 2011 10:35:34 +0000 (10:35 +0000)
commit690ff694ca6db586c06ec484ea158261c156aa2f
tree0b2de2288deb1b6af1b51519da6cf8293ff9cfde
parent486cafd4acf4945bbf3fea541eaa320f5c419406
lib: Add guestfs___remove_tmpdir helper function.

This function does 'rm -rf <dir>' for temporary directories, safely
working if '<dir>' contains shell meta-characters.

Replace existing code for removing directories with this.
src/appliance.c
src/filearch.c
src/guestfs-internal.h
src/guestfs.c
src/launch.c