[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] apt-pkg:contrib Avoid compiler warning about mktemp using mkostemp



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.

Regards,
Ángel

Attachment: 0001-apt-pkg-contrib-Avoid-compiler-warning-about-mktemp-.patch
Description: Binary data


Reply to: