Commit Graph

2863 Commits

Author SHA1 Message Date
Dag-Erling Smørgrav
19364f02eb Reverse the FTP_PASSIVE_MODE check, so it checks for "is not NO" rather
than "is YES".
1999-07-03 10:10:50 +00:00
Bill Fumerola
573d228c9a Remove unused variable.
Approved By:	phk
1999-07-02 20:46:03 +00:00
Bill Fumerola
465ebdc6e3 Add braces to avoid ambigious else. 1999-07-02 15:26:53 +00:00
Ruslan Ermilov
0b7a57dd48 o use getprotobynumber(3) instead of hardcoded protocol names.
Divert(4) sockets will now appear as "internet raw divert"
  instead of "internet raw 254".

o -Wall tweak.

Reviewed by:	bde
1999-07-02 13:25:49 +00:00
Bruce Evans
95103bc098 Actually fixed ambiguous else. The previous revision had no effect. 1999-07-02 11:20:59 +00:00
Brian Feldman
90331af0d2 "transfered" -> "transferred"
Reviewed by:	dict(1)
1999-07-02 08:57:06 +00:00
Bill Fumerola
f32e012b12 Fix ambigious else.
Reviewed By:	eivind
1999-07-01 17:59:17 +00:00
Ruslan Ermilov
69d00ab7ca Document that FTP_PASSIVE_MODE should be explicitly
set to `YES' for passive mode to be used by default.
Just setting FTP_PASSIVE_MODE is not sufficient, as
it was before.

Noted by:	eivind
Reviewed by:	des
1999-07-01 14:32:07 +00:00
Bill Fumerola
4d294cadd5 (1) Don't perror() when at.deny doesn't exist, that's an accepted behavior.
(2) Die when there is a problem opening at.allow other then it not existing.
    An error other then it not existing might be a trick to somehow
    circumvent system security.

Mostly Reviewed By:	msmith
1999-07-01 01:07:30 +00:00
Kris Kennaway
624a0c8204 retreived -> retrieved
Obtained from:		OpenBSD
1999-06-30 12:53:06 +00:00
Bruce Evans
9810672047 Decode all currently supported values of the ptrace `request' arg. 1999-06-26 07:31:13 +00:00
Bill Fumerola
6f955dc9b6 Make a reference to rtprio, which will definatly be of interest to someone
looking at this page.

Requested By:	Keith Stevenson <k.stevenson@louisville.edu>
1999-06-25 20:54:33 +00:00
Ruslan Ermilov
f62092b8c3 - add "-s src_addr" option to allow setting of the source IP address;
- fix two minor bugs;
- slightly cleanup manpage.
1999-06-25 14:11:16 +00:00
Warner Losh
b1bd32ef4a Don't add '?' to getopt's options. 1999-06-24 06:45:32 +00:00
Mike Pritchard
a684cccdd6 Some man page cleanup. Make the NAME and SYNOPSIS sections agree so
that whatis(1) will produce the expected results.

Pointed-out-by: Jesus Monroy <jesus.monroy@usa.net> in freebsd-doc
1999-06-24 06:22:24 +00:00
Mike Pritchard
aee054de4a Add the 'reset' command to the NAME section.
Pointed-out-by: Jesus Monroy <jesus.monroy@usa.net> in freebsd-doc
1999-06-24 04:48:41 +00:00
Sheldon Hearn
8a56be1af7 Add a messy example of how to get debug-mode error messages written to
a file in the user's home directory.

Requested by:	hoek
1999-06-23 15:44:40 +00:00
Tim Vanderhoek
2a059832d8 Don't strip trailing .suffixes from filenames. Although obviously
intentional, this behaviour is far too obnoxious given the number of
filenames such as rpc.statd we have.

Submitted by:	Chris Costello [3]chris@calldei.com (bin/11303)
1999-06-21 19:52:09 +00:00
Sheldon Hearn
6bad8b7d57 Add missing argument to synopsis.
PR:	11805
1999-06-21 12:09:31 +00:00
Brian Feldman
378949dbca This fixes the problem of cancelling an FTP transfer resulting in
a bogus error ("parsing URI".) I also fixed an inconsistency in
another fs_status.
1999-06-21 02:38:16 +00:00
Sheldon Hearn
1427b87c55 Postpone call to usage() until after all options are processed so that
the -d debugging option produces consistent behaviour.
1999-06-18 08:52:13 +00:00
Sheldon Hearn
4b54a72dab Please forgive me, it's my first day on the block. Forgot to mention:
PR:	11987
1999-06-17 14:49:19 +00:00
Sheldon Hearn
f21ecb5f63 Null commit to reflect that the previous commit added warnings for
previously unreported malloc() failures, and changed the exit status
for those failures to encourage MTA retries.
1999-06-17 14:48:02 +00:00
Sheldon Hearn
42a1247753 * Add a command-line option to enable debugging mode, which sends error
messages to stderr instead of syslog.

