diff options
author | Angel Guzman Maeso <shakaran@gmail.com> | 2013-08-27 21:29:01 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2013-08-27 21:29:01 +0200 |
commit | 7335eebea6dd43581d4650a8818b06383ab89901 (patch) | |
tree | 043da39864bf345860068352cdff798f13ccfb04 /apt-pkg/contrib/md5.h | |
parent | a5a5dd04bb1b4a5dd406cfe6c335b3965ee07f28 (diff) |
replace usage of potential dangerous mktemp with mkstemp
Avoid the warning "the use of `mktemp' is dangerous,
better use `mkstemp' or `mkdtemp'". It is not strictly necessary to
change the usage from a security point of view here, but mktemp is
also removed from the standard since POSIX.1-2008.
The mkostemp call returns a file descriptor the logic for
TemporaryFileName has been changed accordingly to get the same results.
The file permissions are corrected by using fchmod() as the default for
FileFd is 666 while mkstemp creates files with 600 by default.
Diffstat (limited to 'apt-pkg/contrib/md5.h')
0 files changed, 0 insertions, 0 deletions