Commit graph

4967 commits

Author SHA1 Message Date
Sheldon Hearn db6da75556 Remove unnecessary macro introduced in previous commit.
Also, the previous commit failed to reference:

PR:	12731
Submitted by:	dwmalone@maths.tcd.ie (David "Inetd" Malone)
1999-07-22 16:10:40 +00:00
Sheldon Hearn 0a418352f9 Don't leak pipe descriptor to daemons on execv(). 1999-07-22 15:57:37 +00:00
Sheldon Hearn dd09a74de7 Signal handlers should use _exit(2) and not exit(3). 1999-07-22 14:47:29 +00:00
Kazutaka YOKOTA 39c33d76ab - Add new argument off' to the -b' option. This will turn off
the bell.
- Document it in the man page.
- Fix a couple of typo in the man page.

Submitted by: cpiazza
1999-07-22 14:19:14 +00:00
Sheldon Hearn 5ff3afce6f Move code for all builtin services from inetd.c to builtins.c, including
the Green Piece. :-)

In future, new builtin services are less likely to need to touch the
already tangled inetd.c .
1999-07-22 14:11:26 +00:00
Jordan K. Hubbard d49c1fb83f Deal with new linux compat package naming.
Submitted by:	Marcel Moolenaar <marcel@scc.nl>
1999-07-22 09:18:12 +00:00
Jordan K. Hubbard 5bc001833f Intentionally do the wrong thing in using the initial DHCP values for
ifconfig, essentially stealing the lease until the user goes and changes
it.  The alternative, sadly, is total dysfunction since bpf isn't in
GENERIC and network connectivity would otherwise fail completely on first
bootup when DHCP configuration was attempted again.

The ultimate answer here is to make either bpf a loadable kernel module
(which security conscious admins will be able to simply remove from /modules)
or come up with a lighter weight mechanism just for dhcp and other apps that
need to see broadcast packets but not otherwise sniff the wire in full
bpf glory.
1999-07-22 08:51:42 +00:00
Sheldon Hearn a9ed85ec46 Fix for the hosts_options(5) spawn option.
Restore default SIGHUP, SIGCHLD and SIGALRM handlers in forked inetd
processes. This happens to work around the fact that hosts_access()
doesn't (but should) set SIG_IGN as the handler for SIGCHLD while it
handles the spawn option, but it would make sense even if that were
not true.

This does not address the leaking descriptors issue discussed on the
same PR.

