Commit Graph

49959 Commits

Author SHA1 Message Date
Peter Wemm
4a1afa49fd Try and fix the worst of some highly bogus malloc/free resource
management involving rcmd_af(), getaddrinfo(), freeaddrinfo(), etc.
We set *ahost to point to ai->canonname; and later free the ai-> stuff
and still leave the old pointers in *ahost to the freed data.
Perhaps the best way to deal with this is a static buffer or a static
strdup() that is freed on the next iteration or something.  This gives
me headaches just thinking about this.

The new 'AJ' default for malloc() tripped this up.
2000-07-11 09:31:19 +00:00
Brian Somers
040cfe28d1 Fix -auto breakage introduced with the last commit. 2000-07-11 09:26:02 +00:00
Jeroen Ruigrok van der Werven
28035b8ba8 Fix finger -s output on an user who never logged in.
This is purely a cosmetic patch.

PR:		9809
Submitted by:	se
Nagged about:	nrahlstr
2000-07-11 08:37:56 +00:00
Brian Feldman
87a478de7b One should never allocate 4-kilobyte structs and such on the interrupt
stack.  It's bad for your machine's health.

Make the two huge structs in reseed() static to prevent crashes.  This
is the bug that people have been running into and panic()ing on for the
past few days.

Reviewed by:	phk
2000-07-11 06:47:38 +00:00
Paul Saab
11128de973 Fix a bug when talking to non-freebsd machines where carriage return
was being interperated and displayed as ^M on the remote side.

Old curses used to change the behavior of the tty and how carriage
return was interperated via STDIN.  ncurses does this on a per-window
basis within the library rather than using the tty modes.  Since
talk is bypassing ncurses, it was missing the conversion.

Reviewed by:	peter
2000-07-11 01:31:39 +00:00
Brian Feldman
18b8dc18fd Fix an off-by-one error which breaks this (detected by malloc flags):
the line being read in was terminated one byte too late.
2000-07-11 00:06:44 +00:00
Stefan Eßer
62a721e79c Extend to deal with 64 bit numeric arguments. 2000-07-10 21:32:41 +00:00
Stefan Eßer
64867286e5 Extend numeric operations to support 64 bit numbers. 2000-07-10 21:30:55 +00:00
Stefan Eßer
de96f24080 Add support for 64bit integer comparisons. 2000-07-10 21:29:28 +00:00
Poul-Henning Kamp
ae74d73718 Newbusify this driver at an expense of 40 extra lines of code. 2000-07-10 19:33:41 +00:00
Alfred Perlstein
ad9bccc5f7 attrib properly.
Pointed out by: asmodai
2000-07-10 19:20:08 +00:00
Hajimu UMEMOTO
6da1b6ebda removed 'ifndef ADVAPI' parts
Obtained from:	KAME
2000-07-10 18:27:55 +00:00
Mark Murray
67205a5041 Find pod2man in the right place.
Submitted by:	aDe (Amongst others).
2000-07-10 17:42:38 +00:00
Alfred Perlstein
fb567cd9eb Document the kernel interface for accept filters.
Thanks to sheldonh for cleaning up the rough initial manpage.
2000-07-10 17:23:53 +00:00
Hajimu UMEMOTO
a00dc7b4f4 Activate mld6query. 2000-07-10 17:00:26 +00:00
Hajimu UMEMOTO
a61156e3e4 mld6query sends an IPv6 multicast listener discovery (MLD) query packet
toward the specified multicast address.

Obtained from:	KAME
2000-07-10 16:56:19 +00:00
John Baldwin
492f000557 Always install loader.4th, defaults/loader.conf, and support.4th instead of
only doing so if loader.rc does not exist.  This fixes the problem where
installworld doesn't update /boot/loader.4th, resulting in device.hints not
being loaded after updating past the config(8) changes, which resulted in
mcclock0 not being probed, and a nice kernel panic during boot.
2000-07-10 16:52:42 +00:00
Warner Losh
ce1dd19461 Remove the XE_DEBUG define. It shouldn't be defined now that things
are working.  Add a small blurb about XE_DEBUG as it might be useful
to some people troubelshooting problems in the future.

Submitted by:	"Kevin Oberman" <oberman@es.net>
2000-07-10 16:46:21 +00:00
Hajimu UMEMOTO
7487ef6243 Free chunks obtained by getaddrinfo(3).
Approved by:	des
2000-07-10 16:28:28 +00:00
Matt Jacob
cf2458c90e Beef up a bit descriptions of SCSI devices and what the drive. 2000-07-10 15:37:03 +00:00
Matt Jacob
08a7e04845 Removing commented out devices I added. 2000-07-10 15:18:20 +00:00
Poul-Henning Kamp
88bab4e40c Finish repo-copy:
Move ufs/ufs/ufs_disksubr.c to kern/subr_disklabel.c.

