mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-19 16:30:04 +00:00
f681c33970
We were using the unsafe tmpnam function in abilint. This patch creates a helper type abigail::tools_utils::temp_file that does away with the use tmpnam in abilint. * include/abg-tools-utils.h (abigail::tools_utils::temp_file): Declare new type. (abigail::tools_utils::temp_file_sptr): New typedef. * src/abg-tools-utils.cc (temp_file::priv): Define new type. (temp_file::{temp_file, is_good, get_path, get_stream, create}): Define new member functions. * tools/abilint.cc (main): Do not use tmpnam anymore. Use the new abigail::tools_utils::temp_file type instead. Signed-off-by: Dodji Seketeli <dodji@redhat.com> |
||
---|---|---|
.. | ||
.gitignore | ||
abiar.cc | ||
abicompat.cc | ||
abidiff.cc | ||
abidw.cc | ||
abilint.cc | ||
abipkgdiff.cc | ||
abisym.cc | ||
binilint.cc | ||
Makefile.am |