Commit Graph

22505 Commits

Author SHA1 Message Date
jkh
e1b0f042d8 Adjust my installation script to more closely match reality.
Add a system command to script mechanism (so you can call things like
tzsetup from scripts).

Add noError variable for causing script errors to be ignored.
1997-06-22 09:45:41 +00:00
peter
77d89f5533 This commit was generated by cvs2svn to compensate for changes in r26790,
which included commits to RCS files with non-trunk default branches.
1997-06-22 09:32:32 +00:00
peter
566d767930 Clean import of Matt Thomas's if_de.c driver as of 970508, rev 1.85. The
slightly later one with optional if_media will be imported shortly as well.

Obtained from: Matt Thomas via http://www.3am-software.com/
1997-06-22 09:32:32 +00:00
peter
3a07ded158 Clean import of Matt Thomas's if_de.c driver as of 970508, rev 1.85. The
slightly later one with optional if_media will be imported shortly as well.

Obtained from: Matt Thomas via http://www.3am-software.com/
1997-06-22 09:32:32 +00:00
jkh
3bb8305ac5 Reshuffle some of the distribution names to make them
easier to remember & allow overrides.
1997-06-22 08:37:49 +00:00
brian
f47045b4ae Hook natd 1997-06-22 04:23:10 +00:00
brian
deca3c863d What twit commited this ? Duh ! 1997-06-22 04:20:43 +00:00
brian
4fa0e5a551 This commit was generated by cvs2svn to compensate for changes in r26781,
which included commits to RCS files with non-trunk default branches.
1997-06-22 04:19:08 +00:00
brian
59a701d2eb Bring natd into main source tree now that the
pppd/natd combination works ok.

Submitted by:	Ari Suutari <ari.suutari@ps.carel.fi>
1997-06-22 04:19:08 +00:00
dyson
8786565a86 Remove a window during running down a file vnode. Also, the OBJ_DEAD
flag wasn't being respected during vref(), et. al.  Note that this
isn't the eventual fix for the locking problem.  Fine grained SMP
in the VM and VFS code will require (lots) more work.
1997-06-22 03:00:24 +00:00
brian
9aa9d790d1 Fix this damn mbuf with a negative m_len. It turns
out to be a problem with VJ header compression.
davidg spotted this in usr.sbin/ppp/slcompress.c
a while ago, but I believe gave the wrong reasons -
it's too easy to reproduce !  The only scenario that
I've been able to reproduce the problem under is when
m_len is *exactly* 40 !  So go figure !

