Commit Graph

1923 Commits

Author SHA1 Message Date
Bill Fenner
d73c3f4796 Merge tcpdump 3.6.3 2001-07-23 23:15:44 +00:00
Bill Fenner
669c0adba2 This commit was generated by cvs2svn to compensate for changes in r80231,
which included commits to RCS files with non-trunk default branches.
2001-07-23 23:15:13 +00:00
Bill Fenner
39eaefddae Virgin import of tcpdump.org tcpdump v3.6.3 2001-07-23 23:15:13 +00:00
Kris Kennaway
a2a887b56a output_data(), output_datalen() and netflush() didn't actually guarantee
to do what they are supposed to: under some circumstances output data would
be truncated, or the buffer would not actually be flushed (possibly leading
to overflows when the caller assumes the operation succeeded).  Change the
semantics so that these functions ensure they complete the operation before
returning.

Comment out diagnostic code enabled by '-D reports' which causes an
infinite recursion and an eventual crash.

Patch developed with assistance from ru and assar.
2001-07-23 21:52:26 +00:00
Ruslan Ermilov
40e7fc1a20 More potential buffer overflow fixes.
o Fixed `nfrontp' calculations in output_data().  If `remaining' is
  initially zero, it was possible for `nfrontp' to be decremented.

Noticed by:	dillon

o Replaced leaking writenet() with output_datalen():

:  * writenet
:  *
:  * Just a handy little function to write a bit of raw data to the net.
:  * It will force a transmit of the buffer if necessary
:  *
:  * arguments
:  *    ptr - A pointer to a character string to write
:  *    len - How many bytes to write
:  */
: 	void
: writenet(ptr, len)
: 	register unsigned char *ptr;
: 	register int len;
: {
: 	/* flush buffer if no room for new data) */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
: 	if ((&netobuf[BUFSIZ] - nfrontp) < len) {
: 		/* if this fails, don't worry, buffer is a little big */
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
: 		netflush();
: 	}
:
: 	memmove(nfrontp, ptr, len);
: 	nfrontp += len;
:
: }  /* end of writenet */

What an irony!  :-)

o Optimized output_datalen() a bit.
2001-07-20 12:02:30 +00:00
David E. O'Brien
556571f3b7 This merges in the changes from the 2.11.2 release to the FSF anoncvs
19-July-2001 snapshot.
2001-07-20 03:48:47 +00:00
David E. O'Brien
e3bf29e1d6 Import of Binutils from the FSF 2.11 branch [checked out 19-July-2001].
This fixes an annoying `ld' bug.
2001-07-20 03:29:51 +00:00
David E. O'Brien
19d6069d11 This commit was generated by cvs2svn to compensate for changes in r80016,
which included commits to RCS files with non-trunk default branches.
2001-07-20 03:29:51 +00:00
David E. O'Brien
971afb51b5 Update for the Bintuils 2.11.2 import. 2001-07-20 02:56:57 +00:00
Ruslan Ermilov
1ee47d0673 vsnprintf() can return a value larger than the buffer size.
Submitted by:	assar
Obtained from:	OpenBSD
2001-07-19 18:58:31 +00:00
Ruslan Ermilov
5f10368c1d Fixed the exploitable remote buffer overflow.
Reported on:	bugtraq
Obtained from:	Heimdal, NetBSD
Reviewed by:	obrien, imp
2001-07-19 17:48:57 +00:00
David E. O'Brien
a8dd67f3c2 This commit was generated by cvs2svn to compensate for changes in r79971,
which included commits to RCS files with non-trunk default branches.
2001-07-19 16:26:14 +00:00
David E. O'Brien
e25f7def37 Import of LukeM's ftp client, version 1.5. 2001-07-19 16:26:14 +00:00
David E. O'Brien
b5a9f20b8f This commit was generated by cvs2svn to compensate for changes in r79968,
which included commits to RCS files with non-trunk default branches.
2001-07-19 16:25:08 +00:00
David E. O'Brien
299281efb0 Import of LukeM's ftpd version 1.1. 2001-07-19 16:25:08 +00:00
Dima Dorfman
489b9470ae Fix an underflow resulting from the assumption !O_ISSET(sp, O_LEFTRIGHT)
(ironically, the assumption is in a code block which is conditional on its
converse).  This isn't strictly the correct fix; it's more of a workaround
to prevent an infinite loop.  The correct fix (see
ports/editors/nvi-devel/files/patch-vi-relative r1.1) would take a file off
the vendor branch, but since the result for this version of nvi is
identical, this route was elected.

