Commit Graph

6467 Commits

Author SHA1 Message Date
peter
ee9f6ce82c Fix typo: s/memberhip/membership/
Submitted by:  Peter Avalos <pavalos@theshell.com>
2001-01-02 04:01:59 +00:00
ben
c89d4cd7c8 Minor layout fixes.
PR:		24004
Submitted by:	Jimmy Olgeni <olgeni@uli.it>
2001-01-01 23:30:51 +00:00
ben
de830bf0bb Check that the hostname field in received packets is NUL-terminated. 2001-01-01 18:43:21 +00:00
imp
b3e6a27a70 If the first argument doesn't start with '-' assume that it is an
interface.  This augments the default to an appropriate interface
code.

# These programs should be merged into ifconfig, ala NetBSD, but that's
# a fight for another day.

Idea from: OpenBSD
2000-12-31 01:51:23 +00:00
dillon
77a253b168 Imply -c when -S is specified, so 'vnconfig -s reserve -S 4 vn1' configures the
device as expected.
2000-12-31 01:27:55 +00:00
phk
8211e35e91 Use macro API to <sys/queue.h>
Submitted by:	"Jason" <jsmethers@pdq.net>
Reviewed by:	/sbin/md5
2000-12-30 20:56:04 +00:00
assar
6b77259e11 update to the current set of mnt_, ufs_ and nfs_ flags
also make man-page correspond to the code
2000-12-30 15:41:40 +00:00
phk
624a962108 Use the MACRO API to <sys/queue.h>.
Submitted by:	"Peter Avalos" <pavalos@theshell.com>
2000-12-30 14:19:07 +00:00
paul
b792d44931 Change open modes from ">$file" to "> $file" because it's much safer should
$file not be what you expect, particularly should $file turn out to be
"+REQUIRES" since ">+" is a valid open mode.

This isn't currently a problem since $file is constructed safely but it removes the potential of future problems.

Pointed out by Anton Berezin.
2000-12-30 00:14:01 +00:00
brian
5a8c7294c8 Log the ``MPPE: MasterKey is invalid...'' message as a CCP
diagnostic rather than a warning.
2000-12-29 22:25:56 +00:00
phk
021b2d087a Convert from CIRCLEQ to TAILQ. 2000-12-29 20:33:28 +00:00
ben
aa10518020 Convert to use the <sys/queue.h> macros rather than fiddling with the queue
structure internals.

Reviewed by:	markm
2000-12-29 18:04:54 +00:00
ru
42aaa8ad04 mdoc(7) police: get rid of hard sentence breaks, add missing .El, etc. 2000-12-29 09:03:38 +00:00
paul
dec1690e30 Fix the broken options that were in the development version I committed by mistake. 2000-12-28 19:53:44 +00:00
ben
c3d58d495a * Fix a segfault when timed(8) receives a packet with a bad tsp_type.
* Check that received packets aren't too short, as this could cause other
  problems.

Reviewed by:	imp, markm
2000-12-28 19:50:07 +00:00
paul
a411a40492 Bring the man page up to date with the current version of the script. 2000-12-28 19:42:06 +00:00
paul
5910beac29 Add pkg_update, which can replace currently installed ports with new versions
while taking of updating all the dependencies.
2000-12-28 18:47:23 +00:00
des
4b9504e071 Retire kernfs (userland part). 2000-12-28 12:59:57 +00:00
ru
4bb5f49662 Prepare for mdoc(7)NG. 2000-12-27 15:30:30 +00:00
ru
acdf053207 Prepare for mdoc(7)NG. 2000-12-27 14:22:05 +00:00
sos
391df2055e Update to match the progress interface on blank command. 2000-12-26 11:56:15 +00:00
toshi
3f9a519b47 Fix output of -v option. 2000-12-24 15:30:36 +00:00
joe
60930484fc Clean up the source directory finding code, and in the process fix a
problem that occurs when a program's source isn't found.
2000-12-24 12:21:15 +00:00
iedowse
cd6399ca0f Ensure that received packets are at least as long as the rwho packet
header before trying to process them. Without this sanity check,
rwhod can attempt to byte-swap all of memory when a short packet
is received, and so dies with a SIGBUS.

While I'm here, change two other syslog messages to be more
informative: use dotted quad rather than hex notation for IP
addresses, and include the source IP in the 'bad from port' message.

