Commit Graph

4504 Commits

Author SHA1 Message Date
dillon
d90cfb096d Remove MAP_INHERIT flag from mmaps. 2001-08-25 18:06:32 +00:00
dd
5ae98887a4 ``recognized -> recognize'' where appropriate.
Obtained from:	OpenBSD
2001-08-23 21:13:31 +00:00
brian
4fa1bbf1c3 Fix my previous snprintf() patches (which were largely no-ops).
Mostly submitted by: bde
2001-08-23 12:53:15 +00:00
petef
ca261a6c5c Add myself.
Reviewed by:	ade
2001-08-22 23:13:55 +00:00
mike
bcf70c152e Take maintainership of whois(1). 2001-08-21 19:24:50 +00:00
ru
ac9087fba1 Update -v documentation to match reality.
Spotted by:	bde
2001-08-21 15:59:55 +00:00
brian
c5bd8f6e5d Revert to version 1.16 which was more correct than either of my attempts. 2001-08-21 12:54:15 +00:00
brian
be0965e41d Display a better error message when snprintf() returns < 0
Pointed out by: bde
2001-08-21 11:39:45 +00:00
brian
30830b4292 Handle overflows from snprintf(), not just returns of < 0
Pointed out by: bde
2001-08-21 11:39:32 +00:00
brian
569bf91b79 Remove unnecessary casts.
The original (1.16) code was mostly correct, but this version is
far clearer.

Casts suggested to now be obfuscations by: bde
2001-08-21 11:24:53 +00:00
brian
5bd90784a6 Handle snprintf() returning -1.
MFC after:	2 weeks
2001-08-20 14:46:40 +00:00
markm
3812f01803 Very minor stylistic nit.
Discussed with:	ru
2001-08-20 12:46:11 +00:00
markm
83e59be2f6 Code merge and diff reduction between this and crypto telnet.
Also remove useless AUTHENTICATION code. We have never compiled this
here, and it is doubtful that it even works without crypto.
2001-08-20 12:21:31 +00:00
brian
e5aeafb88a Don't misuse the return from snprintf.
MFC after:	2 weeks
2001-08-20 11:58:05 +00:00
kris
5329ff37f2 Don't overflow a buffer from command line arguments.
MFC after:	2 weeks
2001-08-20 09:43:04 +00:00
kris
a6b313f27f Part II of libss retirement: zap mk_cmds too.
Pointy hat to:	kris
2001-08-20 06:23:35 +00:00
des
4debb1b901 Remove a blank line that snuck in with the previous commit.
Set the default timeout to 120 seconds instead of 0 (no timeout).
2001-08-18 10:48:55 +00:00
peter
77c5965e95 Correct path (../crypto, not ../../crypto) 2001-08-18 03:36:26 +00:00
des
f1dd0e9302 Add some comments. 2001-08-17 22:22:45 +00:00
obrien
dd7a669ee7 Use a build-tool to create the .mgc files.
Submitted by:	ru (partial)
Obtained from:	NetBSD (basic idea)
Reviewed by:	bde, ru
2001-08-17 17:21:38 +00:00
fjoe
d0749da32c add an entry about myself
Reviewed by:	jdp
2001-08-17 05:59:39 +00:00
mikeh
1fea34de62 Print a space between the function name and line number.
PR:		bin/10980
MFC after:	2 weeks
2001-08-16 16:18:14 +00:00
mikeh
9e512f5897 Add $FreeBSD$
MFC after:	2 weeks
2001-08-16 16:16:07 +00:00
sheldonh
5ec991a49c * Update author's e-mail address.
* When the author of an utility also wrote its manual page (a rarety, I
  know), it is not necessary to say that the utility "and this manual
  page" were written by the author.
2001-08-16 08:40:54 +00:00
sheldonh
2ba16ad962 Use the .Cm macro to mark up the modifiers of the -s flag's size argument. 2001-08-16 08:19:09 +00:00
mikeh
3682fdb5a9 Fix usage message, the executable is optional.
PR:		bin/29735
MFC after:	2 weeks
2001-08-15 21:25:50 +00:00
ru
d26a0abd70 Substitute ARGSTR in-place.
Forgot trailing newline in usage().
2001-08-15 15:24:08 +00:00
ru
1d3bb7d67f Fixed the usage() string.
This also reverts change in rev. 1.36 to the documented
style of writing usage().

PR:		bin/29730
Submitted by:	Joseph Mallett <jmallett@xMach.org>
2001-08-15 15:11:52 +00:00
ru
c14d208cbd The old fmt(1) always did what the new ``-l 8'' option does.
POLA: Changed the default to ``-l 8'' while still providing
a way to disable this feature with ``-l 0''.