These functions are not UFS specific and are in fact used all over the place.
2000-07-10 13:48:06 +00:00
Hajimu UMEMOTO
80fe4a43d1 Separate parsing code of 229 replies from the code for 227 and 228.
Don't assume 227 and 228 replies enclose remote address with parentheses.
2000-07-10 10:00:20 +00:00
David E. O'Brien
b4720b889e Install the general binutils (such as `nm') info files.
Patch submitted by:	nbm
PR:	16585
Submitted by:	Assar Westerlund <assar@sics.se>
2000-07-10 09:55:29 +00:00
Kris Kennaway
b7ffba17f8 Don't call warn() with no format string. 2000-07-10 09:18:19 +00:00
Kris Kennaway
0c4d24a78f Don't call err() with no format string. 2000-07-10 09:14:15 +00:00
Kris Kennaway
3d3f014fd4 Oops, missed another printf() invocation with no format string. 2000-07-10 09:07:04 +00:00
Kris Kennaway
32d9afb622 Don't call printf() with no format string. 2000-07-10 09:05:31 +00:00
Kris Kennaway
084c79f69e Don't call warn() with no format string. 2000-07-10 08:49:28 +00:00
Kris Kennaway
cf6e06f240 Don't call err() with no format string. 2000-07-10 08:42:58 +00:00
Hajimu UMEMOTO
fa5dce6c26 Make EPSV work again. Separate parsing code of 229 replies from
the code for 227 and 228.

Submitted by:	des
2000-07-10 08:41:25 +00:00
Kris Kennaway
daad7b8c8e Don't call warn() with no format string. This is potentially exploitable, although it
would be difficult both technically and in practise.
2000-07-10 08:31:35 +00:00
MIHIRA Sanpei Yoshiro
3ce4a84317 add Billionton 56Kbps Fax Modem
PR:		18866
2000-07-10 08:31:14 +00:00
Kris Kennaway
ada79f6035 Don't call sprintf() with no format string. 2000-07-10 08:22:21 +00:00
MIHIRA Sanpei Yoshiro
0074080b44 add Ericsson DC23 GSM modem card
PR:		18962
2000-07-10 08:21:54 +00:00
Kris Kennaway
04d06bb686 Don't call warn() with no format string. 2000-07-10 08:14:18 +00:00
Kris Kennaway
66b8466826 Don't call err with no format string. 2000-07-10 08:11:52 +00:00
MIHIRA Sanpei Yoshiro
982fa16bd2 add Compaq Netelligent 10/100 PC Card
PR:		19007
2000-07-10 08:05:47 +00:00
Ollivier Robert
65c14d9dc0 Correct one reference to wd.4 by ad.4. 2000-07-10 08:01:38 +00:00
Kris Kennaway
88868b1649 Correct security hole in setproctitle(). We don't compile this code, but
having the security hole there makes my skin itch.
2000-07-10 07:30:28 +00:00
Kris Kennaway
682199d834 Don't call printf without a format string. 2000-07-10 07:13:36 +00:00
Mark Murray
fb15ada363 Provide more splsofttq() protection for the reseed task (running out of
taskqueue_swi).
2000-07-10 06:40:23 +00:00
Kris Kennaway
8c8970cf16 Don't call printf with no format string. 2000-07-10 06:40:06 +00:00
Kris Kennaway
487730cc8b Don't call printf with no format string. This is technically a security
vulnerability and could in principle be used to upload a new kernel from the
bootloader :-)
2000-07-10 06:33:55 +00:00
Brian Feldman
c98c98a822 Actually make it so this Makefile can build grot. 2000-07-10 06:10:47 +00:00
Kris Kennaway
612740bdcf Don't call printf with no format string. 2000-07-10 06:02:13 +00:00
Kris Kennaway
26eaf5dcb8 Don't call printf with no format string.
Reviewed by:	msmith
2000-07-10 05:51:56 +00:00
Kris Kennaway
c7664a87e4 Don't call printf with no format string. 2000-07-10 05:24:02 +00:00
Kris Kennaway
19a32101dd Don't call printf with no format string. 2000-07-10 05:16:59 +00:00
Matt Jacob
f919331938 Do the same thing for TurboLaser that was done for Rawhide- make room
for secondary (bridged) PCI busses by making primary PCI instances
16 units apart.
2000-07-10 02:40:49 +00:00