* Fix manpage with respect to diagnostics.

Reported by:	rfg@monkeys.com (Ronald F. Guilmette)
1999-06-17 14:44:42 +00:00
Ruslan Ermilov
a6bd23ccf6 Add "-N" option to the SYNOPSIS and usage(). 1999-06-17 07:12:39 +00:00
Dmitrij Tejblum
7a6ec4cfb2 Syscall arguments are now properly aligned. Print them, and syscall return
values, as longs, instead of int.
1999-06-16 18:46:40 +00:00
Ruslan Ermilov
ec5035fa0b Add "-s src_addr" option to allow setting of the source IP address. 1999-06-16 15:26:22 +00:00
Mike Pritchard
d9a91c1439 Correctly document the two different object file formats that can be
used with objformat.

PR:	10877
1999-06-15 19:19:51 +00:00
Ruslan Ermilov
1c51699372 It was possible to circumvent telnet's security ``-E'' (no escape at all)
option by running it with ``-8 -E'' and passing it 0xff character.

PR:		6317
Reviewed by:	des, David Borman <dab@bsdi.com> (the author)
1999-06-14 18:46:15 +00:00
Nick Hibma
33d56839e3 Man pages for top refer to only 2.x, but not to 3.x and later 1999-06-14 12:06:11 +00:00
Foxfair Hu
c6570d1dc3 Change locale name of Traditional Chinese : zh_TW.BIG5 -> zh_TW.Big5.
It makes compatible with IANA charset defination, and let existent I18N
app happier.

Ref: <http://www.isi.edu/in-notes/iana/assignments/character-sets>
1999-06-08 02:25:19 +00:00
Dag-Erling Smørgrav
ff7b59cd9e Separate the pftp and FTP_PASSIVE_MODE tests so gate mode works again.
PR:		bin/12070
Submitted by:	Dominic Mitchell <Dom.Mitchell@palmerharvey.co.uk>

Specifically check that FTP_PASSIVE_MODE is set to YES, rather than
just checking if it is defined.

Discussed on:	freebsd-current
1999-06-07 16:35:15 +00:00
Kris Kennaway
735df1561f Correct description of -c and -w options
Inspired by:	PR docs/11774
Submitted by:	Chad R. Larson <chad@freeway.dcfinc.com>
1999-06-06 14:16:51 +00:00
Kris Kennaway
b9569cad67 The -perm option takes argument [-]mode, not [-mode]
Obtained from:	NetBSD, by way of OpenBSD
1999-06-06 07:37:18 +00:00
Tim Vanderhoek
296697bb16 - When trying to decide if $EDITOR == "vi", match against only the first
two characters of $EDITOR.  This allows things like "vim" and "vi -G"
  (although nvi would fail...oh well).

- Avoid certain cases where the editor is passed an invalid line number.
1999-06-05 20:27:08 +00:00
Ruslan Ermilov
436d5d04f4 Fix a width. 1999-06-05 15:03:47 +00:00
Julian Elischer
8759eb5c80 Support the IANA definition of Shift Jis nameley ja_JP.Shift_JIS
as well as the X11 version ja_JP.SJIS
1999-06-05 03:04:03 +00:00
Tim Vanderhoek
c5b52d6d9d No, the space required for a string is strlen() _plus_ one... Oops. 1999-06-04 19:35:22 +00:00
Ruslan Ermilov
c3e53c0457 getvfsbyname() returns zero on success.
PR:		12000
Submitted by:	Anatoly A. Orehovsky <tolik@mpeks.tomsk.su>
1999-06-03 09:03:50 +00:00
Tim Vanderhoek
5bba1d262a Don't print backspaces in first column since they backup to the prev line. 1999-06-02 03:42:39 +00:00
Tim Vanderhoek
ac8ab44cf6 Grok gtags too. 1999-06-01 20:02:34 +00:00
Tim Vanderhoek
0ac2ad320e General code cleanup [incomplete]. Make the arrow keys work. 1999-05-30 18:06:58 +00:00
Bruce Evans
ca4449cf8c Fixed usage message to almost match the man page. The old -d option and
the new -i option were missing.