PR:		bin/29247
Reviewed by:	iedowse
2001-08-15 14:53:55 +00:00
ru
bde8ec1b70 mdoc(7) police: utilize the new .Ex macro. 2001-08-15 09:09:47 +00:00
horikawa
07824065f3 Removal of following export controll related sentences:
o This option is not available outside of the United States and Canada.
o Because of export controls, TELNET ENCRYPT option is not supported outside
  of the United States and Canada.

src/crypto/README revision 1.5 commit log says:
> Crypto sources are no longer export controlled:
> Explain, why crypto sources are still in crypto/.
and actually telnet encryption is used outside of US and Canada now.

Pointed out by: OHSAWA Chitoshi <ohsawa@catv1.ccn-net.ne.jp>
Reviewed by:no objection on doc
2001-08-15 01:23:30 +00:00
schweikh
93c8100330 Add hint about how we name profiled libraries (append _p at the right place).
PR:		8061
Submitted by:	Brandon Gillespie <brandon@ice.cold.org>
Reviewed by:	joerg, ru
MFC after:	5 weeks
2001-08-14 17:48:29 +00:00
tg
b9cb79318c Fix INT 10:09 (write char) and INT 10:0a (write char and attribute)
when cursor is at the lower right corner.

PR:		29574 29601
Submitted by:	Nils M Holm <nmh@t3x.org>
2001-08-14 11:57:14 +00:00
tg
24059a36ee Move update of BIOS variable at 0x6c (time counter) completely to timer.c.
Suggested by:	Igor Serikov <bt@turtle.pangeatech.com>
2001-08-14 11:54:37 +00:00
ru
24c7b0a61d mdoc(7) police: s/BSD/.Bx/ where appropriate. 2001-08-14 10:01:54 +00:00
dd
415090c0c1 An empty at.deny doesn't mean everyone can use at.
PR:		29549
Submitted by:	swear@aa.net
2001-08-14 06:41:20 +00:00
peter
abfe61de7f Initialize outfile in main() 2001-08-13 21:59:04 +00:00
peter
46b62d9c13 Initialize msg in main() 2001-08-13 21:58:16 +00:00
peter
7e27631a25 Initialize fp in main() 2001-08-13 21:57:12 +00:00
peter
373ef9952e Initialize debugf in main() 2001-08-13 21:56:39 +00:00
ru
c6c3284428 mdoc(7) police: s;BSD/OS;.Bsx; where appropriate. 2001-08-13 17:07:40 +00:00
ru
e8e5635e4a Spell "FreeBSD" with "F" and "BSD" in uppercase. 2001-08-13 16:33:00 +00:00
ru
95ce4d2cdc Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
mike
24fb11b75c Fix some bogus strncpy(3) to strlcpy(3) changes I made in the previous
revision.  <utmp.h> structures don't leave room for a NUL character.
Also fix "UNKNOWN" which should have just been UNKNOWN.

Pointed out by:	bde
2001-08-13 05:56:27 +00:00
markm
8d004b8b0d Remove the WANT_INSECURE_OPIE option - it is now a default. This is not
nearly as ominous as it sounds, and it allows OPIE to be used over SSH
and on xterms.

Requested by:	ache
Discussed on:	-security
2001-08-12 18:47:56 +00:00
mike
c675f2ec87 o Replace occurrences of strncpy(3) with strlcpy(3); most of
the uses of it were wrong anyway.
o Always check for NULL returns on strdup(3).
o Fix a possible buffer overflow in strcpy(3).
o Fix a format string vulnerability.
o t->ty_type in stypeof() could be NULL and eventually cause
  a segmentation fault in setenv(3), so check for that.

Eyeballed by:	kris
Reviewed by:	murray
MFC after:	3 days
2001-08-12 17:54:49 +00:00
ken
2b48a1a614 Change the compute_stats() call to the new devstat_compute_statistics()
interface.

Cast the return of the rest of the printfs in here to void.

Submitted by:	"Sergey A. Osokin" <osa@freebsd.org.ru>
2001-08-11 19:41:56 +00:00
markm
77f1de760e Set the RUSER for PAM so that (eg) kerberos can set up tickets properly. 2001-08-11 14:24:13 +00:00
markm
69d76f8cf4 WARNS=2 type cleanup.
WARNS=2 cannot be enable because of an unresolvable conflict in arg 2
of execv(). Document this in the Makefile.

