httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe M \. Chiasson" <go...@cpan.org>
Subject [Patch] Bug 6640 : replacing tmpnam() by mkstemp() in htpasswd.c and htdigest.c
Date Sat, 03 Mar 2001 00:27:19 GMT
Here are 4 patches to adress bug 6690, wich is:

htdigest.o(.text+0x501): the use of `tmpnam' is dangerous, better use `mkstemp'
htpasswd.o(.text+0xdd0): the use of `tmpnam' is dangerous, better use `mkstemp'

The first 2 patches simply apply the standard intentation to both files.
 indent -i4 -npsl -di0 -br -nce -d0 -cli0 -npcs -nfc1

Then, the other 2 patches replace tmpnam() with mkstemp, as suggested,  preserving the same
behaviour and error handling.

Works & tested on RH Linux 5.2, 6.1 and 7.0
-- 
+-----------------------------------------------+
| Philippe M. Chiasson  <gozer@cpan.org>        |
| SmartWorker http://www.smartworker.org        |
|     IM : gozerhbe  ICQ : gozer/18279998       |
|   64.8% computer corrupt according to         |
| http://www.freespeech.org/ljk/purity.html     |
+-----------------------------------------------+
Yes, you can think of almost everything as a function, but
this may upset your wife. 
	-- Larry Wall

perl -e '$$=\${gozer};{$_=unpack(P26,pack(L,$$));/^Just Another Perl Hacker!\n$/&&print||$$++&&redo}'

Mime
View raw message