This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

GNU GCC's f77



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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]