Commit Graph

6254 Commits

Author SHA1 Message Date
gshapiro
2d246e5848 Remove STARTTLS support as it breaks builds without crypto installed.
Waiting to hear back regarding the best way to do this.
2000-10-12 17:04:32 +00:00
peter
2225f5e71f With apoligies to Greg Shapiro, fix the world. The previous commit
lost -lutil and -lwrap by replacing $LDADD and $DPADD rather than
appending to them with +=.
2000-10-11 12:19:42 +00:00
gshapiro
c1aaccb362 Style fixes 2000-10-11 05:04:21 +00:00
gshapiro
3fa189d754 NOCRYPT imples NO_OPENSSL.
Still need to solve the distribution problem.

Submitted by:	kris
2000-10-11 03:35:32 +00:00
gshapiro
4c16456564 Build sendmail with STARTTLS support unless NO_OPENSSL is set. 2000-10-10 18:15:41 +00:00
hm
bcd5619615 Do not exit when no holiday file is found. Issue warning and continue. 2000-10-10 13:28:49 +00:00
sanpei
22e199d220 print out error reason if it was failed in assign_io
Obtained from:	PAO3
2000-10-10 13:01:18 +00:00
wollman
5e8b712997 Don't depend on <sys/stat.h> bogusly including <sys/time.h> (and thereby
<time.h>).
2000-10-10 01:50:26 +00:00
archie
3b25712a62 Fix bug in "read" command.
Submitted by:	Dave Cornelius <dc@packetdesign.com>
2000-10-10 01:34:20 +00:00
brian
38d20cb09b If write() gives -1/ENOBUFS, keep the packet and sleep for 1/10th
of a second before attempting to write it again (unless there's
something else to do instead).
2000-10-09 22:49:44 +00:00
brian
04b784a95b Create fd_sets big enough to handle getdtablesize() descriptors. 2000-10-09 21:18:23 +00:00
bmah
fdea75d5c4 Fix typo: terrabytes->terabytes.
PR:		docs/21837
Submitted by:	Tony Finch <dot@dotat.at>
2000-10-09 21:17:16 +00:00
hm
01e2ae3164 remove MAINTAINER: i'll develop and maintain i4b from now on in the
FreeBSD-current tree
2000-10-09 14:29:16 +00:00
hm
3ab90621da update to i4b version 0.95.04 2000-10-09 14:22:51 +00:00
sumikawa
658571f513 - simplify option flags
- do not print header when using -c
- linklocal address are not cleared when using -c

Obtained from:	KAME
2000-10-09 09:28:49 +00:00
kris
2b56a7adeb String buffer overflow cleanup.
Reviewed by:	green, alex
2000-10-09 09:07:45 +00:00
phk
112ef7f020 Initiate deorbit burn sequence for <machine/mouse.h>.
Replace all in-tree uses with <sys/mouse.h> which repo-copied a few
moments ago from src/sys/i386/include/mouse.h by peter.
This is also the appropriate fix for exo-tree sources.

Put warnings in <machine/mouse.h> to discourage use.
November 15th 2000 the warnings will be converted to errors.
January 15th 2001 the <machine/mouse.h> files will be removed.
2000-10-09 08:08:36 +00:00
kris
006a1e0d11 String buffer safety cleanup. I don't think any of these were exploitable
remotely, but they would be if e.g. it happened to call the logging
function using a DNS hostname.

Also replace random() by arc4random() - only one of these is arguably
required since it's directly used in the protocol, but we might as
well replace both to avoid using two different PRNGs.

Reviewed by:	green, alex
2000-10-09 06:08:00 +00:00
phk
c0aadf7521 Initiate deorbit burn sequence for <machine/console.h>.
Replace all in-tree uses with necessary subset of <sys/{fb,kb,cons}io.h>.
This is also the appropriate fix for exo-tree sources.

Put warnings in <machine/console.h> to discourage use.
November 15th 2000 the warnings will be converted to errors.
January 15th 2001 the <machine/console.h> files will be removed.
2000-10-08 21:34:00 +00:00
bde
55a208811a Fixed printf format errors which corrupted /var/db/mounttab on i386's with
64-bit longs (don't assume that time_t is long; assume that time_t's are
representable as longs).
2000-10-08 09:24:45 +00:00
kris
0f1e74f32e Enable use of poll() 2000-10-08 09:09:05 +00:00
kris
f3f3da25b8 Sync with KAME. Don't write past the end of the fd_set.
Obtained from:	KAME
2000-10-08 07:52:08 +00:00
kris
81eac37125 Sync with KAME. Format string auditing and manpage cleanups.
Obtained from:	KAME
Submitted by:	Bill Sommerfeld <sommerfeld@netbsd.org>
2000-10-08 07:43:38 +00:00
kris
87de277560 Sync with KAME. Format string auditing and manpage cleanups.
Obtained from:	KAME
Submitted by:	Bill Sommerfeld <sommerfeld@netbsd.org>
2000-10-08 07:36:35 +00:00
kris
764f0b7b35 Sync with KAME. Format string auditing, and add -a flag to autoprobe
interfaces.