PR:	12731
Reviewed by:	des
Submitted by:	David Malone <dwmalone@maths.tcd.ie>
1999-07-21 16:09:45 +00:00
Sheldon Hearn 6134dbe0ac Fix horribly broken comment. The submitter of the associated code sent
me the right comment and I bastardized it. :-(
1999-07-21 12:19:24 +00:00
Jordan K. Hubbard eb31d123ad XFree86 3.3.4 seems to require "XWINHOME" to be set for the setup tool
to work (fnark).
1999-07-20 21:06:18 +00:00
Brian Feldman e50479cc81 Make bcd2int work (resume time reporting now works.)
PR:		12613
Submitted by:	Michael Constant <mconst@not.there.com>
1999-07-20 15:37:28 +00:00
Brian Feldman 94c8c4fb16 Make wall_cmos do something.
PR:		12614
1999-07-20 15:31:23 +00:00
Jordan K. Hubbard 9df36b4d0d The matcd driver is acting strange (returning a successful open even
when it fails).  Disable it in sysinstall for now.
1999-07-20 08:47:35 +00:00
Jordan K. Hubbard 2d0fba453e Fix a bad dhcp keyword; it's host-name not server-name. 1999-07-20 08:08:24 +00:00
Jordan K. Hubbard 6aa3426ca9 Add slovakian ftp mirror.
Submitted by:		"Tomas TPS Ulej" <tps@ti.sk>
1999-07-20 07:50:26 +00:00
Jordan K. Hubbard 305fbc7e78 More Alpha ifdefage. 1999-07-20 07:39:22 +00:00
Mike Smith 5fd6b620bb Make memcontrol's internal help actually work. No substitute for a real
manpage, but at least now you can get syntax help without resorting
to reading the source.
1999-07-20 04:33:14 +00:00
Robert Nordier 0277da1675 Activate kgzip. 1999-07-19 20:22:44 +00:00
Robert Nordier 4566a1d1d3 kgzip is a kzip(8) replacement able to compress and link bootable
32-bit binaries in both ELF and a.out format.

Development sponsored by Global Technology Associates, Inc.

Reviewed/tested by: abial
1999-07-19 18:00:18 +00:00
Jordan K. Hubbard 96d6032053 Catch an XFree86 3.3.4 update I missed. 1999-07-19 11:58:01 +00:00
Jordan K. Hubbard ba7a9304d9 Update for XFree86 3.3.4 1999-07-19 11:49:22 +00:00
Jordan K. Hubbard 0d7065f9ce Wait for dhclient in a far saner fashion.
Submitted by:	obrien
1999-07-19 11:00:56 +00:00
Jordan K. Hubbard 56278e0f8d cleanup pass over new stuff. 1999-07-19 10:18:52 +00:00
Jordan K. Hubbard ad183257e6 Another batch of fixes for dhcp support in sysinstall, now dragging
in some code from C. Stone to parse the lease information.  This is still
a WIP and this commit is largely intended to allow others to sync up; the
dhclient code still only works when doing dhcp configuration post-install
and requires a bit more work on the boot floppy before it will truly
work in the minimal bootstrapping role.
1999-07-19 10:06:18 +00:00
Jordan K. Hubbard 43d5ccb239 Some additional optimizations for using DHCP. 1999-07-18 10:18:06 +00:00
Jordan K. Hubbard bb1bff6dec Miscellaneous fixes for dhcp client support. 1999-07-18 02:20:56 +00:00
Brian Somers 02ad5579d0 Fix a typo
Submitted by:	Rich Wood <rich@chugaboom.net>
1999-07-17 10:33:57 +00:00
Jordan K. Hubbard b3af40fb2b Add in a hack to turn off unaligned access warnings for alpha.
Submitted by:	msmith
1999-07-16 22:07:09 +00:00
Jordan K. Hubbard ec0752f80b Don't offer compat dists on alpha since it makes no sense to do so.
Suggested by:	msmith
1999-07-16 22:03:27 +00:00
Sheldon Hearn 2ab0563dfe Document the new {auth,ident,tap} service and provide examples in the
configuration file.

Requested by:	green
1999-07-16 15:41:14 +00:00
Jordan K. Hubbard 605c88e44b Re-enable DHCP client support again (but optional and turned off by default
for the time being) for debugging purposes.

Fix bug in options selection.
1999-07-16 11:13:09 +00:00
Andrzej Bialecki a4df7ffed9 Add a knob to avoid DES code when making crunched binary. This isn't a beauty
incarnated, it just matches other deficiencies related to crunchgen
and friends... and we already have similar code in ppp/Makefile.

RELEASE_CRUNCH should be axed, but for now let's be consistent.

Submitted by:	Patrick Powell <papowell@astart.com>
1999-07-15 21:47:52 +00:00
Brian Feldman b81a43e288 By popular demand, ident_stream now takes arguments. Ex:
# This enables the old, fake ident service.
auth    stream  tcp     nowait  root    internal
# This enables the new, real ident service.
auth	stream	tcp	nowait	root	internal	auth -r
# This enables ~/.fakeid support, too.
auth	stream	tcp	nowait	root	internal	auth -r -f
1999-07-15 17:01:43 +00:00
Warner Losh c0c4dbc6d4 Fix a dangling else warning from new egcs. 1999-07-15 03:04:31 +00:00
Brian Somers 55b04d88d5 Don't declare `end' if we aren't compiling radius support. 1999-07-15 02:02:51 +00:00
Brian Feldman d33eb4c802 This is the working internal ident service. Turn it on by setting
the make variable REAL_IDENT, and ~/.fakeid support can be added
with FAKEID set. Note that the default behavior is the same as
the old behavior.
1999-07-15 01:34:02 +00:00
Foxfair Hu 542562e6e1 Change the wrong URL of back-issue FreeBSD newsletter. 1999-07-14 02:23:16 +00:00
Nik Clayton 414a35e60a Add $Id$, to make it simpler for members of the translation teams to
track.

The Id line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

     .\"    $Id$
     .\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by:            bde
1999-07-12 20:12:29 +00:00
Nik Clayton 1ba1d54c41 Add $Id$ to these manpages.
Approved by:            bde
1999-07-12 20:04:59 +00:00
Kazutaka YOKOTA 01533d852e Improve Logitech MouseMan+ protocol support. 1999-07-12 15:16:14 +00:00
Brian Feldman 715400fa2a Fix ``:''.
PR:		12589
1999-07-11 08:32:24 +00:00
Mitsuru IWASAKI a080a18c87 Fix typo ($Id: ... % --> $Id: ... $). 1999-07-10 18:28:26 +00:00
Mitsuru IWASAKI 07c279cd0d Activate apmd. 1999-07-10 17:44:02 +00:00
Mitsuru IWASAKI d50a71bdd8 The apmd package provides a means of handling various APM events from
userland code.  Using apmd.conf, the apmd(8) configuration file, you
can select the APM events to be handled from userland and specify the
commands for a given event, allowing APM behaviour to be configured
flexibly.

Have Fun!

Submitted by:	iwasaki, KOIE Hidetaka <hide@koie.org>
Reviewed by:	-hackers, -mobile and bsd-nomads ML folks.
Contributed by:	Warner Losh <imp@FreeBSD.org>,
	Hiroshi Yamashita <bluemoon@msj.biglobe.ne.jp>,
	Yoshihiko SARUMARU <mistral@imasy.or.jp>,
	Norihiro Kumagai <kuma@nk.rim.or.jp>,
	NAKAGAWA Yoshihisa <nakagawa@jp.FreeBSD.org>, and
	Nick Hilliard <nick@foobar.org>.
1999-07-10 17:39:36 +00:00
Brian Somers ad21dff290 Oops - add a missing cast. 1999-07-10 00:08:19 +00:00
Brian Somers 32bd4110d5 Leap through one more hoop to avoid alignment problems. 1999-07-10 00:03:58 +00:00
Poul-Henning Kamp df99b42329 Add example of how to create a jail. 1999-07-09 21:35:50 +00:00
Sheldon Hearn 499067071c Use the proctitle to indicate that we're busy wrapping a request for a
service. Inetd already uses the process title to indicate that a request
for an internal service is being serviced, so this addition is fairly
orthogonal.

Submitted by:	David Malone <dwmalone@maths.tcd.ie>
1999-07-09 11:46:45 +00:00
Sheldon Hearn 10d03f50ad Allow internal and external wrapping to be enabled independantly of
each other. Instead of allowing the -w option to be specified twice,
we now take -w (wrap external) and -W (wrap internal).

Discussed with:	markm
1999-07-09 11:19:01 +00:00
Bill Paul 3ebb090530 This commit adds driver support for the SysKonnect SK-984x series
gigabit ethernet adapters. This includes two single port cards
(single mode and multimode fiber) and two dual port cards (also single
mode and multimode fiber). SysKonnect is currently the only
vendor with a dual port gigabit ethernet NIC.

The ports on dual port adapters are treated as separate network
interfaces. Thus, if you have an SK-9844 dual port SX card, you
should have both sk0 and sk1 interfaces attached. Dual port cards
are implemented using two XMAC II chips connected to a single
SysKonnect GEnesis controller. Hence, dual port cards are really
one PCI device, as opposed to two separate PCI devices connected
through a PCI to PCI bridge. Note that SysKonnect's drivers use
the two ports for failover purposes rather that as two separate
interfaces, plus they don't support jumbo frames. This applies to
their Linux driver too. :)