Fixed style bugs in previous commit:
(1) initialisation of a local variable in its declaration.
(2) inconsistency of (1) with style of nearby code.
(3) disorder of declaration for (1).
(4) a line longer than 80 characters.
(5) bitrot in the printf() -> err() cleanups to help bloat the line in (4).
1999-05-27 12:58:41 +00:00
Tim Vanderhoek
168de44296 Handle ".if ${T} > 1 || ${T} < 3" and friends correctly.
Reported-by:	asami
1999-05-25 13:45:08 +00:00
Peter Wemm
7c8dec7b63 Add a -i localname switch (restricted to root) to specify a different
local "login" name for rcmd(3).  This is particularly useful for things
like portslave and other packages with terminal server functionality
where a login can either run ppp locally or get shunted off to another
box via rlogin depending on radius authentication etc.  Quite often the
local box doesn't even have accounts, so a flag such as this is needed.
Obviously this is restricted to callers with uid == 0.
1999-05-25 11:14:33 +00:00
Jean-Marc Zucconi
ef9866be68 xargs was spliting the input in a very different way from everyone else,
and was also a bit inconsistent: leading blanks, or any double blanks
generated empty arguments, but a trailing blank did not.

PR:		bin/2630, bin/10914
Submitted by:	Arne Henrik Juul <arnej@imf.unit.no>
1999-05-23 15:58:22 +00:00
Jean-Marc Zucconi
7e74cac42e Construct the profile file name from the name of the executable. A program
compiled with -pg and run will generate a file <executable-filename>.gmon,
not gmon.out.

PR:		bin/8426
1999-05-23 00:37:56 +00:00
Tim Vanderhoek
6e01d46b30 If we're going to do such a non-UNIX(tm)y thing as appending output
to a file instead of truncating, at least word the notice of output
redirection appropriately.
1999-05-22 06:57:22 +00:00
Jean-Marc Zucconi
cf4b2350b9 Add euro-currency and constant rates of EMU area.
PR:		bin/9263
Submitted by:	Timo J. Rinne <tri@freebsd.org>
1999-05-22 02:01:59 +00:00
Robert Nordier
34ba737933 Improve handling of "do ... while" following "else". This change
eliminates some incorrect "Unmatched 'else'" errors.
1999-05-21 14:46:52 +00:00
Jean-Marc Zucconi
619f08032e FIx the output of long command names.
PR:		bin/10027
Submitted by:	Arne Henrik Juul <arnej@math.ntnu.no>
1999-05-21 01:09:45 +00:00
Jean-Marc Zucconi
49936df39b Ignore the MAIL environment variable when the -u flag is set.
PR:		bin/8665
1999-05-20 22:23:04 +00:00
John-Mark Gurney
85020e14f0 make md5 checksums actually work instead of simply calculating the length
of an empty buffer...  the output file wasn't readable...  also warn that
we can't checksum on stdout and print out the base64 encoded version of the
md5 checksum...

Site to actually return md5 digest: web.golux.com
Verified that fetch was broken: Ken Coar <Ken.Coar@Golux.Com>
1999-05-18 19:37:37 +00:00
Wolfram Schneider
4bc71ceab3 Delete debug line.
PR:	bin/9793
Submitted by: Andy Farkas <andyf@speednet.com.au>
1999-05-14 18:45:18 +00:00
Wolfram Schneider
2d3de6c999 Don't overwrite the variable LOCATE_CONFIG
This is useful for people who want index their home directory:

$ env LOCATE_CONFIG=$HOME/.locate.rc /usr/libexec/locate.updatedb

Submitted by: Dmitry Morozovsky <marck@rinet.ru>
1999-05-14 10:18:43 +00:00
Kris Kennaway
4b9cb490c3 Correct an error in a manpage example, add -Wall -W to Makefile (no
warnings given) and modify source to use arc4random() instead of random().