Obtained from:	KAME
2000-10-06 23:46:52 +00:00
phk
5190795ad0 Don't try to compare other attributes if the type doesn't match, it's
nothing but trouble, and no use anyway.
2000-10-06 12:48:55 +00:00
phk
fadfcd8824 Don't whine about modes on symlinks. 2000-10-06 12:27:36 +00:00
murray
af4a54d3b5 PR: 21729
Approved by:	jkh

Write kern_securelevel_enable variable to rc.conf if user selects
medium or low security in sysinstall.  This overrides the case where a
user selects fascist security and then tries to go back to a lower
setting.
2000-10-05 23:27:32 +00:00
jkh
e1c796b9a7 If user selects no distributions at all, assume "User" as
a default.  This should prevent people from whacking return at
the Distributions menu and getting nothing selected as a result
(a minimal "standard" system will at least install).

Flagged as big tech support headache by: Chris Shumway <cshumway@osd.bsdi.com>
2000-10-05 18:02:09 +00:00
sheldonh
a2dc5f0833 Fix abuse of the Pa, Nm and Ar macros. This necessitated a rewording
of the description for the "power" internal command.

Reviewed by:	sanpei
2000-10-05 07:18:59 +00:00
sanpei
7fe55eb5ba check {IO,IRQ}_ASSIGNED flags before
release {io,irq} resources.

fix multi io window in release io routine

PR:		20454
2000-10-04 15:22:09 +00:00
phk
dcbc210157 Make the output of mtree(8) more systematic and machine readable.
The new format is:

        filename        {changed,missing,extra}
                $field expected $foo found $bar
                ...

Fix various bugs along the way:
        Don't complain about directory sizes differing.
        Correctly check flags.
2000-10-03 13:13:47 +00:00
rnordier
d38fc1bf5d Reflect new packet option default. 2000-10-02 23:16:58 +00:00
rnordier
80749590c8 Set MAINTAINER. 2000-10-02 17:23:16 +00:00
nyan
59310c6a98 Added NEC PC-9801-83, 84, PC-9801-103, 104, PC-9801N-25 and PC-9801N-J02R
support which use National Semiconductor DP8393X (SONIC) as ethernet
controller. Currently, this driver is used on only PC-98.

Submitted by:	Motomichi Matsuzaki <mzaki@e-mail.ne.jp>
Obtained from:	NetBSD/pc98
2000-10-02 14:27:20 +00:00
dwmalone
553d863ccf Make reconfiguring an external service as builtin service work.
PR:		21650
Submitted by:	ben
Tested by:	dan@ducky.nz.freebsd.org
2000-10-02 12:08:27 +00:00
dwmalone
c8e4adfd3a Stop internal ident service spinning until the timeout if the
connection goes away. Spotted by people on -STABLE about 2 weeks
ago.

Submitted by:	Based on a patch by alfred and Maxime Henrion <mux@qualys.com>
2000-10-02 12:04:17 +00:00
iwasaki
6a42dd0f83 Fix StallOp implementaion. I've noticed that StallOp corresponds to
OsdSleepUsec(), SleepOp corresponds to OsdSleep() by reading ACPICA
source code.
 - Add OsdSleepUsec() which uses DELAY() simply.
 - Change unit of acpi_sleep() argument; microseconds to milliseconds.
2000-10-02 08:58:50 +00:00
peter
5b829bc9d3 Really fix the struct callout collision. AMD does not need to
#include <sys/mbuf.h>.  (which #include's <machine/mutex.h> and then
<sys/proc.h> and then <sys/callout.h>, leading to the collision).
<sys/mbuf.h> is really one of those 'no user servicable parts inside'
things.
2000-10-02 08:31:20 +00:00
sanpei
26b5cf578e fix some minor problem in PIOCSRESOURCE ioctl.
- If resource which was allocated for pcic was
  requested via this ioctl, bus_alloc_resource
  would be succeeded and that resource was
  returned as free resource.  So check whether
  requested resource was used for pcic or not
  before bus_alloc_resource test.

- merge SYS_RES_IRQ routine into other SYS_RES_*
  routine and clean up.