Support is provided for hardware multicast filtering, BPF and
jumbo frames. The SysKonnect cards support TCP checksum offload
however this feature is not currently enabled (hopefully it will
be once we get checksum offload support).

There are still a few things that need to be implemeted, like
the ability to communicate with the on-board LM80 voltage/temperature
monitor, but I wanted to get the driver under CVS control and into
-current so people could bang on it.

A big thanks for SysKonnect for making all their programming info
for these cards (and for their FDDI and token ring cards) available
without NDA (see www.syskonnect.com).
1999-07-09 04:30:09 +00:00
Kazutaka YOKOTA e47178acae Do not list a null string in a dialog box. 1999-07-07 13:20:38 +00:00
Jordan K. Hubbard ad4faaa504 invoke fvwm properly 1999-07-07 09:47:41 +00:00
Poul-Henning Kamp 2cde7060d5 update fla related entries. 1999-07-06 20:40:22 +00:00
Jordan K. Hubbard 152a27509b Don't ask about Linux emulation on the alpha (for now). 1999-07-06 09:19:36 +00:00
Tatsumi Hosokawa 0f37309e5c Use #include <pccard_conf.h> instead of -DPCCARD.
Now we don't have to make clean before make boot.flp's.
1999-07-06 09:16:00 +00:00
Jordan K. Hubbard 2618634bae Add an option for more fully enabling linux compatibility. 1999-07-06 08:45:40 +00:00
Nik Clayton 5cb0ef41b5 Make the source and the man page agree about the flags accepted by
ntpdate.

PR:             docs/12344
Submitted by:   Gerhard Gonter <gonter@whisky.wu-wien.ac.at>
Reviewed by:    nik
1999-07-05 23:06:33 +00:00
Kazutaka YOKOTA d37fc024fe Added the EXAMPLE section and try to make the text slightly more informative.
Grammar and Spelling Reviewed by: mpp