Reviewed by:	bde (su.c only)
2001-08-11 14:22:32 +00:00
kris
6c97019ad9 Don't call errx() with a variable format string
MFC after:	1 week
2001-08-11 00:49:11 +00:00
ru
f858dca3dc mdoc(7) police: join split punctuation to macro calls. 2001-08-10 17:35:21 +00:00
ru
80f060f0cf mdoc(7) police: protect trailing full stops of abbreviations
with a trailing zero-width space: `e.g.\&'.
2001-08-10 13:45:36 +00:00
ru
6b03fce48e mdoc(7) police: fix markup. 2001-08-10 10:43:45 +00:00
ru
edf518377f Update for 3.36. 2001-08-09 14:38:45 +00:00
ru
b9953222d0 Update for 3.36.
Reduce diffs to distributed, man(7) format, version.
Markup nits.
2001-08-09 14:38:10 +00:00
dd
b7554d2a1f Style fix: use .else where appropriate.
PR:		29489
Submitted by:	Joseph Mallett <jmallett@xMach.org>
2001-08-09 07:03:11 +00:00
dd
05ca6abd65 Print the peer's name and address in the "Connection establish"
message.  Similar information is given by the talk daemon when a
connection is requested, but that part isn't on the screen when the
main "talk" screen appears, and sometimes it's nice to know who you're
talking to.

Reviewed by:	ru
2001-08-09 06:45:35 +00:00
yar
cf93cda491 Replace the condemned access(2) by stat(2),
as per the discussion in -audit.
2001-08-08 21:22:48 +00:00
sheldonh
7950d85ec2 can not -> cannot 2001-08-08 18:32:06 +00:00
obrien
b091fda7f3 Clean up this thing a little. 2001-08-08 16:19:30 +00:00
obrien
b8f4f22990 Support the new "-i" (output MIME type strings) option by installing
the MIME files (both regular and precompiled).
2001-08-08 16:10:16 +00:00
obrien
1e95bfdcca Build and use the precompiled magic file. Precompiled magic files have
been supported since version 3.35, however it is just with version 3.36
that file has become verbose about it.
2001-08-08 15:53:58 +00:00
ru
5aa7d7faf0 Add entry for wsanchez. 2001-08-08 15:35:20 +00:00
tg
6348c039ba Silence some more warnings, mostly from `-W -Wwrite-strings'. 2001-08-08 10:58:50 +00:00
des
26d4324d74 Allow the user to specify port ranges against which to match inet sockets.
Suggested by:	roam
2001-08-07 19:59:52 +00:00
ru
4345758876 mdoc(7) police:
Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.
2001-08-07 15:48:51 +00:00
ru
a196f4a023 mdoc(7) police: bump document date for the previous delta. 2001-08-07 13:45:55 +00:00
ru
d3f04f1490 mdoc(7) police: sort xrefs. 2001-08-07 13:41:38 +00:00
ru
9542a93165 mdoc(7) police: bump document date for the previous delta, fix markup. 2001-08-07 13:40:07 +00:00
tg
fb3e81395f Fix warnings resulting from `-Wredundant-decls -Wstrict-prototypes'. 2001-08-07 11:09:15 +00:00
mike
b0dfeae7a3 Constify, staticize, and set WARNS=2.
MFC after:	3 days
2001-08-06 23:20:06 +00:00
dd
1c2950a4e5 can not -> cannot 2001-08-05 22:07:27 +00:00
mike
ee03551b7f o Move APNIC flag from -p to -A. Since, -p is usually associated
with specifying a port.
o Add the -p flag for specifying a port.  (PR: 28790)  This is
  useful for querying rwhois servers.  Example:
    whois -h rwhois.exodus.net -p rwhois 216.136.180.0
o Add the -c flag which allows one to get the same whois server
  that would normally be determined if no arguments were specified.
  (Concept based on work by phantom, requested by ache)  Example:
    whois -c ru TCNET-MNT-RIPN
o Deprecate -R flag in favour of -c ru.

PR:		28790
Reviewed by:	-audit, ache, phantom
2001-08-05 19:37:12 +00:00
dd
e4d2dd216e Document -d in usage.
Submitted by:	Martin Kammerhofer <mkamm@sbox.tu-graz.ac.at>
2001-08-05 16:01:34 +00:00
jon
306e18018e Fix using /usr/bin/ftp as a slave process on the end of a pipe by calling
fflush(stdout).  This is one ancient PR...

PR:		bin/1589
Submitted by:	imp
2001-08-05 08:39:58 +00:00
tg
35c464f8db Fix warnings from `-Wmissing-prototypes'. Staticize. 2001-08-03 10:47:56 +00:00
tg
0f2b8ea245 Sort SRCS. 2001-08-03 10:47:13 +00:00
sobomax
b4222d1bf2 Fix a cryptoless world by disconnecting libmp from the build when there is no
crypto bits installed and/or NOCRYPTO/NO_OPENSSL is defined. This unfortunately
meants that usr.bin/chkey, usr.bin/newkey and usr.sbin/keyserv have also to
be disconnected.

IMO it is merely a workaround, the proper solution is to move libmp to
src/crypto where it belongs and use libgmp for the cryptoless builds instead.

Missed by:	dd
2001-08-02 15:47:03 +00:00
sheldonh
80fcc4abbc MFS: in HISTORY section, fix release number of first appearance 2001-08-01 12:15:21 +00:00
tg
3425197e87 Don't wait for a keypress in INT 16 function 01, just return the current
state. This fixes Easytrax.
2001-08-01 11:47:06 +00:00
tg
06710de6d1 Mark debug() and fatal() as __printflike() and fix resulting warnings. 2001-07-31 11:27:48 +00:00
tg
255f937765 Sort options, remove unknown option 'f'. 2001-07-31 11:25:52 +00:00
bmilekic
d3544a6381 Add a "X KBytes of wired memory reserved" metric that represents
approximately the amount of memory allocated from the mbuf maps
and sitting in the mbuf allocator's cache containers, and display
in parantheses the percentage of said memory that is actually
in use at the given time `netstat -m' is executed.

Suggested by: mjacob
2001-07-31 08:19:49 +00:00
yar
d4e647fdae Don't use ".nofinger" as a string constant from within the code
since there is the ``pathnames.h'' file; use _PATH_NOFINGER instead.
2001-07-30 16:50:47 +00:00
tg
23487998fa - Add some more x86 instructions to emulate,
- emulate VGA read mode 0,
- emulate VGA write mode 1,
- minor cleanup.

Protel's Easytrax, a free PCB layout program, almost runs now; there are
still some problems with the keyboard emulation, but the graphics are fine
(albeit a bit slow).
2001-07-30 12:03:38 +00:00
tg
9638ec2b91 - Fix file names <:-(,
- attempt to find the X includes and libraries better,
- sort some things.

Submitted by:	bde
2001-07-30 11:38:20 +00:00
bde
832616d536 Fixed bitrot in DPADD in previous commit.
Fixed some style bugs (mainly disorder).
2001-07-30 11:16:39 +00:00
bde
c74fbf3c96 Removed garbage "CFLAGS+= -I.". This finishes backing out rev.1.4. 2001-07-30 11:08:11 +00:00
obrien
a0b366b942 Update to version 3.36. 2001-07-30 03:50:24 +00:00
obrien
5a7612fe44 Update to version 3.36.
I had to hack print.c due to some new bits that only compile on NetBSD.
I could not figure what the analogous FreeBSD bits are.
2001-07-30 03:50:04 +00:00
tmm
3ea330259b Correct the old length argument passed to sysctl to be a pointer to a
size_t (not to an int).

MFC after:	2 days
2001-07-29 21:56:14 +00:00
dd
a12e9377b2 Enable the new libmp in the build, and disable libgmp and its
henchmen.
2001-07-29 08:58:22 +00:00
mp
b9208b18d5 Properly handle wgetch(3) returning ERR. This prevents an abnormal exit
when a windows resize event (SIGWINCH) occurs.

Reported by:	John Doe <rhamming2001@yahoo.com> and others on -stable.
Reviewed by:	dd
MFC after:	1 week
2001-07-28 22:40:10 +00:00
se
815cafd7d0 Include value of command line argument that causes an error message or
warning in said message, since fetch may be run from a makefile or script
which does not print the command line.

Approved by:	des
2001-07-28 21:34:56 +00:00
markm
3d58155b67 Fix the environment handling:
However, there's still a bug in login.c
because you copy the environment *before* the call to pam_open_session,
which won't set the necessary variables set by /usr/ports/security/pam_ssh.

Submitted by:	Volker Stolz <stolz@hyperion.informatik.rwth-aachen.de>
2001-07-28 19:53:10 +00:00
mike
b9c905b586 Prevent chpass(1) from writing -1 in the UID or GID fields
in the password file by properly casting integers.

PR:		27757
Reviewed by:	des
Approved by:	des
MFC after:	4 days
2001-07-26 23:27:10 +00:00
brian
d106b78011 When -n is specified, don't attempt to turn hostnames found in utmp
into addresses as we have no idea what address family they belong to.

When -n is not specified, resolve IPv6 as well as IPv4 addresses found
in the host field of utmp.  Use realhostname_sa() to resolve addresses
(the old code was wrong).

Rename ``x'' to ``x_suffix'' to avoid confusion.

Hard code the host column width to 16 (against the imminent increase
of UT_HOSTSIZE in utmp.h).
2001-07-26 19:20:13 +00:00
bmilekic
0caeab3ccd - Do not handle the per-CPU containers in mbuf code as though the cpuids
were indices in a dense array. The cpuids are a sparse set and treat
  them as such, setting up containers only for CPUs activated during
  mb_init().

- Fix netstat(1) and systat(1) to treat the per-CPU stats area as a sparse
  map, in accordance with the above.

This allows us to properly boot with certain CPUs disactivated. However, if
we later decide to re-activate said CPUs, we will barf until we decide to
implement CPU spinon/spinoff callback hooks to allow for said CPUs' per-CPU
containers to get configured on their activation.

Reported by: mjacob
Partially (sys/ diffs) Submitted by: mjacob
2001-07-26 18:47:46 +00:00
tg
47f11fa9b1 Include <sys/kbio.h> or <machine/console.h>, depending on __FreeBSD_version.
This will reduce diffs to -STABLE.

Don't leave an image of the video RAM around.
2001-07-26 11:09:15 +00:00
tg
6767a338a4 Correct font names. Now, how on earth did this work on my system? 2001-07-26 11:05:31 +00:00
tg
cd2c06bb7e Fix bugs introduced in 1.26:
- restore -I. in CFLAGS
- add dependencies of objects on font headers
- missing dependencies of font headers on their sources

Suggested by:	bde
2001-07-26 11:04:08 +00:00
sheldonh
9bfb9eedcd Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. The
definitions are more readable, and it's possible that they're
more portable to pathalogical platforms.

Submitted by:   David Hill <david@phobia.ms>
2001-07-26 11:02:39 +00:00
mjacob
e095d37b91 Fix 64 bit issues so that sockstat && fstat work correctly on alpha.
PR:		29231
Submitted by:	pherman@frenchfries.net
MFC after:	2 weeks
2001-07-25 20:31:20 +00:00
fenner
1520807a7b Use sysctl to export multicast routing stats 2001-07-25 20:14:09 +00:00
sheldonh
78944dcef1 Fix breakage introduced in rev 1.26, with the introduction of
absoluate pathnames starting with /usr/src.

This fixes the installworld target for the case where the source tree is
not in /usr/src.
2001-07-25 12:21:27 +00:00
ache
b6764c0998 Remove non-existent (missing?) fonts.alias from beforeinstall: target 2001-07-24 19:25:19 +00:00
ache
8a1554a5e0 Add -I${.OBJDIR} to pick generated font*.h 2001-07-24 18:33:26 +00:00
obrien
ee6fd791db Expland `mymalloc' with malloc + error checking. 2001-07-24 14:15:51 +00:00
obrien
6a671f2684 Remove the misnamed `xmalloc' and replace its uses with the realloc (along
with error checking) that it actually was.
2001-07-24 14:14:11 +00:00
obrien
8503c8218a Remove the misnamed `emalloc' and replace its uses with calloc (along
with error checking) which it effectively was.  (malloc+memset)
2001-07-24 14:13:34 +00:00
obrien
44717cb5e9 Remove emalloc and expand to the malloc + error checking it was, where used. 2001-07-24 14:12:05 +00:00
obrien
56240ae808 Remove the misnamed `emalloc' and replace its uses with the calloc (along
with error checking) that it actually was.
2001-07-24 14:11:09 +00:00
obrien
0004ccf798 Remove the local basename in favor of the libc version.
Remove xmalloc and xstrdup and do the error checking at the place of use.
2001-07-24 14:09:47 +00:00
obrien
f842b779c3 Expland the emalloc to do the testing at the place of mallocing. 2001-07-24 14:08:02 +00:00
obrien
9032757ec8 Expand emalloc in-place, and remove the `rname' basename() implimenation. 2001-07-24 14:06:19 +00:00
obrien
6dc73139c0 Expand xmalloc in-place, along with xrealloc; which wasn't even ANSI in its
implementation.
2001-07-24 14:05:21 +00:00
obrien
4f82093ece Replace the local rname' with the cannonical basename'. 2001-07-24 14:04:20 +00:00
obrien
bc3447c652 Expand x{malloc,calloc,realloc,strdup} in-place.
(even found some unchecked naked uses)
2001-07-24 14:02:07 +00:00
kris
45eda4d161 yyerror() is a printflike function
MFC after:	1 week
2001-07-24 12:20:17 +00:00
tg
47c2c99b51 Clean up the code a bit:
- add $FreeBSD$;
- remove unused variables;
- add missing headers and prototypes;
- -Wshadow.
2001-07-24 11:50:23 +00:00
tg
97507091ff Rewrite video emulation. Features:
- slightly more accurate VGA hardware emulation;
- more int 10 functions, especially wrt to palette handling;
- first shot at graphics support;
- mode switching.