problem reported by:	Yohei Terada <terada@jiro.c.u-tokyo.ac.jp>
2000-10-01 12:36:14 +00:00
iwasaki
0e66ae5da5 Remove ACPI_NO_OSDFUNC_INLINE option from kernel configuration. Now
that it's enabled in acpireg.h only if DIAGNOSTIC option is specified.
ACPICA OSD functions will be compiled in machine/acpi_machdep.c again
tentatively (if DIAGNOSTIC option is specified).
# Should we have acpica_osd.c ?
2000-10-01 08:17:47 +00:00
iwasaki
96bc33066e - Add acpi_disable_events() and set it with EVENTHANDLER_REGISTER in order to
avoid power on again problem after acpi_soft_off() calling.
 - Implement SleepOp/StallOp in AML interpreter.  Also provide ACPICA
   compatibility.
 - Minor changes on __inline function declaration in acpica_osd.h
   (obtained from NetBSD porting).
2000-09-30 22:37:24 +00:00
msmith
644847c8e2 Update include paths for new header locations.
Submitted by:	iwasaki
2000-09-30 20:13:57 +00:00
msmith
08f48871d9 More updates to the ACPI code:
- Move all register I/O into acpi_io.c
 - Move event handling into acpi_event.c
 - Reorganise headers into acpivar/acpireg/acpiio
 - Move find-RSDT and find-ACPI-owned-memory into acpi_machdep
 - Allocate all resources (except those detailed only by AML)
   as real resources.  Add infrastructure that will make adding
   resource support to AML code easy.
 - Remove all ACPI #ifdefs in non-ACPI code
 - Removed unnecessary includes
 - Minor style and commenting fixes

Reviewed by:	iwasaki
2000-09-30 20:12:27 +00:00
dfr
6c0971c115 Add ia64 support. 2000-09-29 13:36:47 +00:00
jkh
ac9450defb Adjust for new location and name of kernel.
PR:		21423
Reported by:	Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
2000-09-29 07:47:19 +00:00
wollman
e575947f65 Fix cosmetic error in rmjob message.
PR:		21006
2000-09-27 19:23:15 +00:00
wollman
101d0d046c Set SO_REUSEADDR so that lpd can start while old lpd connections are still
winding down (or timing out).  Also, be slightly more informative in
mcleanup() about why lpd is exiting.

PR:		21595
2000-09-27 19:03:05 +00:00
jkh
598d81263d Fix specification for ftp5.fr.freebsd.org
Reported by:	Jean-Claude Christophe <jch@oleane.net>
2000-09-27 17:23:57 +00:00
jkh
57cccf7e72 Fix the http proxy fetch code.
Submitted by:	Philipp Mergenthaler <p@i609.hadiko.de>
PR:		21449
2000-09-25 20:19:43 +00:00
ache
25ad27fd84 Re-add -P option (for POSIX-like command line interface) 2000-09-25 16:24:22 +00:00
phk
e03bdcefec GC some old no longer supported options. 2000-09-25 12:38:55 +00:00
marko
4455a7db67 Fix typo 2000-09-25 10:49:10 +00:00
marko
ad22c711eb Make the ``-r'' option actually do something :)
Also tidy up it's output.