While mpp kindly checked grammar and spelling, any technical errors
remaining in the man pages are entirely of mine.
1999-07-05 09:58:41 +00:00
Tatsumi Hosokawa 2a5512b1c9 configure "pccardd_flags" in /etc/rc.conf by sysinstall. 1999-07-04 15:54:14 +00:00
Tatsumi Hosokawa 631b67070b Modified to configure pccard_mem in /etc/rc.conf by sysinstall. 1999-07-04 15:11:23 +00:00
Peter Wemm 1b24aa44b9 Delete special handling for 'device-driver' suffix, it's not used in
the kernel source now.
1999-07-03 19:22:52 +00:00
Michael Haro 582913b94e wcd -> acd
Submitted by:	 Ruslan Ermilov <ru@ucb.crimea.ua>
1999-07-03 05:42:38 +00:00
Jordan K. Hubbard 7050843886 Eliminate some varargs abuse. 1999-07-02 22:36:14 +00:00
Sheldon Hearn eb0fde47f8 Allow service alias names from /etc/services to be used when specifying
internal services in inetd.conf .

The inetd(8) manpage used to say that the official name of a service
_must_ be used, yet inetd itself was hardcoded to used a service alias for
the auth service, namely ident!

Rather than change inetd.conf and break existing configurations on next
upgrade, we now allow service aliases as well as official names. This
allows the software to work as expected and still support existing
configurations.

This should not breaking existing wrapped configurations either and the
inetd(8) manpage already states that it is the service name specified in
inetd.conf that is used for calls to hosts_access(3).

PR:	11796
Reported by:	Alex Charalabidis <alex@wnm.net>
Approved by:	des
1999-07-02 16:21:13 +00:00
Sheldon Hearn 27fd1dba4e Clarify that the services name, as specified in inetd.conf, for an
internal service should be used as the daemon name when constructing
hosts_access(5) rules.
1999-07-02 15:58:32 +00:00
Sheldon Hearn 1361b1fd76 Back out previous commit. Allowing `-' as a pseudonym for /dev/stdin is
legacy behaviour inherited from systems that don't have /dev/stdin.

Requested by:	bde
1999-07-02 12:31:31 +00:00
Jordan K. Hubbard 9cbedf095b Fix stupid error where more bits where set than actual distributions
used.  Doh!

Embarassingly-pointed-out-by:	Brian Dean <brdean@unx.sas.com>
1999-07-02 02:00:23 +00:00
Mike Spengler 2c7d6d81ef Modify code to be -Wall'able.
PR: bin/11315
1999-07-01 20:48:59 +00:00
Peter Wemm 2da5c22ea3 Don't include trailing whitespace in ID tokens before comments. ie:
options FOO=10		# comment
would give FOO the value of "10		" and that caused unwanted
touches on the opt_*.h files.

I hope I've got this right..
1999-07-01 16:20:16 +00:00
Peter Wemm 02e7144a4e Detect and remove defunct or unknown options from opt_*.h files. This
can happen when options are removed from the options files.
1999-07-01 16:17:13 +00:00
Sheldon Hearn 1efeefd521 Ommitted in previous commit message:
Submitted by:	David Malone <dwmalone@maths.tcd.ie>
1999-06-30 23:47:46 +00:00
Sheldon Hearn c48c2d6d38 Enable wrapping for dgram services and fix logging so that -l really
does log all connections.
1999-06-30 23:36:39 +00:00
Sheldon Hearn 2835cbd026 Allow the use of `-' as an argument to the -w option so that standard
input may be used (e.g. gunzip -c /var/log/wtmp.Jan.gz | ac -w - ).

