libabigail/tools
Dodji Seketeli f681c33970 Remove use of tmpnam from abilint
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>
2015-07-20 10:06:17 +02:00
..
.gitignore Add .gitignore files. 2014-09-12 11:05:01 +02:00
abiar.cc Adjust archive-related code for the recent addition of tools_utils::* 2015-01-13 11:02:10 +01:00
abicompat.cc Handle the life time of the map of canonical types 2015-07-09 11:12:40 +02:00
abidiff.cc Guess RPM file type 2015-07-17 10:07:37 +02:00
abidw.cc Handle the life time of the map of canonical types 2015-07-09 11:12:40 +02:00
abilint.cc Remove use of tmpnam from abilint 2015-07-20 10:06:17 +02:00
abipkgdiff.cc Try to avoid a race condition when abipkgdiff extracts packages. 2015-07-20 00:02:00 +02:00
abisym.cc Fix symbols comparison 2015-06-02 00:07:02 +02:00
binilint.cc Update copyright years 2015-01-07 17:52:10 +01:00
Makefile.am Initial skeleton of abipkgdiff tool 2015-07-17 10:07:37 +02:00