[PATCH v2][RESUBMIT] apt-pkg:contrib Avoid compiler warning about mktemp using mkostemp
Hi apt developers,
apt-pkg:contrib Avoid compiler warning about mktemp using mkostemp
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. The file permission are respected using
fchmod.
Regards,
Ángel
Attachment:
0001-apt-pkg-contrib-Avoid-compiler-warning-about-mktemp-.patch
Description: Binary data
Reply to: