Commit Graph

15047 Commits

Author SHA1 Message Date
wpaul
dd36926d57 In _yp_dobind(), if we find ourselves required to contact the local ypbind
directly in order to obtain binding information, check that the local
ypbind is using a reserved port and return YPERR_YPBIND if it isn't.
We should not trust any ypbind running on a port >= IPPORT_RESERVED;
it may have been started by a malicious user hoping to trick us into
talking to a bogus ypserv.

Note that we do not check the ypserv port returned to us from ypbind.
It is assumed that ypbind has already done a reserved port test (or not,
depending on whether or not it was started with -s); if we trust the
authenticity of the local ypbind, we should also trust its judgement.

Obtained from: OpenBSD
1996-07-13 20:23:13 +00:00
pst
4203d74266 Start sendmail after ldconfig. Put the nail in the coffin on misc/1346.
Submitted by:	Hiroharu Tamaru <tamaru@ap.t.u-tokyo.ac.jp>
1996-07-13 17:27:39 +00:00
dg
b80456258b Enable transmit complete interrupt...
(author's explaination):

 Bit 15 is the flag to request a transmit complete interrupt.  The
driver was apparently written to minimize interrupts, and if not for a
3-COM design quirk, everything would be just ducky.
 Prior to loading the outbound packet into the FIFO, the driver checks
to see if there's enough space to contain the packet.  If not, the
driver requests a transmit-available interrupt when there is
sufficient room.  Unfortunately, the card is continuing to process the
prior FIFO, and by the time the driver sets the threshold for a
transmit available interrupt, the space is already available.  When
this occurs, the 3COM card ignores the interrupt request, and the
driver is hung waiting for an interrupt that will never occur.
There's probably a more elegant solution, but requesting the transmit
complete interrupt was the easiest to implement.  An alternative fix
might be to check free FIFO space again, after requesting the transmit
available interrupt, but I haven't bothered pursuing this.  Since the
patch, my 3C590 (PCI, same FIFO interface as 3C509) has been rock
solid.

Submitted by:	mevans@candle.com (Mike Evans)
1996-07-13 10:49:53 +00:00
jkh
c3981e2c70 Upgrade Apache to 1.1.1. 1996-07-13 06:05:42 +00:00
jkh
4d9a926a37 Make CD version clash non-fatal. 1996-07-13 05:48:44 +00:00
jkh
56fd5c89a1 Back out my change for Peter which did transfer timings based on current
chunk rather than distribution - it's just caused the numbers to fluctuate
too wildly, sorry Peter! ;-(
1996-07-13 05:44:51 +00:00
jkh
fc7c1d4c71 Fix a bogon in the Novice mode CD auto-selection. 1996-07-13 05:13:25 +00:00
jkh
394f0328da Fix EBUSY checking in devices.c - DTRT when it's detected on a CD. 1996-07-13 05:09:29 +00:00
jkh
6b94c09b12 Merge. 1996-07-13 04:33:23 +00:00
wosch
610fd7eec3 create missing /usr/share/examples/removeuser
Submitted by: Ollivier ROBERT  roberto@keltia.freenix.fr
1996-07-12 19:58:44 +00:00
wollman
402ddcab40 Include the proper header file (<unistd.h>) and declare [gs]etdomainname()
with the correct return type.  This does not include the renaming
of KERN_DOMAINNAME to KERN_NISDOMAINNAME.

Pointed-out-by: Keith Bostic
1996-07-12 19:55:20 +00:00
jkh
ce41b1b07a General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
1996-07-12 19:24:27 +00:00
jkh
730964efd2 General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
1996-07-12 19:08:36 +00:00
jkh
c4d4a99d31 General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
1996-07-12 18:57:58 +00:00
dg
6657f01bfd Fixed two bugs in previous commit: be sure to include tcp_debug.h when
TCPDEBUG is defined, and fix typo in TCPDEBUG2() macro.
1996-07-12 17:28:47 +00:00
fenner
48c30a896b Fix braino in rev 1.30 fix; m_copy() the mbuf that has the header
pulled up already.  This bug can cause the first packet from a source
to a group to be corrupted when it is delivered to a process listening
on the mrouter.
1996-07-12 17:22:32 +00:00
jfieber
a8a81d83f6 accross -> across.
& -> &amp;.
Remove references to imaginary freebsd-policy mailing list.
Submitted by:	John Mulhollen <JMULHOLLEN@gcwf.com>
		Thomas Graichen <graichen@axp5.physik.fu-berlin.de>
1996-07-12 16:18:50 +00:00
jkh
4a2c20ca18 Remove some suspect sector size calculations which are also the source
of some confusing messages from newfs (just judging by the number of people
who point them out, anyway).
1996-07-12 15:24:49 +00:00
gpalmer
7bfb0c69d9 Small changes so that this actually stands a chance of doing the
right thing...
1996-07-12 13:12:46 +00:00
peter
6bcff2b56d Bump RELDATE in -current to be greater than RELDATE in -stable (and hence
2.1.5-RELEASE).  This will obviously be set "for real" closer to the time.

(some ports use this to differentiate the two branches /dev/kmem kernel
architectures.  This exact same procedure happened in November last year
for the 2.1 RELEASE as well.)
1996-07-12 11:21:57 +00:00
jkh
9b9952dd90 Fix something I broke with CDROM installation (well, I knew my first
test CD would turn at least one bug up :-).
1996-07-12 11:14:15 +00:00
bde
95254df1ef Fixed brackets in usage message.
Reformatted some of recent changes to KNF.
1996-07-12 08:20:28 +00:00
bde
57272a1363 Staticized some variables.
Fixed initialization of pipe_pgid - don't default to pid 0 (swapper) for
SIGIO.

Added comments about other implicit initializations, mostly for struct
stat.

Fixed initialization of st_mode.  S_IFSOCK was for when pipes were sockets.
It is probably safe to fix the bogus S_ISFIFO() now that pipes can be
distinguished from sockets in all cases.

Don't return ENOSYS for inappropriate ioctls.
1996-07-12 08:14:58 +00:00
bde
707711886f Use a big delta in adjtime() for big negative adjustments as well as
for big positive adjustments.  The existence of big adjustments may
be a bug (it's not documented...) but there was no good reason for
the asymmetric behaviour.

Reviewed by:	wollman
1996-07-12 07:55:35 +00:00
bde
d449c2d3d4 Staticized a few variables.
Fixed warnings about unused variables.
1996-07-12 07:41:34 +00:00
bde
c2df7dfe25 Removed "optimization" using gcc's builtin memcpy instead of bcopy.
There is little difference now since the amount copied is large,
and bcopy will become much faster on some machines.
1996-07-12 07:18:12 +00:00
bde
df4f981939 Renamed upa to p0upa to match p0upt.
Cleaned up some comments.
1996-07-12 06:48:55 +00:00
bde
294358211b Export `dumpmag' to utilities but not to the kernel.
Restored a truncated comment.
1996-07-12 06:09:49 +00:00
bde
410e1d2c55 Fixed cloned comments about npx traps to match context. 1996-07-12 06:03:14 +00:00
pst
14663b3ecb Add whereobj target to find that pesky obj dir 1996-07-12 06:01:55 +00:00
bde
befb003650 Include <sys/types.h> before including <grp.h> so that this doesn't
depend on <stdio.h> bogusly including <sys/types.h>

Reordered includes to satisfy KNF rules.
1996-07-12 05:55:38 +00:00
bde
8d1b1147d1 Removed obsolete definition of PIPE_NBIO. 1996-07-12 05:44:30 +00:00
bde
351ef7849f Moved the definition of DEBUGMSG() from asm.h to start.S. This macro
is only appropriate to use in the special environment of start.S (real
mode plus some conventions about not saving registers), and asm.h is
supposed to be for generic macros.

Removed some unnecessary parentheses.
1996-07-12 05:42:02 +00:00
bde
d466fe8070 Moved the definition of `bsize' out of a DO_BAD144 ifdef so that this
compiles when DO_BAD144 is not defined.
1996-07-12 05:35:47 +00:00
bde
cd111495aa Moved the definition of dflt_name to the correct file (table.c is only for
explicitly initialized data) and made it conditional on NAMEBLOCK.
1996-07-12 05:25:47 +00:00
bde
48992969bb Fixed some speling, punctuation.. and spac ing errors. 1996-07-12 05:17:37 +00:00
bde
e75f9a15ea Fixed operand order for shld and shrd.
Finished the constant poisoning that was begun in rev.1.14.  Consts
aren't very poisonous (or useful) unless -Wcast-qual is in CFLAGS,
and it isn't in the default CFLAGS.
1996-07-12 04:40:21 +00:00
bde
4c9b9ce103 Don't use NULL in non-pointer contexts. 1996-07-12 04:12:25 +00:00
nate
214f4abc72 Changed all sprintf() calls to snprintf().
Obtained from:	Christos Zoulas <christos@deshaw.com> via NetBSD PR 2621,

[ slightly modified since we don't use libcompat anymore. ]

I'm not sure if this fixes the rdist security bug completely, but it
sure can't hurt!
1996-07-12 04:00:15 +00:00
pst
67bcec90bb Add amanda default port 1996-07-11 21:24:03 +00:00
pst
9396eb95c9 Set shells to nonexistent where appropriate 1996-07-11 21:23:22 +00:00
pst
4c58647f1a Add ability to override sendmail .cf file specification.
Add creation of ppp.log file since we rotate it now.
1996-07-11 21:22:50 +00:00
jkh
159fef6094 Make the menu height calculation actually work.
Make a menu more self-explanatory at user request.
1996-07-11 18:37:48 +00:00
jkh
d79c848b15 1. Remove some ancient bogons from when I initially added dialogMenuItem
support.
2. Have message boxes say "Continue" instead of "Exit"
1996-07-11 18:22:16 +00:00
nate
7df809ca1e Add some comments explaining what APM_DSVALUE_BUG does no that I know
what it does and why it's needed.  Now I have to figure out how to fix
the bug. :)

[ No functional changes ]
1996-07-11 16:35:12 +00:00
wollman
36ac1a0263 Modify the kernel to use the new pr_usrreqs interface rather than the old
pr_usrreq mechanism which was poorly designed and error-prone.  This
commit renames pr_usrreq to pr_ousrreq so that old code which depended on it
would break in an obvious manner.  This commit also implements the new
interface for TCP, although the old function is left as an example
(#ifdef'ed out).  This commit ALSO fixes a longstanding bug in the
TCP timer processing (introduced by davidg on 1995/04/12) which caused
timer processing on a TCB to always stop after a single timer had
expired (because it misinterpreted the return value from tcp_usrreq()
to indicate that the TCB had been deleted).  Finally, some code
related to polling has been deleted from if.c because it is not
relevant t -current and doesn't look at all like my current code.
1996-07-11 16:32:50 +00:00
nate
d2bef1a0e5 Added Johann Tonsing <jtonsing@mikom.csir.co.za> for his PCCARD
submission.
1996-07-11 15:08:41 +00:00
nate
444ae829e7 In num_tok, allow the user to specify '0' as plain '0' instead of
forcing them to use '00', and/or '0x0'.

Submitted by:	Johann Tonsing <jtonsing@mikom.csir.co.za>
1996-07-11 15:04:43 +00:00
jkh
3c83c32022 Merge. 1996-07-11 11:18:45 +00:00
jkh
eef290ac5f Fix a couple of whoopers which somehow went undetected until now. 1996-07-11 11:15:28 +00:00