Don Lewis
d7807d5167
Fix Coverity CID 978183 Resource leak in rexec().
...
Close the socket if connect() fails to avoid leaking it.
Reported by: Coverity
CID: 978183
MFC after: 1 week
2016-05-25 07:26:22 +00:00
Pedro F. Giffuni
50a7cc95da
rexec(3): use NULL instead of zero for pointers.
2016-04-18 14:37:26 +00:00
Pedro F. Giffuni
46bf2f5317
rexec(3): prevent uninitialized access to "port" variable.
...
CID: 1018716 (and clang static checker)
2015-02-16 21:35:29 +00:00
Roman Divacky
b9c4b6b4df
Add a missing parameter to ruserpass(). According to C99 6.9.1p7
...
K&R function is not a prototype but this is a bad style. GCC accepts
this other compilers warn or reject this.
Approved by: kib (mentor)
2009-02-26 17:46:54 +00:00
Warner Losh
ee7093a640
Remove California Regent's clause 3, per letter
2007-01-09 01:02:06 +00:00
Kris Kennaway
9c9c8212ca
Return an error instead of overflowing the buffer in the case of a long
...
$HOME in ruserpass()
2000-08-04 11:15:48 +00:00
Jordan K. Hubbard
51295a4d3e
General -Wall warning cleanup, part I.
...
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
1996-07-12 18:57:58 +00:00
Rodney W. Grimes
6c06b4e2aa
Remove trailing whitespace.
1995-05-30 05:51:47 +00:00
Joerg Wunsch
bfb50190bb
The implementation of rexec() missed the function ruserpass(), so the
...
link stage fell over for any program that attempted to use rexec().
Ruserpass() remains undocumented; i could not find any documentation
for it on other systems.
Also added a BUGS section to the man page, stating that this function
constitutes a potential security hole (as well as the underlying
"exec" service).
Submitted by: rgrimes
Originally submitted by: agc@uts.amdahl.com (Alistair G. Crooks)
Obtained from: netbsd-bugs@NetBSD.ORG
1995-04-11 19:52:10 +00:00
Poul-Henning Kamp
f06a5580a6
add a couple of missing #include lines
1995-03-19 07:00:52 +00:00
Rodney W. Grimes
58f0484fa2
BSD 4.4 Lite Lib Sources
1994-05-27 05:00:24 +00:00