Bugs:

- graphics too slow;
- only 16 color modes work for now;
- works only under X, and only with 16 bit TrueColor visuals;
- far from being genuinely useful (I can play an old EGA game now, though
  (mahjongg.exe)).

Also, the code has been cleaned up a bit (more to come in a separate commit).
2001-07-24 11:44:20 +00:00
obrien
adeb9166b8 Quiet a [useless] compiler warning. 2001-07-23 23:27:28 +00:00
assar
fe8624bc3a revert last commit. using %option nounput is better
noted by:	Seth Kingsley <seth.kingsley@windriver.com>
2001-07-22 23:14:33 +00:00
mike
f322ed6873 Fix a bug I introduced in Rev. 1.21 that prevented 'whois test' from
working.

Reviewed by:	des
Approved by:	des
2001-07-22 18:23:24 +00:00
mpp
b836d8030e Fix some man page xrefs.
PR:		docs/26065
MFC after:	1 week
2001-07-22 11:51:11 +00:00
assar
d5b518a5b5 add an unused attribute to yyunput to avoid warnings (errors) when
it's not being used
2001-07-21 19:47:17 +00:00
mike
567548e3b8 o Add phantom's gethostinfo() function to reduce duplicated code.
o Increase readability by creating a wrapper for asprintf(3).
o Cast isdigit(3) argument to unsigned char for future locale
  changes.