Reviewed by:	ache
1999-05-13 12:18:24 +00:00
Bruce Evans
6930c8618b Backed out the previous commit, except for the parts that reduced
the magicness of 200.  Cleaned up the remaining parts.  Circularisation
of the list of malloc types was a kernel bug (now fixed).  Interfering
with applications' definitions of pgtok is a system header bug (not
fixed).
1999-05-12 11:49:47 +00:00
Dag-Erling Smørgrav
ecb80458eb Brucify. 1999-05-12 06:57:07 +00:00
Peter Wemm
bf0e1ee370 Tidy up references to <sys/rlist.h> and support for the old swap management
that went away in January.
1999-05-11 14:32:18 +00:00
Dag-Erling Smørgrav
6b284d8ad2 Sync usage() with man page.
PR:		11539
Submitted by:	Ruslan Ermilov <ru@ucb.crimea.ua>
1999-05-11 14:23:16 +00:00
Matt Jacob
dc06ef2775 add and document seteotmodel and geteotmodel commands 1999-05-10 20:05:19 +00:00
Poul-Henning Kamp
38fc822d7f Don't go looking for weird #includes if major isn't a macro. 1999-05-10 18:06:37 +00:00
Warner Losh
7cbb70b303 Sometime since this file was written, the list of kernel malloc types
changed from a simple list to a circular one.  We compensate by only
looping until we see the first address again.  Before, things would
terminate because it was limited to 200 iterations.  This lead to
bogus statistics and repeating stats for memory types.

This should be merged into 3.2, as the same bug is there.
1999-05-10 00:33:32 +00:00
Poul-Henning Kamp
b55099e93d we don't have <sys/disk.h> anymore. 1999-05-08 05:48:54 +00:00
David E. O'Brien
dd5288f3a5 Impliment elements of TCP Wrappers's `safe_finger'.
* if run by root (or root process) drop privs
* ensure output size is not infinate (net finger only)
* ensure output lines are not infinate in length (net finger only)
* do not allow finger client to run longer than 3 minutes (net finger only)
1999-05-08 00:46:06 +00:00
Jordan K. Hubbard
42c4c73e52 Install the right man page. 1999-05-05 07:09:21 +00:00
Guy Helmer
4c8cdf36e8 Add gensetdefs.8 man page.
PR:		docs/10517
Submitted-by:	Oliver Fromme <oliver.fromme@heim3.tu-clausthal.de>
1999-05-04 20:31:28 +00:00
Guy Helmer
768229abb0 Add missing parenthesis. Change "hardware block" to "SCSI logical block".
While I'm here, fix dangling "to".

PR:		docs/9940
1999-05-04 18:22:38 +00:00
Greg Lehey
9045b882d5 Clarify when the user gets a prompt for the old password, and that
passwords are not echoed.

Get quotes right in troff.
1999-05-03 00:56:05 +00:00
Tim Vanderhoek
3309076f0b Document another (less-virulent) CRLF-related bug. 1999-05-02 18:17:23 +00:00
Dag-Erling Smørgrav
c0da497e2d Don't use STDOUT_TOP.
Submitted by:	Christopher Masto <chris@netmonger.net>
1999-05-01 11:31:19 +00:00
Tim Vanderhoek
61f74535f6 Change references from "passwordperiod" to "passwordtime", since
"passwordtime" is what passwd(1) has actually been using.  I suspect
passwordperiod was the original intent.  I can't figure-out which,
if either, BSDi uses.  If anyone knows...
1999-04-30 18:19:46 +00:00
Poul-Henning Kamp
4b9c5aabdd Tcopy uses 32 bit unsigned to accumulate a count of bytes read/written.
That doesn't work well for tapes over 4G.

I use tcopy a lot to write images of a tape to tape as tape to tape
copying is terribly slow. Slower than it should be. Quickly found out
tcopy can not rewind a file when doing copy/verify.

PR:		11386
Submitted by:	David Kelly dkelly@hiwaay.net
Reviewed by:	phk
1999-04-30 13:13:32 +00:00
Tim Vanderhoek
d75db65f59 Remove documentation of CRLF bug from more.1. Sync code with manpage.
PR:		bin/961 bin/7296 (fix)
Submitted by:	Garance Alistair Drosehn <gad@eclipse.acs.rpi.edu>
1999-04-29 18:03:38 +00:00
Joseph Koshy
7d64be00b2 Correct reference to '/dev/rst0' to the more correct "/dev/rsa0".
PR:		11347
Submitted by:	Christian Weisgerber
1999-04-28 05:08:13 +00:00
Luigi Rizzo
0024d1db07 Add support for printing bridging statistics with ``-p bdg '' .
If someone has a better flag to use I'll be glad to change it.
1999-04-26 16:11:50 +00:00
Kris Kennaway
d662d4b701 Move an option outside of a nested list and up a bit to live free among
its brothers and sisters.
1999-04-26 14:08:04 +00:00
Warner Losh
96846ff646 More egcs warning fixes:
o main returns int not void
	o use return 0 at end of main when needed
	o use braces to avoid potentially ambiguous else
	o don't default to type int
	o #ifdef 0 -> #if 0