PR:		3749
Submitted elsewhere by:	davidg
Obtained from: usr.sbin/ppp/slcompress.c
1997-06-22 02:19:53 +00:00
jdp
6ad9fbf529 Add some cross references and alphabetize them. 1997-06-21 23:05:44 +00:00
jkh
7020641f44 Make docs go to the right place finally. 1997-06-21 19:39:48 +00:00
bde
ba2ba2591f Fixed va_arg() to work for small args (as in stdarg.h). 1997-06-21 16:20:55 +00:00
alex
793295a94d Block all write operations to /proc/1/* when securelevel > 0.
The additional check in procfs_ctl.c could be backed out, but
I'm leaving it in for good measure.

Reviewed by:	Theo de Raadt <deraadt@OpenBSD.org>
1997-06-21 16:09:49 +00:00
jkh
db73f6494a Shut up catman output. 1997-06-21 15:56:50 +00:00
jkh
84e984b24f Whoops, get the proper rev of this. 1997-06-21 15:45:51 +00:00
jkh
048f7b0819 Change the way that X configuration method is selected. 1997-06-21 15:45:15 +00:00
bde
b4dcc8bb37 Don't attempt to generate errors for unpromoted types in va_arg(),
since it is impossible to distinguish unpromoted types from small
(struct) types.  Renamed __va_promote() to __va_size() since it is
related to sizes of args on the stack and not to promotion.

PR:		3884
Submitted by:	mostly by arnej@math.ntnu.no (Arne Henrik Juul)
Obtained from:	name of__va_size and some parentheses fixes from NetBSD
1997-06-21 15:45:13 +00:00
jkh
28d72683d4 New build scripts for these distributions. 1997-06-21 15:42:17 +00:00
jkh
dd6c0a48e7 Change the way distributions are built such that they can be built
either in the Makefile or by an external script.  Move some of the
existing stuff into scripts.
1997-06-21 15:41:55 +00:00
jkh
a8bb7ab7de Change the distribute targets so that a given item in our source tree
can place itself into n distributions, where n >= 1.
1997-06-21 15:40:34 +00:00
joerg
90a0066a3f Fix a typo, so the -a option will by documented in the synopsis. 1997-06-21 09:17:45 +00:00
brian
c74ce8e38c Fix "delete all".
PR:		3913
1997-06-20 23:43:35 +00:00
wpaul
2496849454 Hm... wonder how long this has been here.
The logic in get_myaddress() is broken: it always returns the loopback
address due to the following rule:

                if ((ifreq.ifr_flags & IFF_UP) &&
                    ifr->ifr_addr.sa_family == AF_INET &&
                    (loopback == 1 && (ifreq.ifr_flags & IFF_LOOPBACK))) {

The idea is that we want to select the interface address only if it's
up and it's in the AF_INET family. If it turns uout we don't have
such an interface available, we make a second pass through the loop,
this time settling for the loopback interface. But the logic inadvertently
locks out all cases when loopback == 0, so nothing is ever selected until
the second pass (when loopback == 1).

This is changed to:

                if (((ifreq.ifr_flags & IFF_UP) &&
                    ifr->ifr_addr.sa_family == AF_INET) ||
                    (loopback == 1 && (ifreq.ifr_flags & IFF_LOOPBACK))) {

which I think does the right thing.

This is yet another bogon I discovered during NIS+ testing; I need
get_myaddress() to work correctly so that the callback code in the
client library will work.
1997-06-20 17:54:11 +00:00
jkh
50bef408d8 Add a couple of strategic screen clears. 1997-06-20 07:04:16 +00:00
jkh
e5f80c5114 Back out previous fix - this bug's got diplomatic immunity as a registered
political issue.
1997-06-19 17:57:06 +00:00
jkh
64538a3bf5 Fix multiple documentation bogons.
PR:		3798
Submitted by:	Jan Kuriyama <kuriyama@opt.phys.waseda.ac.jp>
1997-06-19 15:18:34 +00:00
jkh
7f875c5f66 >Number: 3780
>Category:       bin
>Synopsis:       WEXITSTATUS() may return nagative value, which causes sh to generate bad $?

PR:		3780
Submitted by:	sanewo@ba2.so-net.or.jp
1997-06-19 15:14:01 +00:00
charnier
8e9b467863 Sync usage string according to man page. 1997-06-19 14:44:24 +00:00
charnier
c50254e7ea Cosmetic in usage string. 1997-06-19 14:42:10 +00:00
charnier
359e756ecf Use warn(3). 1997-06-19 14:40:41 +00:00
charnier
0c0624c76d Use err(3). Add missing prototypes. Cosmetic in usage string. 1997-06-19 14:38:53 +00:00
charnier
7f9d40cba7 Use err(3). Add usage(). 1997-06-19 14:33:42 +00:00
charnier
eb50166664 Use err(3). 1997-06-19 14:28:32 +00:00
jdp
49bea63523 Try again to explain the existence of lchown() and the absence of
lchmod() and lutimes().
1997-06-19 01:07:05 +00:00
wollman
016c0a5f21 Fix crash when halting where APM was configured but not enabled
by checking whether APM is active in apm_power_off() and returning
if not.  (The code was already written with the expectation that
this function would return if it fails.)
1997-06-19 00:25:03 +00:00
pst
8c2215a208 Add cron_enable and inetd_enable flags to rc.conf.
WARNING: don't update rc and forget to update rc.conf, or you won't be
able to telnet back into your box after a reboot.
1997-06-18 16:01:19 +00:00
charnier
6708198883 Various typos in man page. Cosmetic in usage string. Use err(3) instead
of fprintf. Remove unused variables.
1997-06-18 06:37:23 +00:00
charnier
8b228a9975 Sync man page and usage string. Remove unused -p option from getopt call. 1997-06-18 06:34:28 +00:00
charnier
b430896bf1 Sync man page and usage string. 1997-06-18 06:33:11 +00:00
charnier
a7ec830880 Sync beetween man page and usage string. 1997-06-18 06:30:34 +00:00
charnier
2f83b582ea Fprintf -> warn. 1997-06-18 06:28:46 +00:00
charnier
59c6ef884a Typo. 1997-06-18 06:26:13 +00:00
jkh
3c30be4b40 1. Add a noWarn flag so that scripts can turn warnings off.
2. If hostname not set from script, bring up interactive dialog anyway.
1997-06-18 05:11:37 +00:00
asami
afb7547b1d Add `B' to list of flags to pass through from C*FLAGS when using mkdep
(bsd.dep.mk) and compiling assembly language sources (bsd.lib.mk).
This doesn't change anything for our current source tree, but if you
want to use the -B switch in C*FLAGS to specify the location of
compiler subprograms, now you can do it.

Reviewed by:	bde (implicitly)
1997-06-18 03:39:34 +00:00
asami
a5a15a3d86 Move the "umask ?= 0022" check (a warning only) from the default
"do-install" target to the beginning of the "install" meta-target, so
that ports that define their own do-install will also run it without
having to duplicate it themselves.

Tested by:	rebuilding all packages
1997-06-18 03:20:22 +00:00
asami
562c018967 Add "-I${DESTDIR}/usr/include" to CFLAGS if DESTDIR is defined, just
like bsd.lib.mk and bsd.prog.mk.  It doesn't add it to CXXINCLUDES, I
don't think anybody has written a kernel module with C++.  (Not that I
think DavidG will allow it anyway. :)

Reviewed by:	bde
1997-06-18 03:10:31 +00:00
brian
e981ebde8f Protect against garbage mbufs in pppstart.
Remove previous hack in pppfcs().

This is still not the correct solution.  We shouldn't
have any incorrect mbufs.  This patch does however make
pppd/natd work (rather than jamming the interface).
1997-06-18 02:50:40 +00:00
jkh
11e41c0eef Check named_enable rather than just named_flags.
PR:		3893 (sort of)
1997-06-18 01:55:19 +00:00