Submitted by:	phantom
Reviewed by:	-audit, des
Approved by:	des
2001-07-20 16:44:44 +00:00
mike
a8951818b0 o Integrate security enhancements from OpenBSD.
- Don't assume environment variable HOME is not NULL.
o Integrate standards compliance from NetBSD.
  - Allow -- before the command.
  - Blocking SIGQUIT isn't standards compliant.
  - Proper exit(3) levels.
  - Actually append to nohup.out (as documented and required
    by standard) instead of clobbering it.
o Remove some FreeBSD specific access(2) cruft (relating to
  incorrect appending).
o Document the fact that two or more instances of nohup can
  append to the same file.
o Constify; Staticize functions; Set WARNS?=2

Reviewed by:	bde
Approved by:	des
Obtained from:	NetBSD, OpenBSD
MFC after:	9 days
2001-07-19 21:25:10 +00:00
obrien
3293448193 Portability configuation for LukeM's ftp client. 2001-07-19 17:45:52 +00:00
ru
9196524e13 Fixed the race caused by not checking the result of fgets(3):
/usr/bin/env MALLOC_OPTIONS=J banner </dev/null

PR:		bin/29074

Fixed the problem when banner(6) would eat last character:

	echo -n a | banner

MFC after:	1 week
2001-07-19 08:07:09 +00:00
kris
5f6815f5a2 Embed $FreeBSD$ as an rcsid[] 2001-07-19 01:39:12 +00:00
des
45c6fea352 If we're writing to stdout, we don't care about the size.
Submitted by:	wollman
2001-07-17 21:23:43 +00:00
des
1d3699a988 WARNS cleanup + remove an unused macro and an unused function argument. 2001-07-17 21:22:32 +00:00
mike
c13f900ffc Re-write the logic that finds the whois server to query.
[This fixes a bug where one would type 'whois foo.bar.'
and get an error because of the trailing period.]

PR:		28880
Approved by:	des
2001-07-17 20:40:41 +00:00
ru
f621704c2a Clarify that MAKEOBJDIR and MAKEOBJDIRPREFIX are environment variables.
Submitted by:	bde
2001-07-16 15:33:34 +00:00
kris
c31a4fa763 Add myself 2001-07-16 00:17:48 +00:00
dd
911ca14c87 Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
markm
1dec611e10 Switch on SHA1 hashing. 2001-07-14 08:34:26 +00:00
ru
5001e16d30 mdoc(7) police: -xwidth has been fold into -width. 2001-07-13 09:09:52 +00:00
ru
e381dd2c3a Generate top.local.h and manpage dynamically, with sed(1) script.
The generated manpage will now describe the actual behavior of
top(1) WRT how many processes it displays.  This also eliminates
all troff(1) warnings.
2001-07-12 15:07:30 +00:00
sobomax
ccc325a5ee Build/install bzip2 documentation (info page). 2001-07-12 14:44:17 +00:00
ru
044b30cecd Eliminate troff(1) warnings that were hiding some useful text. 2001-07-12 14:29:59 +00:00
ru
5e692edf62 Eliminate troff(1) warnings that were hiding some useful text. 2001-07-12 14:16:48 +00:00
ru
d929062987 mdoc(7) police: removed punctuation after the last SEE ALSO xref. 2001-07-10 18:00:19 +00:00
ru
36f138439b mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 14:16:33 +00:00
ru
d19961ab7f mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 10:42:19 +00:00
obrien
6b523e5046 style nit 2001-07-09 23:12:23 +00:00
markm
1c3a14b401 Remove the S/Key key-handling apps, which are no longer needed, as
they are replaced by opiepasswd, opieinfo and opiekey.
2001-07-09 17:40:57 +00:00
markm
cb75b1ef0e Provide a WANT_INSECURE_OPIE compile-time option, which is useful if
you encrypt all traffic routinely, and is also useful for debugging.

