Commit Graph

3172 Commits

Author SHA1 Message Date
Ruslan Ermilov
6861fa8643 Remove option's description that has gone with PAM. 2000-02-27 07:14:33 +00:00
Yoshinobu Inoue
482ca4274b Update sockstat to support INET6 socket printing.
Approved by: jkh

Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
Reviewed by: des
2000-02-26 02:56:16 +00:00
Mark Murray
0ed9356caf Use libcrypto in place of libdes. 2000-02-24 21:06:22 +00:00
Yoshinobu Inoue
88a845c11d Correctly print out "Connected to" hostname.
Temporal buffer was used for the hostname and freed before actually used.

Specified by: ru
Approved by: jkh
2000-02-24 19:01:38 +00:00
Brian S. Dean
b75ebc058c Fix a 'tip' core dump caused by a null pointer dereference when
sending a file to the remote system.

PR:		bin/15660
Reviewed by:	jkh
Approved by:	jkh
2000-02-22 02:01:17 +00:00
Andrey A. Chernov
b2ca2dccc4 Fix several problems with EPSV (verbosity, one-per-session, missing place)
Approved by:	jkh
2000-02-21 18:18:41 +00:00
Yoshinobu Inoue
677e00c04e Fixed a little bit strange INET6 output.
Specified by: Ben Smithurst <ben@scientia.demon.co.uk>
Approved by: jkh
2000-02-19 21:46:45 +00:00
Yoshinobu Inoue
81edae92ed Use static buffer to save source route hostnames.
Approved by: jkh
2000-02-19 16:33:14 +00:00
Yoshinobu Inoue
a82a4df889 Print "Trying ..." for each host. Also cleanups for error printing.
Approved by: jkh

Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
2000-02-19 16:17:41 +00:00
Yoshinobu Inoue
7f14aa9b8a Removed bogus line.
Specified by: ache
Approved by: jkh
2000-02-19 16:13:03 +00:00
Yoshinobu Inoue
6d939e82e0 Added IPv6 name resolving support for utmp logging.
Approved by: jkh
2000-02-19 15:57:52 +00:00
Yoshinobu Inoue
aeb2954d05 Don't try EPSV once it failed.
Specified by: Andrey A. Chernov" <ache@nagual.pp.ru>
Approved by: jkh
2000-02-18 07:02:48 +00:00
Sean Eric Fagan
05d5ca3587 Fix a leak. (Thanks Bruce, this was a bonehead mistake on my part :).)
Submitted by:	Bruce Evans
2000-02-15 20:25:47 +00:00
Yoshinobu Inoue
1d1ade86f0 Fix bugs in telnet.
Sorry there were still several bugs.
   -error retry at af missmatch was incomplete.
   -af matching for source addr option was wrong
   -socket was not freed at retry.

Approved by: jkh
2000-02-15 15:59:12 +00:00
Yoshinobu Inoue
1132b408c5 Add -4 and -6 options.
Current getaddrinfo() implemetation has a problem of too much resolving
 waiting time on INET6 enabled systems.
 -4 and -6 options can limit name resolving address family and is a possible
 workaround for the problem.

Approved by: jkh
2000-02-15 15:11:40 +00:00
Bill Swingle
1d2ed2f751 PR: 10850
Submitted by:	Scott Hazen Mueller <scott@zorch.sf-bay.org>
2000-02-15 03:00:47 +00:00
Chris Costello
111b70aa08 Remove the version information from `.Os FreeBSD' here. Not only
might it confuse people, but it causes a warning message with
nroff, and no version history mentions a 1.2 version of FreeBSD.

If anything, a ``HISTORY'' section should show which version this
appeared in.
2000-02-14 01:47:54 +00:00
Chris Costello
c139298856 Reduce the number of args to .%T to an acceptable number by
removing the `Nm' command from the line.  This means that %T
will actually work.
2000-02-14 01:21:13 +00:00
Yoshinobu Inoue
e7e960abeb Add more dual stack consideration.
-Should retry as much as possible when dest addr and
   source addr(specified with -s option) address family
   missmatch happend

Approved by: jkh
2000-02-12 17:59:06 +00:00
Yoshinobu Inoue
319c8e321c Fix parsing problems.
-"ftp hostname:/path" was not working.
 - IPv6 raw addr specification was not well supported, such as,
   "ftp http://\[1:2:3:4:5:6:7:8:\]/index.html"

Approved by: jkh
2000-02-12 15:16:59 +00:00
Yoshinobu Inoue
2bd54ee847 Fix several bogus bugs
-Some address resolving related structures were not freed after use.
 -Some error messages were not printed out correctly.

Approved by: jkh
2000-02-12 15:03:05 +00:00
Nik Clayton
b5edd6da96 Teach passwd about a new "mixpasswordcase" login.conf parameter. If this
parameter is missing, or specified as above, then passwd behaves as normal
when the user enters an all lower case password -- i.e., it prompts them
to use mixed case, and will only grudgingly accept an all lower case
password.

If you negate this entry in login.conf, with "mixpasswordcase@", then
passwd will allow all lower case passwords without complaining.

Approved by:  jkh
2000-02-11 14:08:44 +00:00
Nik Clayton
485343f5ff Teach passwd about a new "mixpasswordcase" login.conf parameter. If this
parameter is missing, or specified as above, then passwd behaves as normal
when the user enters an all lower case password -- i.e., it prompts them
to use mixed case, and will only grudgingly accept an all lower case
password.

If you negate this entry in login.conf, with "mixpasswordcase@", then
passwd will allow all lower case passwords without complaining.

Approved by:	jkh
2000-02-11 13:45:51 +00:00
Yoshinobu Inoue
960e15a70b Add more dual stack consideration.
-Should retry as much as possible when some of source
     routing intermediate hosts' address families missmatch
     happened.
     (such as when a host has only A record, and another host
     has each of A and AAAA record.)

    -Should retry as much as possible when dest addr and
     source addr(specified with -s option) address family
     missmatch happend

Approved by: jkh
2000-02-10 20:06:36 +00:00
Yoshinobu Inoue
d98d74772f Let ftp command use only PORT(no EPRT) for IPv4 destination.
Because if ftpd is invoked with -R option, and EPRT is used via firewal
  or NAT which don't understand EPRT, then the data connection from ftpd
  to ftp client will fail.

Reported By: ume@mahoroba.org
Approved by: jkh
2000-02-09 00:27:40 +00:00
David E. O'Brien
f506ed7467 There is a problem in that one cannot use ctype.h at the same time as parts
of the C++ stdlib.  Our ctype.h uses symbols of the form _<X> to denote the
various character classes.  Our ctype.h also extends the usual ctype.h
offering by adding the "_T" (special) class.  Problem is parts of the STL
also use the symbol "_T" as its parameterized type.  These two uses are
incompatible.

Thus change the form of the symbols used in ctype to something that fixes
the current problem and is less likely to cause conflicts in the future.

Requested by:	Tomoaki NISHIYAMA <tomoaki@biol.s.u-tokyo.ac.jp>
Ok'ed by:	JKH
2000-02-08 07:43:26 +00:00
Yoshinobu Inoue
f306e0c85f Fix telnet core dump at invalid service name specified.
Added an error check to avoid it.

Approved by: jkh

Submitted by: Robert Muir <rmuir@gibralter.net>
2000-02-07 00:52:49 +00:00
David E. O'Brien
6eea92a408 Move brandelf from being i386 specific to the MI area -- Linux emulation
is comming to the Alpha.
2000-02-06 19:15:10 +00:00
Josef Karthauser
418d67b0d9 Revert part of the last commit, remove {g|s}etflags from the libc
interface, and statically link them to the programs using them.
These functions, upon reflection and discussion, are too generically
named for a library interface with such specific functionality.
Also the api that they use, whilst ok for private use, isn't good
enough for a libc function.

Additionally there were complications with the build/install-world
process.  It depends heavily upon xinstall, which got broken by
the change in api, and caused bootstrap problems and general mayhem.

There is work in progress to address future problems that may be
caused by changes in install-chain tools, and better names for
{g|s}etflags can be derived when some future program requires them.
For now the code has been left in src/lib/libc/gen (it started off
in src/bin/ls).

It's important to provide library functions for manipulating file
flag strings if we ever want this interface to be adopted outside
of the source tree, but now isn't necessarily the right moment
with 4.0-release just around the corner.

Approved:	jkh
2000-02-05 18:42:36 +00:00
Yoshinobu Inoue
0bd288cd6c Add NI_NAMEREQD flag to getnameinfo() call. Without this flag,
getnameinfo() don't return error at name resolving failure.
But it is used at doaddrlookup(-N) case in telnet, error need to be
returned to correctly initialize hostname buffer.

Discovered at checking recent KAME repository change, noticed by itojun.
2000-01-29 18:21:05 +00:00
Yoshinobu Inoue
23111c4144 fix breakage of make release.
Confirmed by: German Tischler <tanis@gaspode.franken.de>
2000-01-29 13:45:44 +00:00
Jeroen Ruigrok van der Werven
a6324d7034 Fix typo's.
PR:		16430
Submitted by:	Adam.Kranzel@teru.dyndns.org (shade@dnai.com)
2000-01-28 20:20:28 +00:00
Yoshinobu Inoue
0fea3d5165 IPv6 multicast routing.
kernel IPv6 multicast routing support.
  pim6 dense mode daemon
  pim6 sparse mode daemon
  netstat support of IPv6 multicast routing statistics

  Merging to the current and testing with other existing multicast routers
  is done by Tatsuya Jinmei <jinmei@kame.net>, who writes and maintainances
  the base code in KAME distribution.

  Make world check and kernel build check was also successful.
2000-01-28 05:10:56 +00:00
Josef Karthauser
18c0eeddf7 Historically file flags (schg, uschg, etc) have been converted from
string to u_long and back using two functions, flags_to_string and
string_to_flags, which co-existed with 'ls'.  As time has progressed
more and more other tools have used these private functions to
manipulate the file flags.

Recently I moved these functions from /usr/src/bin/ls to libutil,
but after some discussion with bde it's been decided that they
really ought to go in libc.

There are two already existing libc functions for manipulating file
modes:  setmode and getmode.  In keeping with these flags_to_string
has been renamed getflags and string_to_flags to setflags.

The manual page could probably be improved upon ;)
2000-01-27 21:17:01 +00:00
Michael Haro
d3e00c127b cleanup using suggestions from bde 2000-01-27 20:55:09 +00:00
Matt Jacob
623136a74f Style change and comment difference per bde.
Obtained from:bde@freebsd.org
Marionette by:mjacob@freebsd.org
2000-01-27 16:15:51 +00:00
Yoshinobu Inoue
4dd8b5ab79 another tcp apps IPv6 updates.(should be make world safe)
ftp, telnet, ftpd, faithd
  also telnet related sync with crypto, secure, kerberosIV

Obtained from: KAME project
2000-01-27 09:28:38 +00:00
David E. O'Brien
404d72b9f6 Fixes for my mandoc braindamage.
Submitted by:	sheldonh
2000-01-27 09:00:51 +00:00
Matt Jacob
e6d26e0a6f A cleaner fix to previous.
Obtained from:bde@freebsd.org
2000-01-27 07:58:27 +00:00
Matt Jacob
1445426340 Fix ctags from core dumping on alpha. Let the diffs out to review,
but I timed out. Added FreeBSD CVS header.
2000-01-27 05:46:58 +00:00
Michael Haro
54aa177193 Add human-readable output flag, -h
Reviewed by: obrien
2000-01-25 17:46:59 +00:00
Yoshinobu Inoue
0cac72f42c several tcp apps IPv6 update
-inetd
 -rshd
 -rlogind
 -telnetd
 -rsh
 -rlogin

Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project
2000-01-25 14:52:10 +00:00
Mike Pritchard
f3c2973db7 Fxi various man pages to stop abusing the .Bx macro to generate
the string "FreeBSD".  Use the .Fx macro instead.  Also did some
minor re-wording/formatting to work around a deficiency with
the .Fx macro when it comes to puncuation characters other than
periods and commas.
2000-01-23 01:48:16 +00:00
Sheldon Hearn
248368f60a Revert the change from memset() to bzero(), since bzero() is simply
a special case of memset and we already initialize all those
members of the struct tm which are required by mktime().

The memset() is only necessary for style conformity with the rest
of the file. :-)

Scenic route tour by:	bde
2000-01-20 09:41:31 +00:00
David E. O'Brien
012e166b55 Change the error message to be the FreeBSD one, not the OSF/1 one. 2000-01-19 18:36:01 +00:00
Ruslan Ermilov
810ce16d54 ${.MAKE} -> ${MAKE}
Reviewed by:	hoek
2000-01-19 10:44:28 +00:00
David E. O'Brien
bcbd27be2a Utility to control the printing of "Fixed up unaligned data access for pid
nnn at pc 0xADDR" and the fixup of the UA fault on the DEC Alpha when an
unaligned access fault happens.  Modeled after the OSF/1 utility of the
same name.

Submitted by:	gallatin
2000-01-19 09:47:19 +00:00
Chris Costello
1ead4519b6 Document truncation of strings when a NUL character is reached in a format
string.

PR:		15929
Submitted by:	Daniel Hagan <dhagan@cs.vt.edu>
2000-01-19 04:16:48 +00:00
Sheldon Hearn
64826fd0b3 Correctly parse broken MDTM responses from servers which format
tm_year with "19%02d".

PR:		15981
Reported by:	klh@netcom.com (Ken Harrenstien)
Reviewed by:	bde
2000-01-18 21:27:23 +00:00
Kris Kennaway
6470ba8b28 Create tempfiles securely.
Reviewed by:	imp
2000-01-17 06:43:41 +00:00