PR:		bin/14844
Reviewed by:	dwmalone
2000-12-22 21:30:15 +00:00
ru
7fe8bd2b88 Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
des
9f7f4f99d4 If no device is specified, check the CDROM environment variable before
picking the default device.
2000-12-18 14:35:54 +00:00
ru
478cddba1f mdoc(7) police: document IPv6 options in the SYNOPSIS. 2000-12-18 08:42:58 +00:00
dougb
1fd2c926a8 Make the comment generated in /etc/pw.conf match reality
PR:				misc/23451
Submitted by:	Ben Rosengart, ben@narcissus.net
2000-12-18 01:35:56 +00:00
dougb
50b480af64 * Fix a long line that I introduced in the last commit
* Backslash escape non-alphanumeric chars in the login name so that perl
  doesn't choke on things like '$'.
2000-12-17 23:42:45 +00:00
joe
0449442242 Use one of the TMPDIR env variable or _PATH_TMP instead of hardcoding
/tmp.

Submitted by:	jedgar
2000-12-17 19:49:07 +00:00
joe
651ae8ea0f Avoid potential problems with the existance of a shadow obj directory
confusing the 'make -f tmpfile' in the tmpfile, by creating it in /tmp.
2000-12-17 17:07:40 +00:00
joe
8ec6857b99 Clarify an ambiguous 'else' introduced by a recent commit. 2000-12-17 17:03:05 +00:00
joe
702e01fe1e o check strdup() return values
o strcpy() -> strlcpy()
o sprintf() -> snprintf()
o mktemp() -> mkstemp()
o use err() instead of errx() in out_of_memory() function since
  errno will probably be set

Submitted by:	jedgar
2000-12-17 16:51:00 +00:00
joe
8112d68767 Hopefully the last patch in a series to try and teach crunchgen to
handle MAKEOBJDIRPREFIX better, in conjunction with the -o and -p
flags.
2000-12-17 16:13:23 +00:00
ume
6b337143f0 IPv6 support for syslogd.
Reviewed by:	freebsd-current
Obtained from:	NetBSD
2000-12-16 18:25:48 +00:00
ume
bd199e3983 IPv6 support for lpr.
Reviewed by:	freebsd-current (no objection)
Obtained from:	KAME
2000-12-16 18:06:09 +00:00
jkh
fd2808ffad Fix an informational message a little and properly check status of a yes/no
question which I bollicked up in my previous commit.
2000-12-16 05:36:10 +00:00
jkh
6646c6c9a4 Use dialog_noyes() for UTC selection; uses No as default answer now. 2000-12-16 05:29:38 +00:00
phk
139e3e3e41 Don't do raw device 'r' mangling.
Try to use vn%d.ctl for setup and control if possible.

This paves the way for a DEVFS/cloning vn driver.
2000-12-15 16:40:11 +00:00
ru
5f616cd0ae Add a missing dot. 2000-12-15 07:34:01 +00:00
brian
5fd9455c07 Correct the documented default behaviour of mschap, mschap81 and MPPE.
Pointed out by: Mark Knight <markk@knigma.org>
2000-12-15 01:09:38 +00:00
eivind
4a0a197631 Add better IP, netmask and gateway checks.
- IP addresses are verified as being correct dotted quad format.
- Netmasks are verified as being in correct dotted quad or 0x* format,
  and being consecutive 1 bits followed by consecutive 0 bits.
- The gateway is verified as being correct dotted quad format and
  being reachable through the configured IP address and netmask.
2000-12-14 13:59:10 +00:00
ru
e5a37f2e6f mdoc(7) police: added missing .Os call. 2000-12-14 13:58:15 +00:00
ru
c23c39b3a4 mdoc(7) police: removed history info from the .Os FreeBSD call. 2000-12-14 11:52:05 +00:00
ru
50947b7f56 Mdoc(7)ify. 2000-12-14 08:01:59 +00:00
jkh
c8394629dc Adapt sysinstall to use the new msgNoYes() function which assumes
no as a default.  Sysinstall should be both less dangerous and less
annoying as a result of this change, though that's just my opinion
(since they're the defaults which annoy ME the least :).
2000-12-14 02:49:02 +00:00
rwatson
7f5f9dc1d0 o Check return of strdup() for NULL, abort if so.
Submitted by:	jedgar
2000-12-14 01:51:39 +00:00
imp
bfe09706cd getopt interface is defined in <unistd.h> so use that in preference to externs. 2000-12-11 21:09:29 +00:00
wilko
a46e911a04 Add a workaround in the EXAMPLE section for booting diskless SPARC/SunOS
Xkernel machines. Might save people some hair pulling..

Submitted by:	rene@tcja.nl
2000-12-11 19:10:07 +00:00
ru
12c490a119 mdoc(7) police: use canonical form of .Dd macro. 2000-12-11 15:57:16 +00:00