PR:	12467
Submitted by:	wollman
1999-06-30 21:46:03 +00:00
Kris Kennaway dac696d0ca Grammar and spelling fixes
Obtained from:	OpenBSD
1999-06-30 12:49:56 +00:00
Tatsumi Hosokawa a4faaa53b0 Changed pcicmem and cardirq variables to non-dirty variables. 1999-06-30 05:04:37 +00:00
Tatsumi Hosokawa 0f1bf4524a pccard_beep parameter is not supported by rc.conf and rc.pccard of -current.
(I'll port it later...)
1999-06-30 04:16:08 +00:00
Tatsumi Hosokawa 04b21fd64b Added -z and -i option. 1999-06-30 03:49:30 +00:00
Tatsumi Hosokawa 3e478b3901 FreeBSD does supports LKM now.
PR: doc/10331
Reviewed by: mpp@freebsd.org
Submitted by: Andreas Gustafsson <gson@araneus.fi>
1999-06-29 23:59:15 +00:00
Pierre Beyssac 9d1163f7c3 Move call to umask(0) back into pw_util(), because the latter
function is also used by chpass(1) and passwd(1).
1999-06-29 01:04:10 +00:00
Sheldon Hearn 9735000dd4 Sync usage() with the manpage.
Approved by:	mpp
1999-06-28 11:27:14 +00:00
Sheldon Hearn 8d0fe86993 Fix broken logic: (!wrap || log) -> (!wrap && log) .
Reported by:	David Malone <dwmalone@maths.tcd.ie>
1999-06-28 09:28:17 +00:00
David E. O'Brien 63b5983b9e Syntax for user/group is changed from "user.group" to "user:group" to be
consistant with chown(8).
1999-06-28 03:15:02 +00:00
Bill Fumerola 40bebd321a New ports/{java,irc,x11-servers} categories, Step #5 - update misc files. 1999-06-28 02:37:34 +00:00
Sheldon Hearn 6e4989b255 Fix the SYNOPSIS to reflect that the -w option can be specified twice.
Requested by:	obrien
Approved by:	mpp
1999-06-27 21:07:55 +00:00
Sheldon Hearn 54f5ebed00 Add command-line option (-w), specified once to enable wrapping and
twice to enable wrapping for internal wrapping as well. If the option is
not specified wrapping is turned off so that inetd will behave exactly
as it used to before TCP Wrappers was imported.

Change etc/defaults/rc.conf so as to encourage wrapping on new systems.

Clarify the use of TCP Wrappers in the IMPLEMENTATION NOTES of the
manual page.

Approved by:	jkh
1999-06-27 18:05:34 +00:00
Mike Pritchard 25b6a7d131 Minor mdoc fix. 1999-06-26 23:16:40 +00:00
Pierre Beyssac 2ece3ed4c8 Force umask to 077 (instead of 000) during the edit phase, to get
secure permissions in case the user attempts to save something to
a file of his own.

Move umask stuff out of pw_init() into main() for better visibility
of overall umask tweaking logic.

PR:		misc/11797
1999-06-26 12:15:39 +00:00
Sheldon Hearn 7cf53d0aab Report the correct master.passwd path on failure when the -d option is
used.
1999-06-26 10:45:06 +00:00
Sheldon Hearn af2d5f9b31 Add -d option to vipw(8) to allow selection of an alternative directory
for the password files.

PR:	2703
Submitted by:	jmg
1999-06-26 07:16:42 +00:00
Brian Somers 6cb576792a Correct usage message 1999-06-26 03:11:39 +00:00
Brian Somers ddd6808024 Don't bother read()ing if we ``expect'' nothing in our chat script. 1999-06-26 02:54:36 +00:00
Brian Somers 6a32b41413 If we run out of chat script immediately after a successfully executed
expect-send-expect sequence, finish gracefully, don't core dump.
This bug has been there for over a year - I could never reproduce it !

Straw provided by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
1999-06-26 02:54:24 +00:00
Nick Hibma 81d3029772 Fix typo (missing double quote) 1999-06-24 17:20:54 +00:00
Warner Losh 01f6620685 Per Ken's request, back out my last change to this file. iostat's man
page documents '?' as a valid option, as does the usage message.  None
of the other programs' man pages documented '?' as a valid option.
1999-06-24 07:39:25 +00:00
Warner Losh 35994ac2c0 Two getopts related nits:
o getopt returns -1 rather than EOF on errors
	o getopt returns '?' for characters it doesn't know about, so
	  don't include them in the getopt options string.
1999-06-24 06:43:21 +00:00
Warner Losh 02db1769f3 '?' shouldn't be in the usage string. Unknown characters are already
converted to '?'.
1999-06-24 06:33:24 +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
Bill Fumerola 69f8389253 If we are going to have a case for '?' then we should define it in Options.
Submitted by:	Ben Olson <bseth@chc-chimes.com>
1999-06-23 16:54:38 +00:00
Brian Somers 1f9e5fe5fa Support `igmp' filters.
Mostly submitted by: Timo Geusch <freebsd@sleepycat.ukpeople.net>
1999-06-23 16:48:24 +00:00
Brian Somers dead5c07cc The ports tree is now 83MB. Change `about 50MB'' to `about 90MB''.
Suggested by: Mark Knight <markk@shrewd.demon.co.uk
1999-06-23 08:40:56 +00:00