Andriy Voskoboinyk
994558c335
Fix memory / resource leaks in usr.sbin/rpc.ypupdated/update.c
...
Re-apply r343909 to this file to get the issue fixed.
PR: 204956
Reported by: David Binderman <dcb314@hotmail.com>
MFC after: 5 days
2019-02-18 03:15:25 +00:00
Kevin Lo
fdb6437f73
Remove duplicated header files
2011-06-24 07:05:20 +00:00
Tom Rhodes
af3c679d46
Kill blank line at EOF.
2007-02-15 02:45:14 +00:00
Dag-Erling Smørgrav
dc584ddbc5
ANSIfy and remove some dead code.
...
Sponsored by: DARPA, NAI Labs
2002-02-06 15:26:07 +00:00
Dag-Erling Smørgrav
ed4d1c46a2
Apply the following mechanical transformations in preparation for
...
ansification and constification:
s{\s+__P\((\(.*?\))\)}{$1}g;
s{\(\s+}{\(}g;
s{\s+\)}{\)}g;
s{\s+,}{,}g;
s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g;
s{return ([^\(].*?);}{return ($1);}g;
s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g;
s{\s+$}{\n};g
Also add $FreeBSD$ where needed.
MFC after: 1 week
2002-02-06 13:30:31 +00:00
Brian Somers
7bc6d0158f
Fix the type of the NULL arg to execl()
...
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
Peter Wemm
97d92980a9
$Id$ -> $FreeBSD$
1999-08-28 01:35:59 +00:00
Philippe Charnier
1e96bb57a6
Use err(3). Remove multiply defined Id string.
1997-10-13 11:22:39 +00:00
Bill Paul
61c4d68781
Clobber unneeded prototypes; in particular, the redeclaration of malloc()
...
will break compilation if DESTDIR is not set. The update.c module is
actually from the Sun RPC distribution so this is really their bogon, but
I should have noticed it when I integrated the code into rpc.ypupdated.
Sung to me by: Satoshi
1997-06-06 15:47:57 +00:00
Bill Paul
40a5f74d72
Import rpc.ypupdated.
...
This program still needs work but does compile and run. It also
needs a man page.
1997-05-28 15:47:10 +00:00