Approved by:	jkh
2000-09-25 07:27:05 +00:00
jkh
46fab06d29 Fix a small bogon with a boolean yes/no question check. 2000-09-25 07:15:19 +00:00
jkh
9732291fa5 Add Lithuania.
Submitted by:	Domas Mituzas <midom@dammit.lt>
2000-09-24 06:53:04 +00:00
jkh
abcd503f0c One small tweak on the security profile code; don't be verbose if
setting up default values for an express/custom install.  It would
be confusing to see the informational popup completely out of context.
2000-09-24 06:44:00 +00:00
alfred
d49bef6eca Add forgotten -n option to SYNOPSIS section
Submitted by: Reinier Bezuidenhout <rbezuide@oskar.nanoteq.co.za>
2000-09-23 22:38:56 +00:00
sanpei
eff3fa4409 add ``xe'' driver
Approved by:	jkh
2000-09-22 23:48:27 +00:00
msmith
62f1eb038d Update the mptable manpage to remove mention of kernel options (which
there aren't going to be shortly).
2000-09-22 21:10:41 +00:00
msmith
f00a09e010 Stop printing out the Nfoo options help, since these tunables are about to
go away.
2000-09-22 21:07:24 +00:00
jkh
72be95b3bb One whack at the idea of having "security profiles" which select the
appropriate(?) defaults for "low", "medium" and "high" security
environments.  Medium is basically what we currently have with a little
seat-belt tightening where it made sense.  Low is the same as medium but
without the tightening.  High is positively fascist with nothing turned
on by default and an automatic call to 911 if it can find a modem.
2000-09-22 19:12:41 +00:00
jkh
abe325e592 Remove the bogus check against "none" for release names (which
really doesn't make any sense, what was I smoking) and allow
the more canonical usage of "any" for either side of the comparison
for release name or architecture (meaning you can also set CD_VERSION=any
in a cdrom.inf file to cause sysinstall to always match it and likewise
with the architecture, if specified).

Sensibly suggested by:	Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
2000-09-22 08:13:36 +00:00
sobomax
68c78b422c "zope language" --> "zope platform".
Requested by:	asami
2000-09-22 06:53:44 +00:00
asami
630e011cf4 Add french and zope. 2000-09-22 06:32:55 +00:00
sanpei
59ef536c4d add ``check free resource rage code''
for PC-Card which has no address in cis.
2000-09-21 13:13:00 +00:00
iwasaki
46b9951ab4 Fix LINT breakage by options ACPI_NO_OSDFUNC_INLINE.
Also space/tab-fix in NOTE.
Grrr, my bad.

Pointed-out by:	eivind
2000-09-21 13:01:19 +00:00
wpaul
b11e8d24fd Fix PR #21245: handle wep keys correctly and pretty print hex keys
as appropriate. Nick: this sort of does what your changes did, except
the hex/text printing is done automatically using isprint().
2000-09-21 00:25:07 +00:00
iwasaki
fbe5d6f93b Add new function in AML interpreter; aml_invoke_method().
Also remove unneeded includes in aml_obj.c and aml_parse.c.

This new function takes 'struct aml_name *' as a argument rather than
'char *' where aml_invoke_method_by_name() does.  It's worth to have
these two interfaces in many cases.
2000-09-20 22:53:39 +00:00
brian
0c4a93afb3 Fix a typo
Spotted by: Manfred Antar <null@pozo.com>
2000-09-20 19:59:44 +00:00
wpaul
10c4bf4076 Add a new driver for the AMD PCnet/FAST, FAST+ and Home PCI adapters.
Previously, these cards were supported by the lnc driver (and they
still are, but the pcn driver will claim them first), which is fine
except the lnc driver runs them in 16-bit LANCE compatibility mode.
The pcn driver runs these chips in 32-bit mode and uses the RX alignment
feature to achieve zero-copy receive. (Which puts it in the same
class as the xl, fxp and tl chipsets.) This driver is also MI, so it
will work on the x86 and alpha platforms. (The lnc driver is still
needed to support non-PCI cards. At some point, I'll need to newbusify
it so that it too will me MI.)

The Am79c978 HomePNA adapter is also supported.
2000-09-20 17:30:22 +00:00
sanpei
a81de55d66 fix previous PIOCSRESOURCE code in assign_card_index 2000-09-20 14:54:21 +00:00
iwasaki
815c8f2861 Improve region I/O sub-routines by re-writing most of low level part
of AML interpreter.
 - Delete and cleanup a lot of almost duplicated code in kernel/userland.
 - Add new common functions for kernel/userland code.
      aml_adjust_readvalue(), aml_adjust_updatevalue(),
      aml_region_handle_alloc(), aml_region_handle_free() and
      aml_region_io().
 - Add primitive functions for both versions of kernel/userland in order to
   have shared code as much as possible.
      aml_region_read_simple(), aml_region_write_simple(),
      aml_region_prompt_read(), aml_region_prompt_write() and
      aml_region_prompt_update_value().
 - Consider update rule and access type in field flags. Also add a lot of
   definitions for the flags.
 - Fix bugs on bit manipulation for read/write operations.
 - Fix bugs on IndexField I/O part.  Also add workaround for temporary
   object corruption during StoreOp interpretation.
2000-09-20 01:01:32 +00:00
brian
cdad9fdf87 Put temporary output in ${TMPDIR:-/tmp}
If $<basedir>_output is not set, don't redirect output

PR:	21395
2000-09-19 22:15:00 +00:00
brian
b0edc06581 Don't clobber $? before using it.
Submitted by:	James Barkley <jbarkley@wgate.com>
2000-09-19 21:46:54 +00:00
imp
0297a25aa2 Fix unexploitable off by one error as mentioned on Bugtraq. 2000-09-19 21:22:20 +00:00
jkh
fd0199960a Simplify the ftp directory search code a little and eliminate a warning. 2000-09-19 07:45:08 +00:00
sobomax
32a51ae654 Fix symlink-to-a-dir handling in pkg_delete.
Reviewed by:	-ports
Tested by:	bento
2000-09-18 07:41:48 +00:00
ume
7c4c83b3c1 cope with the following reply on PASV (without paren). need more tests.
227 Entering Passive Mode x,x,x,x,x,x,x

Obtained from:	KAME (1.8->1.9)
2000-09-17 16:44:51 +00:00
sanpei
ae974aa25a pccard_beep parameter was already supported by rc.conf.
(removed in Rev.1.3)(A(B
2000-09-17 16:37:36 +00:00
sanpei
b7b2e21255 add PIOCSRESOURCE(IOC_GET_RESOURCE_RANGE)
Now /usr/sbin/pccardd read free resource(io,irq) range with
this ioctl.

Original Idea from:	PAO3
2000-09-17 15:37:53 +00:00
gshapiro
7d6c747f15 Give users a way to alter the sendmail (and related utilities) build
environment so they can enable functionality such as SASL, LDAP, Hesiod.
2000-09-17 00:41:33 +00:00
nsayer
ba4b7369d4 Forgot semicolon after rcsid
Submitted by:	gshapiro
2000-09-17 00:37:38 +00:00
brian
28ca59bb84 Fix situations where none of the scripts executed produce output,
so that we don't see any more ``null message body, hope that's
ok'' messages.

We now see something like ``No output from the 3 files processed''.

Lump all output for a given periodic argument together so that
people with /usr/local/etc/periodic/daily (for example) will
get the output of those jobs together with the normal daily run
rather than getting a second email.

Prompted by: ben
2000-09-16 21:59:34 +00:00
jkh
503223e804 Enable crypto by default with "canned" distributions (it can still
be deselected or simply not chosen in a custom install).
2000-09-16 21:15:21 +00:00
nsayer
7d5e08df01 1. In key printing routine, the loop variable was j, but inside the
loop was referencing i.

2. Print keys in hex rather than ascii by default.

3. Add a -a flag to reverse #2 on demand.
2000-09-16 20:54:59 +00:00
ache
e690f012cf Remove unneded -lmytinfo 2000-09-16 04:27:30 +00:00
ache
6d7b369241 Remove unneded -ltermcap or -lmytinfo 2000-09-16 04:19:07 +00:00
ache
1e2a4a6d3e Remove unneded -lmytinfo 2000-09-16 03:56:25 +00:00
ache
8d91a4d36b Remove unneded -lmytinfo 2000-09-16 03:33:00 +00:00
iwasaki
016590b285 Fix typo (rc.conf -> pccard.conf).
Submitted by:	OKAZAKI Tetsurou <okazaki@be.to>
2000-09-15 19:17:40 +00:00
jkh
f280f2c156 Correct variable check for VAR_TRY_DHCP. 2000-09-15 08:15:14 +00:00
ache
b436b49df3 Restore standard symlink default, return -L, remove -P, add missing -q to getopt
This is part of whole subsystem fixing

Reviewed by:	imp
2000-09-15 08:05:37 +00:00
bmah
6546c6614e pkg_version(1) will now distinguish between the different cases where
the exact relationship between an installed package and its
corresponding entry in the index file can't be determined.

Submitted by:	Mark Ovens <marko@freebsd.org>
2000-09-15 04:16:20 +00:00
iwasaki
793d745e49 Add manpages acpi userland tools.
Obtained from:	ACPI for FreeBSD project
2000-09-14 22:48:39 +00:00
brian
557cda66fe Fix some style nits 2000-09-14 22:03:13 +00:00
brian
6749e2b041 Support PPPoATM, disabled for now as /usr/include/netnatm doesn't exist
Submitted by: Jakob Stoklund Olesen <stoklund@taxidriver.dk>
2000-09-14 22:02:54 +00:00
brian
6984ac4815 Understand IPPROTO_ESP and IPPROTO_AH packets
Submitted by: Angelos D. Keromytis <angelos@dsl.cis.upenn.edu>
2000-09-14 18:01:54 +00:00
brian
1de91cddf9 Another overhaul of the periodic stuff.
All periodic sub-scripts <larf> now have their return codes interpreted
by periodic(8).  Output may be masked based on variable values in
periodic.conf.

It's also now possible to email periodic output to arbitrary addresses,
or to send it to a log file, examples of which can be found in
newsyslog.conf.

The upshot of it all should be no discernable changes to the default
behaviour of periodic(8).

PR:	21250
2000-09-14 17:19:15 +00:00
bde
48dbfe2955 Fixed breakage of installation of kbdcontrol.1 in previous commit.
Fixed style bugs.
2000-09-14 05:29:42 +00:00