PR:		28687
Approved by:	-developers
2001-07-19 11:02:11 +00:00
Ruslan Ermilov
2370a12024 From ChangeLog:
: 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
:
:	* tmac/groff_mdoc.man: Document new -width and -column syntax.
:	Some other minor fixes.
:	* tmac/an-old.tmac: Add `AT' and `UC' macros.
2001-07-18 06:48:31 +00:00
Ruslan Ermilov
19c6fd1aee This commit was generated by cvs2svn to compensate for changes in r79847,
which included commits to RCS files with non-trunk default branches.
2001-07-18 06:48:31 +00:00
David E. O'Brien
06cb5f26f7 Connect std{in,out,err} to *something* so that "hooks" scripts that write
to std{err,out} will not spam /etc/resolv.conf.

Ted Lemon fixed the problem in version 3 of the client, but only for the
pre-daemonized case.  Thanks to Brian for pointing that out and helping
to make our future dhclient (v3) better.

Submitted by:	brian
2001-07-16 01:56:48 +00:00
Mark Murray
c7ff6083f9 Fix SHA1 hashing. 2001-07-14 08:30:54 +00:00
Mark Murray
bce9718b36 Usse a better method to get a user's credentials, as uid's may be
legally duplicated.

Requested by:	ache
2001-07-14 08:29:19 +00:00
Ruslan Ermilov
920eecc599 Import latest mdoc(7) fixes of mine.
Fold -xwidth functionality into -width.  .Bl now tests whether
string immediately following a leading dot starts with a valid
macro name.

Added similar functionality to the -column list's column width
specifiers.  For example, the following now works as expected:

.Bl -column ".Va hw.crusoe.percentage" ".Vt integer" "Changeable"
.It Sy "Name\tType\tChangeable\tDescription"
.It Va hw.crusoe.longrun Ta Vt integer Ta yes Ta "LongRun mode:"
.It Ta Ta Ta "0: minimum frequency mode"
.It Ta Ta Ta "1: power-saving mode"
.It Ta Ta Ta "2: performance mode"
.It Ta Ta Ta "3: maximum frequency mode"
.It Va hw.crusoe.frequency Ta Vt integer Ta no Ta "Current frequency (MHz)."
.It Va hw.crusoe.voltage Ta Vt integer Ta no Ta "Current voltage (mV)."
.It Va hw.crusoe.percentage Ta Vt integer Ta no Ta "Processing performance (%)."
.El

