src/lib/destroy.c: factor out maketmpdir()

This function was called from only one place, and was doing some trickery
to only return the name of the directory created, not the full name. Then
it was used to re-create the full name back. Useless and ugly.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed