This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
GNU GCC's f77
- To: bug-gcc at gnu dot org
- Subject: GNU GCC's f77
- From: "Murakami Hiroshi" <murakami at tmca dot ac dot jp>
- Date: Sun, 1 Oct 2000 23:17:45 +0900 (JST)
This problem would already have been reported by many persons...
The source "libf2c/libI77/open.c" contains the function "tempnam"
which is believed unsafe at the race condition between temporary
files.
For example below, on FreeBSD 4.1R, the linker points out that
use of tempnam is not good.
% cat a.f
program main
end
% f77 a.f
/usr/lib/libg2c.so: warning: tempnam() possibly used unsafely;
consider using mkstemp()
% which f77
/usr/bin/f77
% f77 -v
g77 version 2.95.2 19991024 (release) (from FSF-g77 version 0.5.25 19991024 (release))
--
Murakami Hiroshi<dm@tmca.ac.jp>