Commit Graph

6576 Commits

Author SHA1 Message Date
ru
ebf761e316 mdoc(7) police: ``Ds'' is not certified (no macro with such name exist)
to be used as the -width parameter, it is provided solely for backwards
compatibility with old mdoc(7).  To make this work, mdocNG is forced to
provide a dummy ``Ds'' macro.
2001-01-22 10:27:07 +00:00
peter
0c112da7f2 Clean up some obsolete stuff. config -r has not been needed since around
FreeBSD 3.x or so when the 'make depend' picked up the opt_foo.h files.
Convert warnings into actual errors in the hope that buildkernel users
will pay more attention. :-(
2001-01-22 07:03:06 +00:00
babkin
879a177132 Made the special handling of the daylight time switches optional,
enabled by the option "-s" (for dSt). This returned the default behavior
to its original form.

The new option name is not "-d" because that would cause associations with
"debug" and cron already has "-x" for debugging, so this would cause
confusion.
2001-01-22 01:54:51 +00:00
brian
ee3492fbe9 Handle SECDNS being rejected when PRIDNS is not
Submitted by:	OGAWA Takaya <t-ogawa@triaez.kaisei.org>
PR:		24518
2001-01-22 01:43:46 +00:00
itojun
88c2ff6529 make it easier to handle $FreeBSD$ tags (amount of diff matters). 2001-01-21 15:25:46 +00:00
itojun
c3b8cc21c1 make it clearer that rtadvd.conf is optional (configs are grabbed from kernel). 2001-01-21 15:25:05 +00:00
babkin
7153352838 Added sensible handling of switch to and from daylight saving time
for the jobs that fall into the disappearing or duplicated time
interval.

PR:		bin/24494
2001-01-20 21:28:16 +00:00
jedgar
5021d5ade4 - Correct MAXPATHLEN/MAXHOSTNAMELEN usage
- Check return values of malloc() and strdup()
- Replace strcpy()/strcat()/sprintf() usage with strlcpy()/snprintf

Reviewed by:	-audit
2001-01-20 17:36:08 +00:00
jedgar
e6de54fe3b Use more secure temporary files using mktemp(1)
Submitted by:	Mike Heffner <mheffner@vt.edu>
2001-01-20 04:30:41 +00:00
jedgar
ff858da87b Check strdup() return values
Reviewed by:	kris
2001-01-20 01:22:31 +00:00
kris
1e465c4703 Prevent overflow in -d argument by replacing hand-rolled
strcat+strcpy+perror with err()

Submitted by:	Mike Heffner <mheffner@vt.edu>
2001-01-19 23:11:18 +00:00
ru
1d60a70335 mdoc(7) police: removed leading whitespaces that are not inside
Bd/Ed; these hardly degrade the quality of the produced output.
2001-01-19 14:15:40 +00:00
peter
296268c849 Stop turning 'mandatory' into an implicit 'count' line. i386/npx was the
only consumer of this and it is no longer needed.
2001-01-19 13:20:50 +00:00
peter
1e291407fc Implement option strings that we can use in #ifdefs (where unavoidable)
as a replacement for the evil #define NFOO.  If 'device npx' is in the
static kernel, a synthetic option '#define DEV_NPX 1' will be available
to stick in an opt_xxx.h file.  "#if NNPX > 0" can be replaced with
"#ifdef DEV_NPX" and we can get rid of the overloaded meaning of the
device count mechanism.
2001-01-19 12:49:21 +00:00
peter
d82fbe9972 Create a build-tools target for sysinstall and rtermcap. This is still
not right because rtermcap would be reading the *host* termcap, not
from the termcap in the src tree.  Besides, /usr/sbin/sysinstall
(not the crunched one in /stand) should use the runtime termcap
not the precompiled set.
2001-01-19 09:24:00 +00:00
ru
85256213f5 mdoc(7) police: add missing .Ed call. 2001-01-18 17:23:15 +00:00
ru
df430e9ea6 man(7) -> mdoc(7). 2001-01-18 16:04:48 +00:00
peter
0b9acc5085 Deal with table parsing bugs caused by out-of-order record entries.
Complain about out-of-order entries.  This fixes the 'mp extended
table HOSED!" report on the DL360 we have here with the "fixed" compaq
bios rom to fix the table length off-by-one error.
2001-01-18 07:42:02 +00:00
jhb
c1dcb8aa81 The example install.cfg now lives in /usr/src/usr.sbin/sysinstall. 2001-01-17 19:52:16 +00:00
jhb
c4e155acf4 Look for help files in /usr/src/usr.sbin/sysinstall instead of
/usr/src/release/sysinstall.
2001-01-17 19:51:08 +00:00
ru
cf8e47ab9a man(7) -> mdoc(7). 2001-01-17 09:15:13 +00:00
ru
bbdb20708d mdoc(7) police: compact a few lists for better output. 2001-01-17 09:07:31 +00:00
ru
45ac879305 mdoc(7) police: removed empty line (mdocNG does not like them),
columnate ENVIRONMENT variables.
2001-01-17 08:32:08 +00:00
jhb
3574468018 Activate sysinstall. 2001-01-17 03:32:19 +00:00
jhb
09872476f2 - We live in /usr/sbin now, so don't set special veriables to build a
static version that installs in /stand.  Also, don't use an extra
  before-install target to create /stand.
- Add missing $FreeBSD$.
- Fix dependencies to handle keymap.h. (*)

Submitted by:	obrien (*)
2001-01-17 03:32:00 +00:00
ben
6ac6817bab Ooops, the -M and -N flags were already documented, though not very clearly.
Remove the old description in favour of the new description which lists the
-M and -N flags along with all the other flags.  This is consistent with the
manual pages for ps, netstat, iostat, etc.
2001-01-16 22:09:33 +00:00
ben
222bc424b0 document -M and -N flags.
PR:		24323
Submitted by:	Jesse Monroy <opentrax@email.com>
2001-01-16 22:05:28 +00:00
joe
0e098194ef Deprecate the use of the CD_DRIVE, CDPLAY, DISC and MUSIC_CD environment
variables in favour of CDROM.

Discussed on:	stable@FreeBSD.org
2001-01-16 20:31:53 +00:00
ru
5987dd687b man(7) -> mdoc(7). 2001-01-16 17:29:42 +00:00
hm
5fef4795b5 Enhance find_matching_entry_incoming() to check if the controller, on
which the call gets in, matches the one given in the entry section, or
-1 for any controller.

Submitted by:	Oliver von Bueren <maillist@ovb.ch>
2001-01-16 13:10:51 +00:00
ru
cd914ddc3c mdoc(7) police: fixed broken references. 2001-01-16 11:52:00 +00:00
ru
b1e891e706 Prepare for mdoc(7)NG. 2001-01-16 09:39:23 +00:00
ru
2ca7f0f2db Prepare for mdoc(7)NG. 2001-01-16 09:15:57 +00:00
sobomax
4f0908e679 - Fix a nasty bug where pkg_create doesn't gzip package if lengh of package
name is less than 5 and doesn't contain recognizeable suffix (one of .tar or
  .tgz), while gzip's it if lengh of the name greater than 4. For example
  `pkg_create [options] pkg1' will create pkg1.tar, while
  `pkg_create [options] pkg11' will create pkg11.tgz;