Also, (properly) set SUID bit on relevant apps - opieinfo and
opiepasswd, which need it to mess with /etc/opiekeys.
2001-07-09 17:37:52 +00:00
ru
302824a321 mdoc(7) police: eliminate -ww warnings. 2001-07-09 15:46:02 +00:00
dd
eaa6ee03b8 mdoc(7) police: remove extraneous .Pp before and/or after .Sh. 2001-07-09 09:54:33 +00:00
brian
8636b161b3 Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
des
edbf7599a6 Fix an embarassing if-test-reversal bug that broke scheme guessing. 2001-07-08 15:17:26 +00:00
ru
05e503d80a mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2). 2001-07-06 16:46:48 +00:00
ru
83c24735dc mdoc(7) police: -column lists require column width specifiers. 2001-07-06 10:07:43 +00:00
ru
554102f1dd mdoc(7) police: moved -u down, fixed markup, removed hard sentence break. 2001-07-05 13:27:33 +00:00
ru
9fe354114f Document -u in the usage().
Make usage fit on a standard 80-column display.
2001-07-05 13:21:20 +00:00
kris
377ac46985 Mark a function as __printflike() and fix a non-exploitable format string
warning.

MFC after:	1 week
2001-07-05 10:08:25 +00:00
kris
e8a61c0bf5 Mark some functions as __printflike()
MFC after:	1 week
2001-07-05 09:54:59 +00:00
dd
5f1d2a6542 Spelling police: extention -> extension. 2001-07-05 08:51:08 +00:00
kris
62daf61425 Don't generate syslog() statements which have format string vulnerabilities.
MFC after:	1 week
2001-07-05 08:17:41 +00:00
ru
26bb2b8341 mdoc(7) police: sort xrefs. 2001-07-05 06:40:06 +00:00
ru
ec9340a9ea mdoc(7) police: fixed formatting. 2001-07-05 06:35:03 +00:00
ru
b34776a031 mdoc(7) police: fixed formatting bugs in rev. 1.27. 2001-07-05 06:27:52 +00:00
ru
c157225440 mdoc(7) police: add missing .Ar in SYNOPSIS. 2001-07-05 06:20:29 +00:00
ru
c1d8c6e04f mdoc(7) police: add missing .Ar in SYNOPSIS. 2001-07-05 06:11:10 +00:00
dd
0e52764a02 Revert previous commit; it broke large file support on platforms that
had it to begin with (e.g., the Alpha).

Submitted by:	bde
2001-07-02 22:51:33 +00:00
wilko
10671e2b79 s/Netherlands/the Netherlands
ISO3166 is *plain wrong* ...

Requested by: grog
MFC after:	1 week
2001-07-02 18:31:34 +00:00
dd
fdda055e00 Set WARNS=2 on programs that compile cleanly with it; add $FreeBSD$
where necessary.

Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-30 05:39:36 +00:00
dd
9b64cdc70f Silence a warning on the Alpha.
Reviewed by:	md5(1)
2001-06-30 05:32:29 +00:00
dd
1de613d311 Silence a warning on the Alpha. 2001-06-30 05:29:57 +00:00
dd
de71153c8e Correct a spelling error.
PR:		28527
Submitted by:	Giorgos Keramidas <keramida@ceid.upatras.gr>
2001-06-29 21:09:09 +00:00
obrien
9a602b2fd4 Fix editor'o where I lost the `+'. 2001-06-29 13:54:56 +00:00
yar
75f9f9392e Clarify the feature that -exec parameters won't get
shell-expanded when the specified utility is run.

