Hi apt developers,
The fix avoid the warning "the use of `mktemp' is dangerous,
better use `mkstemp' or `mkdtemp'"· mktemp is not standard POSIX
function. This change it is only for avoid the warning, but it is
not scrictly neccesary to apply because mktemp don't do anything
unsafe in this piece of code.
Since mkostemp call return a file descriptor the logic for
TemporaryFileName has been changed for get the same results than
the original version.