Reviewed by: obrien and chuckr
1999-04-25 22:37:58 +00:00
Peter Wemm
1464cddcdd The infrastructure to build these fellows has been replaced with kld. 1999-04-24 21:04:04 +00:00
Andrey A. Chernov
0514336d66 remove uid switching before login_getpwclass, now done inside libutil
add gid switching before chdir and comment why it needed
1999-04-24 17:26:32 +00:00
Andrey A. Chernov
9587fac012 fix -n with 16-chars hostnames, modified patch from PR
PR: 11286
Submitted by:  Hans Huebner <hans@chaosradio.berlin.ccc.de>
1999-04-22 23:40:56 +00:00
John Hay
e7f807a217 Fix the display of the "nice" value of processes like ntpd that use the
posix sched_setscheduler() to set their priority.

Noticed by:	Mark Allwright <mallwri@orion.didata.co.za>
1999-04-22 14:34:53 +00:00
Bill Fumerola
9baac9f2e9 IPX address formatting nit.
PR:		bin/11179
Submitted by:	Dan Nelson <dnelson@emsphone.com>
1999-04-20 22:04:31 +00:00
Joseph Koshy
0c101fb2e7 Clarify wording to indicate that the arguments to find(1) are path names
(and can be both files or directories).  Show white space between
"(", ")", "!" and their corresponding `expression' arguments as
expected by the expression parser inside find(1).

Prompted by:	David Honig <David.Honig@idt.com> on freebsd-doc
		Message-Id: <199904132055.NAA09432@justinian.Eng.idt.com>
1999-04-19 08:26:00 +00:00
Warner Losh
ab898e2ec9 Add :Q to quote variable expansion to all proper expansion of
variables for recursive makes.  This makes it less painful to cross
build recent NetBSD kernels on FreeBSD.

Obtained from: NetBSD
1999-04-19 07:30:04 +00:00
Steve Price
c91f5974b9 Use const where appropriate.
PR:		10739
Submitted by:	Stephen J. Rosnowski <sjr@home.net>
Obtained from:	NetBSD PR 6151
1999-04-19 04:05:25 +00:00
Peter Wemm
2ec18d8b24 Disconnect modload/modunload/modstat from their Makefiles.. 1999-04-18 15:56:20 +00:00
Peter Wemm
7c71e88713 Clean up the skeleton code a little. There was a #ifdef to avoid
stdlib.h unless on C++.  However, we already included it above, so there
was no point using the redundant declarations instead.
1999-04-18 13:37:49 +00:00
David E. O'Brien
3136806974 Turn off f2c. Superseeded by EGCS's g77. 1999-04-18 09:51:43 +00:00
Luoqi Chen
2483cc6611 X11 include directory may not actually contain any header file, check for
a specific one (X11/X.h).
1999-04-17 01:57:06 +00:00
Dag-Erling Smørgrav
a76ec619d7 Nuke lsock(1). 1999-04-15 13:43:22 +00:00
Dag-Erling Smørgrav
28bfda3471 lsock(1) -> sockstat(1) 1999-04-15 13:42:48 +00:00
Dag-Erling Smørgrav
5827850902 Rename lsock(1) to sockstat(1).
Suggested by:	Sheldon Hearn <sheldonh@iafrica.com>
Approved by:	Peter Wemm <peter@netplex.com.au>
1999-04-15 13:40:43 +00:00
Dag-Erling Smørgrav
aa9e9524c9 Activate lsock(1). 1999-04-14 16:17:52 +00:00
Dag-Erling Smørgrav
508f6b17c4 Import lsock(1), a Perl script for listing open Internet sockets. 1999-04-14 16:17:34 +00:00
Guy Helmer
79deb70e15 Typo fix.
PR:		docs/11022
1999-04-13 02:32:12 +00:00
Foxfair Hu
0ed3fce6d0 Correct a link problem with zh_TW.BIG5, make the display reasonable. 1999-04-10 12:22:25 +00:00
Brian Somers
3a6afd0d44 Don't perform the trimdomain() functionality twice,
trimdomain() now works as expected.
1999-04-07 14:05:03 +00:00
Dmitrij Tejblum
64edd87688 Rename a function to avoid conflict with the new syscall 'pwrite'. 1999-04-04 21:47:11 +00:00
Martin Cracauer
eec64f7486 Further backouts and changes to the example.
getopt in bourne shell is in fact hard. Maybe perl isn't *that* bad
after all...
1999-04-04 13:49:10 +00:00