MFC after:	5 days
2001-06-29 12:59:20 +00:00
ru
782892a71f - Added entry for Daniel C. Sobral.
- Fixed entry for Charlie Root.
2001-06-29 09:47:27 +00:00
ru
ada9cef5f6 Make `rttrash' variable (#routes not in table but not freed) visible
through ``netstat -rs''.
2001-06-29 09:08:24 +00:00
ru
ac2d37d7fe Fixed bogon in revision 1.37. Don't bogusly print a radix node's
duped key marker (``=>'') for routes with non-positive rmx_expire
metric, such as ethernet interface routes.

MFC after:	1 week
2001-06-29 08:37:12 +00:00
wilko
e2b9d0abef s/Netherlands/the Netherlands/g 2001-06-28 22:05:32 +00:00
guido
072728d905 Up the average age and hope I can still show my face next saturday. 2001-06-28 21:52:49 +00:00
ume
111d276984 - create an entry of IPV6CTL_STATS sysctl.
- fix the problem that netstat doesn't show raw6 and icmp6 pcblist.
- make netstat use sysctl to retreive stats of ipv6 and icmpv6
  instead of kread.

Obtained from:	KAME
MFC after:	1 week
2001-06-28 18:06:15 +00:00
tg
d021e1859a Fix another buffer overflow.
PR:		15593
Submitted by:	Przemyslaw Frasunek <venglin@lagoon.FreeBSD.lublin.pl>
2001-06-28 12:02:45 +00:00
msmith
f7198d2b3a Based on a draft email in David Greenman's files, add the birthdate
of FreeBSD.

Submitted by:	dg
2001-06-28 04:08:25 +00:00
mikeh
e65f95daf3 Add the -E flag to not send messages that have an empty body. This is
useful for piping cron script error output by mail.

PR:		bin/9494
Obtained from:	NetBSD
MFC after:	2 weeks
2001-06-28 02:40:07 +00:00
dd
057bf882e3 Minor grammar cleanup.
Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-27 23:08:57 +00:00
dd
c42db86ef3 Implement recursive IP address searches based on the results of a
query to ARIN.

PR:		28426
Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-27 23:06:47 +00:00
dd
4cbc233a90 Correct path to wtmp.
PR:		28433
Submitted by:	Joseph Mallett <jmallett@xMach.org>
2001-06-27 06:00:26 +00:00
mikeh
71ab6ae0a0 Sync manpage and usage. Also fix bug that would always interpret a -c as a
process clear.

PR:	bin/15456
MFC after:	2 weeks
2001-06-27 02:52:57 +00:00
dd
2bbaae6092 Staticize, constize, de-registerize; don't shadow global definitions;
set WARNS=2.

Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-26 22:22:19 +00:00
schweikh
9e705f87d9 Increase column widths when using -i (they are now wide enough to
hold a 64bit or 32bit ~0 value, i.e. 20 and 10; this anticipates
soon-to-be machines with Exahertz rtc interrupt frequencies. :-)

PR:		bin/16206
Submitted by:	John Capo <jc@irbs.com>
MFC after:	1 week
2001-06-26 18:49:10 +00:00
ru
0a8dcea155 Submitted by: hm 2001-06-26 08:00:43 +00:00
dan
c9b23b0586 Share my DOB with the world! 2001-06-26 05:04:03 +00:00
dwcjr
2c70b1c84e Originally stated wrong birthplace, thought it was current location. 2001-06-26 04:11:19 +00:00
dd
b13abb85cf The `file' argument is optional.
Obtained from:	OpenBSD
2001-06-26 02:14:13 +00:00
msmith
0cf535a7ac Admit the shameful truth; I'm really from the east coast. But I left
shortly after I was born.  Honest!
2001-06-25 21:37:43 +00:00
dd
0dc5b41655 Silence -Wshadow and -Wmissing-prototypes; set WARNS=2.
Submitted by:	 Mike Barcroft <mike@q9media.com>
2001-06-25 21:25:27 +00:00
ru
672e483c4a Submitted by: andreas 2001-06-25 09:11:45 +00:00
dd
7894e59b7f Nuke unused variables. 2001-06-24 23:41:57 +00:00
dd
bbd68b6b40 Include missing header files which define functions for which gcc has
builtints (e.g., exit, strcmp).
2001-06-24 23:22:14 +00:00
dd
dc0185a459 Include missing header files which define functions for which gcc has
builtins (e.g., exit, strcmp).
2001-06-24 19:50:42 +00:00
dd
84f4d732c8 Include missing header files which define functions for which gcc has
builtins (e.g., exit).

Submitted by:	Mike Barcroft <mike@q9media.com>
2001-06-24 19:41:18 +00:00