This is especially useful for groff devices with variable width
fonts, like -Tps or -TX100.
2001-07-13 09:06:00 +00:00
Ruslan Ermilov
e48c5ca20c This commit was generated by cvs2svn to compensate for changes in r79655,
which included commits to RCS files with non-trunk default branches.
2001-07-13 09:06:00 +00:00
Ruslan Ermilov
3e99af9747 This page is in man(7) format. 2001-07-13 08:06:08 +00:00
David E. O'Brien
5a108f415b libiberty file list for the 11-July-2000 import. 2001-07-12 19:03:33 +00:00
Ruslan Ermilov
63914212f0 Eliminate troff(1) warnings that were hiding some useful text. 2001-07-12 14:29:59 +00:00
Ruslan Ermilov
b50288009d Fixed warning:
bc.1:643: warning: numeric expression expected (got `e')
2001-07-12 07:35:06 +00:00
Ruslan Ermilov
0fb3975219 Merge Groff 1.17.2 changes. 2001-07-10 17:15:31 +00:00
Ruslan Ermilov
a972cdc741 Use stock (FSF) version of this file. 2001-07-10 17:14:46 +00:00
Ruslan Ermilov
75fdaafb19 Removed files not present in v1.17.2 import. 2001-07-10 17:10:51 +00:00
Ruslan Ermilov
1e98c32d1b This commit was generated by cvs2svn to compensate for changes in r79546,
which included commits to RCS files with non-trunk default branches.
2001-07-10 17:10:51 +00:00
Ruslan Ermilov
5ecb0ad24f Virgin import of FSF groff v1.17.2 2001-07-10 17:09:00 +00:00
Ruslan Ermilov
66d14a309a This commit was generated by cvs2svn to compensate for changes in r79543,
which included commits to RCS files with non-trunk default branches.
2001-07-10 17:09:00 +00:00
Ruslan Ermilov
63919764c2 mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 10:42:19 +00:00
David E. O'Brien
fbd7787b32 It is just stupid to have to do ``<ESC>!rm -f %'' to write a file you own.
So lets stop that nonsense and allow `w!' to do something useful.

Submitted by:	green
2001-07-09 04:11:33 +00:00
Ruslan Ermilov
df1cda58e4 mdoc(7) police: merge all fixes from non-crypto version. 2001-07-05 14:08:12 +00:00
Ruslan Ermilov
a5493c1b77 MF non-crypto: 1.13: document -u in usage. 2001-07-05 14:06:27 +00:00
Kris Kennaway
c16e19ce77 Unbreak "paranoid" host checking, which was broken with the IPv6 code
import.

Submitted by:	Tony Finch <dot@dotat.at>
2001-07-04 20:16:18 +00:00
David E. O'Brien
dfb1a3b23c Import of GNU Binutils version 2.11.2. 2001-06-26 18:26:26 +00:00
David E. O'Brien
b472c4d1c6 This commit was generated by cvs2svn to compensate for changes in r78844,
which included commits to RCS files with non-trunk default branches.
2001-06-26 18:26:26 +00:00
David E. O'Brien
098abe2f2a Merge rev 1.2 (teach `ld' how to access FreeBSD's ld ELF hints)
into Binutils 2.11.2.
2001-06-26 17:57:37 +00:00
David E. O'Brien
9cbaab2ae7 We use the stock (2.11.2) version of this now. 2001-06-26 17:56:02 +00:00
David E. O'Brien
b7c1ed8297 Merge rev 1.2 (FreeBSD configuration support) into Binutils 2.11.2. 2001-06-26 17:54:12 +00:00
David E. O'Brien
f9416573c4 We use the stock (2.11.2) version of this file now. 2001-06-26 17:53:08 +00:00
David E. O'Brien
ac0d11744a Use the stock (2.11.2) version of this now. 2001-06-26 17:51:35 +00:00
David E. O'Brien
bfdc8ef812 Use the vendor's 2.11.2 version of this file as in rev 1.4. 2001-06-26 17:45:23 +00:00
David E. O'Brien
515082a3ff Merge rev 1.2 (configuration changes to support FreeBSD) into Binutils 2.11.2. 2001-06-26 17:44:22 +00:00
David E. O'Brien
937233fdcb Really wish this could back on the vendor branch...
Commit the stock 2.11.2 version.
2001-06-26 17:43:37 +00:00
David E. O'Brien
612f257451 Merge rev 1.6 (only define "ELF_DYNAMIC_INTERPRETER" if it isn't defined
elsewhere) into Binutils 2.11.2.
2001-06-26 17:17:04 +00:00
David E. O'Brien
dd752cf395 Merge rev 1.8 (only define "ELF_DYNAMIC_INTERPRETER" if it isn't defined
elsewhere.) into Binutils 2.11.2.
2001-06-26 17:15:34 +00:00
David E. O'Brien
fdcfb587ca Merge our ELF branding into Binutils 2.11.2. 2001-06-26 17:14:56 +00:00
David E. O'Brien
fd66bf0071 Import of GNU Binutils version 2.11.2. 2001-06-26 16:57:43 +00:00
David E. O'Brien
2f5bf4fae2 This commit was generated by cvs2svn to compensate for changes in r78828,
which included commits to RCS files with non-trunk default branches.
2001-06-26 16:57:43 +00:00
Andrey A. Chernov
cd01c79119 Make the similar changes as in our keyinfo, i.e. allow user to get his own
sequence and allow root to get everybody's one. Before this change user
can't get his own sequence, root required.
2001-06-23 04:48:59 +00:00
David E. O'Brien
559ba42767 This commit was generated by cvs2svn to compensate for changes in r78556,
which included commits to RCS files with non-trunk default branches.
2001-06-21 18:37:17 +00:00
David E. O'Brien
df9de0eba1 Virgin import (trimmed) of Bzip2 version 1.0.1. 2001-06-21 18:37:17 +00:00
Ruslan Ermilov
af2a8ba6c3 Bring in FSF revision 1.17:
* src/roff/troff/node.h (node::node): Initialize `last'.

This fixes coredump on \b'\(sq' sequence.

Urged by:	eivind
2001-06-19 06:43:49 +00:00
Ruslan Ermilov
a52dffddd2 This commit was generated by cvs2svn to compensate for changes in r78460,
which included commits to RCS files with non-trunk default branches.
2001-06-19 06:43:49 +00:00
Ruslan Ermilov
7879537eee Removed duplicate copies of files already present in sys/contrib/ipfilter.
Not objected to by:	-arch
2001-06-18 15:54:04 +00:00
Peter Wemm
d6be5f6435 Fix libpam's linker set stuff to use the new API (unbreak world), and get
rid of gensetdefs from here as well.
2001-06-14 01:13:30 +00:00
Andrey A. Chernov
0b680d18f6 Understand new locale names and Latin15 too 2001-06-10 17:03:37 +00:00
Mark Murray
d9c185f10a Fix bug introduced by myself that often resulted in a session having
SIGINTR (^C) and SIGSTP (^Z) masked.

Reported by:	bde, sobomax
Submitted by:	sobomax
2001-06-07 08:45:23 +00:00
Ruslan Ermilov
3c5021685e Fetch the default maximum TTL value from the net.inet.ip.ttl MIB.
PR:		bin/19598
MFC after:	1 week
2001-06-06 16:12:59 +00:00
Mark Murray
341762c6f1 In the same manner as getpass(3), block SIGINTR and SIGSTP while we are
actually reading the line.
2001-06-04 20:59:49 +00:00
Mark Murray
52b026c0e5 Return an empty string rather than an error at EOF. 2001-06-04 20:08:55 +00:00
David E. O'Brien
14070f45a1 Remove this file that slipped thru FREEBSD-Xlist's actions. 2001-06-02 00:03:06 +00:00
Mark Murray
13b65deafa Bring back from the er, dead some useful PAM modules. 2001-05-29 18:32:17 +00:00
David E. O'Brien
872825029c Support the environmental var "GCC_OPTIONS". Which can hold a set of
default options for GCC.  These options are interpreted first and can be
overwritten by explicit command line parameters.  This provides one way of
adding [temporary] options to your world build w/o editing /etc/make.conf.
2001-05-29 09:54:45 +00:00
David E. O'Brien
ef734dd386 Update for the Bintuils 2.11.0 import. 2001-05-28 17:48:04 +00:00
Gregory Neil Shapiro
e6744d19c4 sendmail 8.11.4 has been imported 2001-05-28 17:13:41 +00:00
Gregory Neil Shapiro
c0c4794d84 Resolve conflicts from 8.11.4 import 2001-05-28 17:10:35 +00:00
Gregory Neil Shapiro
8774250cea Import sendmail 8.11.4 2001-05-28 17:08:52 +00:00
Gregory Neil Shapiro
e66921d832 This commit was generated by cvs2svn to compensate for changes in r77349,
which included commits to RCS files with non-trunk default branches.
2001-05-28 17:08:52 +00:00
David E. O'Brien
79a225640d Merge rev 1.2 into Binutils 2.11[.0].
Teach `ld' how to access FreeBSD's ld ELF hints.
2001-05-28 06:21:27 +00:00
David E. O'Brien
66f5a1cd95 We use the stock version of this file now.
I committed our rev 1.2 (start symbol) and 1.3 (max pagesize) fixes into
the FSF/GNU source tree.
2001-05-28 06:19:25 +00:00
David E. O'Brien
efb6b1f03f We use the stock version of this file. 2001-05-28 06:17:54 +00:00
David E. O'Brien
998fcc5cfb We use the stock version of this file now.
I committed all the new FreeBSD platform support (PPC, StrongARM, Sparc64)
into the FSF/GNU tree.
2001-05-28 06:17:17 +00:00
David E. O'Brien
e74384305b Merge rev 1.2 (FreeBSD configuration support) into Binutils 2.11[.0]. 2001-05-28 06:15:35 +00:00
David E. O'Brien
2e3f221007 Use the stock version of this file now.
I committed our rev 1.2 fix into the FSF/GNU tree.
2001-05-28 06:14:37 +00:00
David E. O'Brien
098e7024f7 We use the stock version of this file now.
I folded our rev 1.2 localizations into the FSF/GNU tree.
2001-05-28 06:11:56 +00:00
David E. O'Brien
8f29d50bf5 Return to the vendor's version of this file. 2001-05-28 06:10:48 +00:00
David E. O'Brien
bcffceaaa6 Add a minor tweak for us that I failed to get committed to the stock 2.11. 2001-05-28 06:08:54 +00:00
David E. O'Brien
6dfb9de37e Return to the vendor's version of this file.
(have I mentioned how fscking stupid CVS can be??)
2001-05-28 06:05:28 +00:00
David E. O'Brien
cb5531a994 Return to the vendor's version of this file.
(CVS -j -j filled this with conflicts -- CVS it just too fscking dumb
to realize this is the 3rd time we've just committed the vendor
version + FreeBSD ID)
2001-05-28 06:04:24 +00:00
David E. O'Brien
b94b3e7a83 Return to the vendor's version of this file as in rev 1.4.
(CVS is too stupid to realize we've done this 3 times now...)
2001-05-28 06:00:20 +00:00
David E. O'Brien
64f2a81b18 CVS is too stupid to realize we use the stock version of this file now. 2001-05-28 05:54:56 +00:00
David E. O'Brien
0130e184b4 Merge rev 1.6 (only define "ELF_DYNAMIC_INTERPRETER" if it isn't defined
elsewhere) into Binutils 2.11[.0].
2001-05-28 05:53:00 +00:00
David E. O'Brien
af489d2da7 Merge rev 1.8 (only define "ELF_DYNAMIC_INTERPRETER" if it isn't defined
elsewhere.) into Binutils 2.11[.0].
2001-05-28 05:52:12 +00:00
David E. O'Brien
8b8792993c Merge our ELF branding into Binutils 2.11[.0].
I have also turned off the older 100% against-the-gABI method[*].
If you must really have it, define "WANT_OLD_BRANDELF_METHOD".

[*] but left the stretching the gABI method until I finish writing the
notes section support in the ELF image loader.
2001-05-28 05:49:34 +00:00
David E. O'Brien
c9edceadd8 Import of GNU Binutils version 2.11.0.
Believe it or not, this is heavily stripped down.
2001-05-28 05:21:37 +00:00
David E. O'Brien
c8c29a6bbe This commit was generated by cvs2svn to compensate for changes in r77298,
which included commits to RCS files with non-trunk default branches.
2001-05-28 05:21:37 +00:00
David E. O'Brien
741a3bc754 Teach gcc about '%+' so it will not warn when using '%+' in a format
string when using strftime(), since our libc supports it.

PR:             26827
Submitted by:   Marc Olzheim <marcolz@ilse.nl>
2001-05-25 19:00:07 +00:00
Ruslan Ermilov
1166fb516b - sys/msdosfs moved to sys/fs/msdosfs
- msdos.ko renamed to msdosfs.ko
- /usr/include/msdosfs moved to /usr/include/fs/msdosfs
2001-05-25 08:14:14 +00:00
Matthew Dillon
7a2254dcf0 Oops, forgot the 'u' in the getopt for the previous commit. 2001-05-24 00:14:19 +00:00
Matthew Dillon
e5c23e887b A feature to allow one to telnet to a unix domain socket. (MFC from
non-crypto version)

Also update the crypto telnet's man page to reflect other options
ported from the non-crypto version.

Obtained from:   Lyndon Nerenberg <lyndon@orthanc.ab.ca>
2001-05-23 22:54:07 +00:00
Nick Sayer
9286fd701f Make the PAM user-override actually override the correect thing. 2001-05-17 16:28:11 +00:00
Peter Wemm
edfeb4834f This commit was generated by cvs2svn to compensate for changes in r76732,
which included commits to RCS files with non-trunk default branches.
2001-05-17 08:39:21 +00:00
Peter Wemm
952abd2a98 Merge changes from vendor branch to mainline. 2001-05-17 08:24:39 +00:00
Peter Wemm
9f22302ac6 This commit was generated by cvs2svn to compensate for changes in r76726,
which included commits to RCS files with non-trunk default branches.
2001-05-17 08:21:06 +00:00
Peter Wemm
7a69bbfb27 Import ncurses-5.2-20010512 onto the vendor branch
Obtained from: ftp://dickey.his.com/ncurses/
2001-05-17 08:21:06 +00:00