MantisBT - Doomseeker
View Issue Details
0003386Doomseeker[All Projects] Bugpublic2018-02-26 08:182018-10-27 22:55
WubTheCaptain 
Blzut3 
normalminorhave not tried
closedfixed 
x86_64Debian GNU/Linuxbuster/sid
1.1 
1.21.2 
0003386: updaterevision: gcc compiler warns of tempnam usage, recommends mkstemp
Attempting to compile Doomseeker 1.1 or 1.2-beta (revision 180226-0624) will have make output this warning to stderr:

CMakeFiles/updaterevision.dir/updaterevision.o: In function `main':
updaterevision.c:(.text+0x140): warning: the use of `tempnam' is dangerous, better use `mkstemp'
COMPILE.txt, look for stderr messages during make.
gcc (Debian 7.3.0-5) 7.3.0
No tags attached.
related to 0003497closed WubTheCaptain updaterevision: Printing HG_REVISION_NUMBER uses incorrect typedef formatting for hgdate 
Issue History
2018-02-26 08:18WubTheCaptainNew Issue
2018-02-26 08:19WubTheCaptainDescription Updatedbug_revision_view_page.php?rev_id=11432#r11432
2018-02-26 08:20WubTheCaptainOS => Debian GNU/Linux
2018-02-26 08:20WubTheCaptainOS Version => buster/sid
2018-02-26 08:20WubTheCaptainPlatform => x86_64
2018-02-27 12:05DuskNote Added: 0019097
2018-03-04 07:25Blzut3Assigned To => Blzut3
2018-03-04 07:25Blzut3Statusnew => assigned
2018-03-04 07:25Blzut3Target Version => 1.2
2018-03-04 09:10Blzut3Note Added: 0019126
2018-03-04 09:10Blzut3Statusassigned => needs testing
2018-03-04 10:32WubTheCaptainNote Added: 0019130
2018-03-04 10:32WubTheCaptainStatusneeds testing => resolved
2018-03-04 10:32WubTheCaptainFixed in Version => 1.2
2018-03-04 10:32WubTheCaptainResolutionopen => fixed
2018-03-04 19:35ZalewaNote Added: 0019137
2018-09-18 21:45WubTheCaptainRelationship addedrelated to 0003497
2018-10-27 22:55WubTheCaptainStatusresolved => closed

Notes
(0019097)
Dusk   
2018-02-27 12:05   
Zandronum has a newer updaterevision that uses popen to directly stream in the output and does not use temporary files.
(0019126)
Blzut3   
2018-03-04 09:10   
Updated to latest version from Zandronum'https://bitbucket.org/Doomseeker/doomseeker/commits/eb2a08c6a03d23ab9aca8c894dd115dbbe60d7d2 [^]'
(0019130)
WubTheCaptain   
2018-03-04 10:32   
Works for me. The compile warning is gone and this is the about dialog I get with the latest source:

Quote from About Doomseeker
1.2~beta-180304-0909M
f9a3f83d2684
Revision: 1520154549
(0019137)
Zalewa   
2018-03-04 19:35   
Small patch fixing compilations on Windows:'https://bitbucket.org/Doomseeker/doomseeker/commits/6310023c082f211662a72e362e49fe364fccdad1 [^]'