- use TRUE/FALSE as a values for boolean variables instead of explicit 1/0 and
  erroneous YES in one case.

MFC candidate.
2001-01-16 08:27:28 +00:00
ru
c990808923 mdoc(7) police: fix the unbalanced Bk/Ek. 2001-01-15 16:58:14 +00:00
sobomax
e0f92c036b Fix a bug arised from the ')' in the wrong place when calling printf()-like
varargs function, which lead to one of the arguments was left out. This resulted
in failure when inwoking mtree, warning message "mtree returned a non-zero
status - continuing" and probably is the reason for zillion mtree errors on
bento.
2001-01-15 09:45:16 +00:00
peter
c47990530f Backtrack a bit.. Put the dangerously dedicated option under a
non-advertised option (F = "FreeBSD only"), and leave the A key with
standard partitioning.  It seems people still want a runtime backdoo
to get to dangerously dedicated mode.
2001-01-15 08:15:19 +00:00
peter
6625c7253a Don't invite trouble by waving the 'Dangerously Dedicated' (DD) option
at people.  This has been sitting in my tree for a few months now.  I
have spoken with quite a few folks about this and the support for doing
this was pretty strong.  I dont remember names though, so I cannot share
the blame :-(.  Note that this does not *remove* DD mode, it just stops
waving it at new users.  You can still set it via config files etc, and
the bootblocks and kernel still support it.  You can still use disklabel
to make true DD disks.
2001-01-15 05:29:53 +00:00
joe
93b22c8494 Describe that the CDROM environment variable now affects which
device is used by default.
2001-01-14 16:29:24 +00:00
des
87140a8657 Spell my name right in the copyright. 2001-01-14 16:14:17 +00:00
paul
2b2daee51d Fix a nasty bug whereby if the package file didn't have a version number
then all packages would be deinstalled!

The tightening up of version number checking also fixes a bug where
a package file such as gtk.tgz would have resulting in gtk-engines
being deinstalled.
2001-01-14 02:05:02 +00:00
brian
883394d1f5 Use fstat to check if descriptor 0 is a socket.
Suggested by: julian
2001-01-14 00:54:48 +00:00
iwasaki
26697bdc7c Oops, forgotten to add manpage. 2001-01-13 16:18:37 +00:00
iwasaki
d9f3024b64 Add manpage for acpiconf.
Submitted by:	des
2001-01-13 16:16:25 +00:00
sobomax
8e44a1b543 Fix a bug where pkg_create does not make an md5 entry for the last item in
the packing list. Also use switch() instead of zillion "else if ()" and for()
loop instead of while() loop for traversing through linked list.

MFC candidate.

Submitted by:	Alec Wolman <wolman@cs.washington.edu>
2001-01-12 11:36:12 +00:00
ru
1a7352c6a8 Minor mdoc(7) formatting fixes:
Removed extraneous .Pp calls and blank lines (mdocNG does not like them).
2001-01-12 10:21:51 +00:00
ru
0a665476ca Fixed mdoc(7) errors introduced in the previous revision. 2001-01-12 10:19:21 +00:00
hm
2c88c901b6 Add manual page for the new itjc ISDN hardware driver 2001-01-12 09:09:00 +00:00
hm
9027e746b4 Small clarification from the driver author
Submitted by:	Hans Petter Selasky <hselasky@c2i.net>
2001-01-12 09:08:18 +00:00
obrien
8a981f497e Add the us.pc-ctrl and us.unix keymaps. 2001-01-11 20:53:36 +00:00
hm
66377a4d1a Add support to name cards supported by the itjc driver
Submitted by:	Sergio de Souza Prallon <prallon@tmp.com.br>
2001-01-11 15:42:37 +00:00
ru
b8eb0fa4ad mdoc(7) police: formatting fixes. 2001-01-11 08:16:46 +00:00
sos
20b185b510 New option -m to select multisession mode.
WARNING: until now all disks was closed as multisession disks, this is
no longer the case, if the -m option isn't used disks are closed as
singlesession. The reason is that some drives wont close a disk
with one large image on in multisession mode, probably because it
"knows" that a new session wont fit on the media resonably.

Also update burncd with new stuff from various places that I've collected
and modified to my taste, its actually amasing how many thinks up the
same enhancements (none mentioned none forgotten):

Allow '-' to be used as filename for using stdin.

Add 'l' option to take a list of image files from 'filename'
2001-01-10 19:28:37 +00:00
joe
1b927f9965 Liberal application of style(9). 2001-01-10 14:08:48 +00:00
hm
6c8462c6d4 Bugfix to make configuration of isp/isppp interfaces by using isdnd.rc work
Submitted by:	bad@k.bsd.de (Christoph Badura)
2001-01-10 13:49:11 +00:00
joe
030266a74e Flag an error and remove the program from the list if there is
no source directory or no objects can be determined.

Initialise a structure variable.
2001-01-10 13:27:38 +00:00
hm
8033667d74 correct a small typo in isdnd that broke the ppp-expect-password option
Submitted by:	Thomas Moestl <tmoestl@gmx.net>
2001-01-10 09:41:42 +00:00
peter
3550c6c8e8 Move MD <machine/if_wavelan_ieee.h> to MI <dev/wi/if_wavelan_ieee.h> 2001-01-09 00:50:45 +00:00
peter
5089aba91e Try and stop config(8) from freaking out due to unnecessary paranoia
when using -d.  Use realpath(3) to locate the top of the tree rather than
trying to manually trim back the results of a getcwd().

Requested by:  alfred
2001-01-04 22:08:20 +00:00
sheldonh
031f46f61d Catch up with rev 1.19 of vnconfig.c . 2001-01-03 10:55:23 +00:00
peter
b0fe93c364 Fix typo: s/memberhip/membership/
Submitted by:  Peter Avalos <pavalos@theshell.com>
2001-01-02 04:01:59 +00:00
ben
bc4e0ca581 Minor layout fixes.
PR:		24004
Submitted by:	Jimmy Olgeni <olgeni@uli.it>
2001-01-01 23:30:51 +00:00
ben
7ae2075697 Check that the hostname field in received packets is NUL-terminated. 2001-01-01 18:43:21 +00:00
imp
0fcfcbed33 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
679a4954b7 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
e372b3cf67 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
4899c281c7 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
de51ba97a9 Use the MACRO API to <sys/queue.h>.
Submitted by:	"Peter Avalos" <pavalos@theshell.com>
2000-12-30 14:19:07 +00:00
paul
d7333de73d 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
38741e41c5 Log the ``MPPE: MasterKey is invalid...'' message as a CCP
diagnostic rather than a warning.
2000-12-29 22:25:56 +00:00
phk
da8270585d Convert from CIRCLEQ to TAILQ. 2000-12-29 20:33:28 +00:00
ben
5a90713c4b 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
2cd3eb1c84 mdoc(7) police: get rid of hard sentence breaks, add missing .El, etc. 2000-12-29 09:03:38 +00:00
paul
b526b7148d Fix the broken options that were in the development version I committed by mistake. 2000-12-28 19:53:44 +00:00
ben
cf930fec79 * 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
68fbfb95f2 Bring the man page up to date with the current version of the script. 2000-12-28 19:42:06 +00:00
paul
e186ada79d 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
b14c7cbbcf Retire kernfs (userland part). 2000-12-28 12:59:57 +00:00
ru
522216623a Prepare for mdoc(7)NG. 2000-12-27 15:30:30 +00:00
ru
0a8b50d911 Prepare for mdoc(7)NG. 2000-12-27 14:22:05 +00:00
sos
5146ccfc03 Update to match the progress interface on blank command. 2000-12-26 11:56:15 +00:00
toshi
2b9855af0a Fix output of -v option. 2000-12-24 15:30:36 +00:00
joe
766c10a107 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
8f251669de 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
57f7a8db57 Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
des
1638692b02 If no device is specified, check the CDROM environment variable before
picking the default device.
2000-12-18 14:35:54 +00:00
ru
f144e2e209 mdoc(7) police: document IPv6 options in the SYNOPSIS. 2000-12-18 08:42:58 +00:00
dougb
8e77d321e4 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
5a3d126c72 * 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
f7bfd5b1bc 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
1d6e0e836e 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
64f5577714 Clarify an ambiguous 'else' introduced by a recent commit. 2000-12-17 17:03:05 +00:00
joe
41c5ee0678 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
66824ddba0 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
e4a876193f IPv6 support for syslogd.
Reviewed by:	freebsd-current
Obtained from:	NetBSD
2000-12-16 18:25:48 +00:00
ume
d046c56964 IPv6 support for lpr.
Reviewed by:	freebsd-current (no objection)
Obtained from:	KAME
2000-12-16 18:06:09 +00:00
jkh
d5c1f5c8d9 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
21872412be Use dialog_noyes() for UTC selection; uses No as default answer now. 2000-12-16 05:29:38 +00:00
phk
44d5616439 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
bffba5bbaa Add a missing dot. 2000-12-15 07:34:01 +00:00