Commit Graph

1161 Commits

Author SHA1 Message Date
Peter Wemm
1811bdf372 Import some CSRG 4.4BSD-Lite2 components for sbin onto vendor branch.
(note that some of these have already been imported, this is a no-op)
1997-03-11 11:59:39 +00:00
Peter Wemm
39e5614a71 This commit was generated by cvs2svn to compensate for changes in r23669,
which included commits to RCS files with non-trunk default branches.
1997-03-11 11:59:39 +00:00
Bruce Evans
92e2d9bed5 Attempt to import Lite2's mount. 1997-03-05 17:51:21 +00:00
Bruce Evans
2822751af3 This commit was generated by cvs2svn to compensate for changes in r23412,
which included commits to RCS files with non-trunk default branches.
1997-03-05 17:51:21 +00:00
Bruce Evans
a92d3ad246 Attempt to import Lite2's mount. 1997-03-05 17:51:21 +00:00
Bruce Evans
423f22330a Force null termination after 2 errant strncpy()s. 1997-03-05 12:08:44 +00:00
Warner Losh
624ff93821 Fix typo introduced in 1.17.
Submitted by:	"Philippe Charnier" <charnier@xp11.frmug.org>
1997-03-04 22:05:49 +00:00
Bruce Evans
8f86703906 Updated mount_msdos to use the Lite2 getvfsbyname() interface. 1997-03-03 13:23:54 +00:00
Warner Losh
1ffae4a6dd Check the size of the IP address reutrned from gethostbyname2, per PR
2578 from Julian A.  Likely not strictly needed, but it doesn't hurt
and protects ping against possible buffer overflows if the resolver
were to return large IP addresses.
1997-03-03 09:50:21 +00:00
Mike Pritchard
940783df47 An odd merge from 2.2 to -current. Somehow that 2.2 nologin.5
man page was in better shape than the 3.0-current version,
so I'm committing the 2.2 version to 3.0.  Whatever happened,
it was my fault :-).
1997-03-03 06:47:27 +00:00
John-Mark Gurney
50ceac8822 fix man page to use marcos instead of parens, quotes and braces
plus other minor fixes
1997-03-02 23:38:05 +00:00
John-Mark Gurney
f22592e760 mdoc'ify man page 1997-03-02 21:43:10 +00:00
Warner Losh
ee2bf73496 1) Minor nits in the usage message from bde. I took out the hard tabs and
used spaces to align the second line under the program name.
2) Cache uid after call to setuid(getuid()) so we don't waste a system call
   for each packet with a call to getuid for the -v case.
3) Update manual to reflect new restriction on -l from last delta.

Suggested by:	bde, Bill Fenner
1997-03-02 20:01:13 +00:00
Joerg Wunsch
06996f8920 Avoid the ``Three seconds until format begins'' construct. It's
inconsistent with the remaining unix utilities, so replace it by
something better suited.

Learned from:	The Unix Hater's Handbook :-)
1997-03-02 11:21:07 +00:00
Warner Losh
f78ac61b3a 1) Fix usage to match convention and manual. Fix manual to match usage.
2) Must be root to run preload (OpenBSD ping.c 1.8)
3) Don't print all replies unless verbose and root (from idea in
   OpenBSD ping.c 1.10 and 1.11) to avoid leaking information available
   only to root.
4) Remove unused h: from option string to getopt.
5) Make the compiler happy with exit(0) (Lite-2?)

Reviewed by: Dan Cross <tenser@spitfire.ecsel.psu.edu>

Good candidate for 2.2 and 2.1 (as are many of the 1.17 changes).
1997-03-02 06:32:42 +00:00
Garrett Wollman
43470e3be8 Make ping -Wall clean (except for one warning).
Do a better job of argument parsing.
Don't permit ping -f to a multicast address (very antisocial).
Don't permit -L, -I, -T options with unicast addresses.
Ensure that we ask for only AF_INET addresses (should close PR#2584).
Return <sysexits.h> error codes for failures.  Document this.
Fix man page to identify the author and put sections in correct order.
1997-03-01 20:19:18 +00:00
Warner Losh
a1d72e7cac Fix a minor problem with restore from tapes from big endian machines.
This finishes the closing of PR2446 which J"org Wunsch pointed out to
me after I closed it.

Submitted by:	Tor Egge <Tor.Egge@idt.ntnu.no>
1997-02-25 02:25:02 +00:00
Peter Wemm
476602a9d0 Revert $FreeBSD$ to $Id$ 1997-02-22 16:15:28 +00:00
Peter Wemm
fce15c9ab3 Revert $FreeBSD$ to $Id$ 1997-02-22 15:48:31 +00:00
Peter Wemm
c0ec1f37ef Revert $FreeBSD$ to $Id$ 1997-02-22 14:40:44 +00:00
Ollivier Robert
a14390ccec Security patch from OpenBSD: fixes potential buffer overflow in a static
buffer (so more difficult to exploit but better safe than sorry). Found
by comparing FreeBSD & OpenBSD sources/logs for the auditing process.

Reviewed by:	Warner Losh
Obtained from:	OpenBSD
1997-02-20 22:16:39 +00:00
David Greenman
33a20f8291 Protect from stack overrun via /etc/ttys, which could possibly allow a
root user to change the securelevel. Pointed out by Thomas H. Ptacek
<tqbf@enteract.com>.
1997-02-19 08:04:58 +00:00
Bruce Evans
4cca17ae59 Disabled dumplfs. Importing the Lite2 version was a mistake, since
many files haven't left the vendor branch and the sys/ufs/lfs hasn't
been merged.
1997-02-17 13:15:42 +00:00
Bruce Evans
1e988af73f Import Lite2's dumplfs. 1997-02-17 13:07:40 +00:00
Bruce Evans
c1530c7bf3 This commit was generated by cvs2svn to compensate for changes in r22839,
which included commits to RCS files with non-trunk default branches.
1997-02-17 13:07:40 +00:00
Jordan K. Hubbard
28ebf21479 Update CHANGEDSINCE macro to conform to -current dinode.h 1997-02-16 22:16:08 +00:00
Joerg Wunsch
d41229fcaa Plug a security hole involving $ENV forwarding over telnet. Sigh, i
thought i've long since done this.
1997-02-15 10:15:49 +00:00
Mark Murray
35c6fcd43b Part two of a "fix-and-move". There were some macros declared in ../sbin's
Makefile that were a) broken and b) bogusly placed. This brings the
repeared macros in.

Pointed-out-by:	BDE
1997-02-10 17:44:34 +00:00
Mark Murray
77ffbc1aad Part one of a "fix-and-move". Init(8) had make macros declared here
bogusly. This removes the macros for replacement into init's Makefile.

Pointed-out-by:	BDE
1997-02-10 17:41:33 +00:00
Daniel O'Callaghan
f607e2c314 Add '-q' quiet flag for flush/add/zero commands; add 'show' command as
synonym for '-a list'; stop SEGV when specifying 'via' with no interface;
change 2 instances of strcpy() to strncpy().

This is a candidate for 2.2
1997-02-10 15:36:54 +00:00
Eivind Eklund
20a842df1f Removed default setuid and added a comment to the manpage explaining this. 1997-02-09 20:56:34 +00:00
Eivind Eklund
2af23c9080 Remove suid bit from binary, and update manpage to reflect this. 1997-02-09 18:03:41 +00:00
Eivind Eklund
b94f03b208 Buffer overflow patch. 1997-02-09 14:09:47 +00:00
Wolfram Schneider
00f1123353 /usr/lib/libmd.a -> ${LIBMD} 1997-02-08 23:24:10 +00:00
Daniel O'Callaghan
772dfa7231 Reviewed by: Gary Jennejohn <gj@freebsd.org>
Submitted by:	Bruce Murphy <packrat@iinet.net.au>

Add '-a' audible flag, so terminal will beep upon receipt of a reply
packet.  Useful for debugging ethernet runs, among other things.
1997-02-08 01:43:56 +00:00
Mike Pritchard
21c7bd7842 Replace "mfs" with "mount_mfs" in the NAME section. 1997-02-06 17:49:55 +00:00
Wolfram Schneider
9a42683b3a /sbin -> ${BINDIR} 1997-02-06 01:24:43 +00:00
Joerg Wunsch
af00957e47 Add the a' option (`auto-size'') to bypass all tape length
considerations, and dump right to the end of medium.
1997-02-01 23:44:19 +00:00
Mike Pritchard
7610c94088 Some various mdoc cleanup.
Partially Obtained from: NetBSD-bugs mailing list
1997-01-28 05:55:22 +00:00
David E. O'Brien
21eab473b3 I was porting something from sysV world and found our cross references
not quite as good as I would expect.  So I'm introducing mknod to mkfifo,
and vice-versa.
1997-01-27 19:20:05 +00:00
Warner Losh
2e42144ea7 Apply patch from pr2536, after testing locally.
Fixes: PR2446 and PR2536

Submitted by: Flemming Jacobsen <fj@tfs.com>

2.2 Candidate.
1997-01-25 05:27:17 +00:00
Adam David
4f3cac8f23 typo 1997-01-22 12:38:40 +00:00
David Nugent
e82d554503 Style police. 1997-01-22 02:07:55 +00:00
Adam David
3cf6d2e792 -n was broken
2.2 candidate (probably)
1997-01-21 21:07:29 +00:00
Mike Pritchard
ca76031b72 Various minor cleanup.
Partially Obtained from: NetBSD-bugs
1997-01-19 17:57:15 +00:00
David Nugent
1ef60eb115 Impose login_cap resource limits on processes started by init.
/etc/rc started with "daemon" settings.
	"window=" started with "default" settings
	gettys started with "default" settings.
This should open the way to junk kernel options MAX_{OPEN,CHILD}
and the corresponding sysctl vars.
1997-01-19 16:49:13 +00:00
Jordan K. Hubbard
8d26fa1ec7 Adjust spelling of `fw_flg' so this thing compiles again. 1997-01-17 07:01:21 +00:00
Alexander Langer
8abdc2eb40 Sweep through the tree fixing mmap() usage:
- Use MAP_FAILED instead of the constant -1 to indicate
    failure (required by POSIX).
  - Removed flag arguments of '0' (required by POSIX).
  - Fixed code which expected an error return of 0.
  - Fixed code which thought any address with the high bit set
    was an error.
  - Check for failure where no checks were present.

Discussed with:	bde
1997-01-16 21:58:40 +00:00
Adam David
839cc09e53 implement "not" keyword for inverting the address logic 1997-01-16 21:04:29 +00:00
Poul-Henning Kamp
1d0847d38d Trivial fix for braino.
Reviewed by:	phk
Submitted by:	Martin Ibert <mib@ppe.bb-data.de>
1997-01-16 10:12:30 +00:00
Jordan K. Hubbard
1130b656e5 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Wolfram Schneider
af20215665 Sort cross references. 1997-01-13 00:25:51 +00:00
Garrett Wollman
97d1e20ef9 If the RTM_NEWMADDR and RTM_DELMADDR messages are defined
(in <net/route.h>), then interpret them appropriately.  This has
no effect until I commit the changes to multicast group
management (awaiting review).
1997-01-09 21:34:03 +00:00
Peter Wemm
9e0dc595f6 Fix double typo 1997-01-08 03:00:42 +00:00
Warner Losh
f5dcc2f1e6 Fix many buffer overflows, correct usage of strcat and implement
$TAPE.  Inspired by OpenBSD's work in this area.

Reviewed by:	Peter Wemm, Guido van Rooij and Jordan Hubbard.
Obtained from: OpenBSD
1997-01-07 20:48:24 +00:00
Paul Traina
71fbc63c69 bin/1789: dump estimates a negative number of tapes needed for huge dumps 1997-01-07 20:15:04 +00:00
Garrett Wollman
5f3ab5ec26 This commit was generated by cvs2svn to compensate for changes in r21378,
which included commits to RCS files with non-trunk default branches.
1997-01-06 17:24:50 +00:00
Garrett Wollman
cdb877c33d Quoth Vern:
ftp.sgi.com:sgi/src/routed.tar.Z has a fix that has been cooking for a week
or so and that fixes a problem in the new hash tables for zillions of
interface aliases.  The bug was that interfaces that come and go, such
as for SLIP and PPP, would get permanently lost.

Submitted by:	Vernon J. Schryver <vjs@mica.denver.sgi.com>
1997-01-06 17:24:50 +00:00
Garrett Wollman
702a1d0148 Update to match changes in <net/if.h>. 1997-01-03 20:19:50 +00:00
Andrey A. Chernov
7726a8a928 Merge to eliminate conflict 1997-01-03 08:29:46 +00:00
Garrett Wollman
d005ed5a68 Latest version of routed from Vern Schryver. This one really
should fix Andrey's problem.
1997-01-02 16:57:08 +00:00
Guido van Rooij
6412184028 Yet another buffer overflow.
2.2 candidate
(and -stable too actually, who does that?)
Reviewed by:	Warner Losh
1997-01-01 14:08:47 +00:00
Warner Losh
335524b9ad Various security related deltas from OpenBSD
dirs.c:
	From OpenBSD 1.2, 1.3, 1.5, 1.8, 1.10, 1.11, 1.12
	1.2:
		use unique temporary files; netbsd pr#2544;
		lukem@supp.cpr.itg.telecom.com.au
	1.3:
		updated patch from lukem@supp.cpr.itg.telecom.com.au
		to also make -r and -R work again
	1.5:
		mktemp open & fdopen
	1.8:
		/tmp// -> /tmp/
	1.10:
		Fix strncpy usage and correct strncat length field,
		from Theo.  Also change some occurrence of MAXPATHLEN
		with sizeof(foo).
	1.11:
		does noone know how to use strncat correctly?
	1.12:
		use mkstemp()
	From NetBSD:
		Use open rather than create so we can specify
		exclusive open mode.

main.c:
	From OpenBSD 1.2, 1.5
	1.2:
		From NetBSD: support $TAPE.
	1.5
		Set umask to be read only by owner until we set real
		file permissions.
tape.c:
	From NetBSD:
		Use open rather than create so we can specify
		exclusive open mode.
1997-01-01 00:03:49 +00:00
David E. O'Brien
4cbb75f40e Backing out my change of /etc/rmt -> /usr/sbin/rmt.
Added comments in both files stateing why /etc/rmt is correct so someone
else wont do the same thing again.

Suggested by:	Warner Losh & Ollivier
1996-12-29 11:48:45 +00:00
David E. O'Brien
cbb90fdbbc rmt is /usr/sbin/rmt, not /etc/rmt which is a link to /usr/sbin/rmt 1996-12-29 00:57:18 +00:00
Wolfram Schneider
13bbf3d16f Add example for mount_mfs(8). 1996-12-26 02:01:09 +00:00
Wolfram Schneider
13608f6661 comma typos 1996-12-23 23:09:55 +00:00
Mike Pritchard
bc41bb3f92 Minor mdoc/style fixes. 1996-12-23 02:03:15 +00:00
Mike Pritchard
0115bea9e8 Convert to mdoc format. 1996-12-23 01:04:46 +00:00
Andrey A. Chernov
21393d8c5e FIx coredump with rtquery.
It is just quick fix taken from new routed sources,
full new routed importing I leave to wollman
1996-12-21 05:55:55 +00:00
Garrett Wollman
2bd2205c6c Delete redundant include of <sys/time.h> 1996-12-17 21:12:56 +00:00
Garrett Wollman
b8186907ad Merge from vendor branch. 1996-12-17 21:11:59 +00:00
Garrett Wollman
337e72d0e5 Latest routed from Vern Schryver. This is supposed to fix
Andrey's rtquery problem.

Submitted by:	Vernon J. Schryver <vjs@mica.denver.sgi.com>
1996-12-17 21:07:05 +00:00
Garrett Wollman
a105b819c8 This commit was generated by cvs2svn to compensate for changes in r20606,
which included commits to RCS files with non-trunk default branches.
1996-12-17 21:07:05 +00:00
Bill Fenner
854569350f Add multicast options -I (source interface), -T (set ttl), -L (no loopback).
They were all lowercase in the original, but our ping already uses -i and
-l so I made them all uppercase.

Obtained from:	Multicast release 3.5
1996-12-15 23:41:29 +00:00
Mike Pritchard
d3bb9749e6 Now that all of the "standard" file system mount commands
refer the reader to the detailed information in section 5,
remove the mount_* man pages for those file system.  mount_std(8)
to cover all of the file systems it is currently being used
to mount.

mount_{devfs, fdesc, kernfs, procfs}.8 are now
MLINKS to mount_std.
1996-12-14 22:58:37 +00:00
Mike Pritchard
84c0c5c16a Refer the reader to devfs(5). 1996-12-14 22:49:44 +00:00
Mike Pritchard
b755bb110f Refer the reader to fdesc(5) for detailed info on the fdesc filesystem. 1996-12-14 22:18:08 +00:00
Mike Pritchard
b09aedddeb Remove the descriptions of the files in /kern and refer
the reader to kernfs(5) so that the information only
has to be maintained in one place.
1996-12-14 21:55:37 +00:00
Mike Pritchard
215afc25bb Update the newfs(8) man page to reflect current
default values for some options better.  Closes PR# 1374.
1996-12-14 20:54:05 +00:00
Mike Pritchard
0d540c71bd Remove the detailed description of the files in /proc
and instead refer the reader to procfs(5) so that
the information does not need to be maintained in
two places.
1996-12-14 20:14:15 +00:00
Garrett Wollman
a30febec0e Merge from vendor branch. 1996-12-11 21:04:17 +00:00
Garrett Wollman
71965874ee New version of Vern's routed. This includes more byte-order fixes,
some MD5 fixes, better tracing, configurable redirect processing,
and a fix to split-horizon/poisoned-reverse treatment.

Submitted by:	Vernon J. Schryver <vjs@mica.denver.sgi.com>
1996-12-11 20:59:33 +00:00
Garrett Wollman
fda109d2ad This commit was generated by cvs2svn to compensate for changes in r20339,
which included commits to RCS files with non-trunk default branches.
1996-12-11 20:59:33 +00:00
Garrett Wollman
2600973097 Fix if.h lossage. I could have sworn I already fixed this one. 1996-12-10 21:25:42 +00:00
Garrett Wollman
628d2ac1b0 Fix up programs which expect <net/if.h> to include <sys/time.h> to instead
do it themselves.  (Some of these programs actually depended on this
beyond compiling the definition of struct ifinfo!)  Also fix up some
other #include messes while we're at it.
1996-12-10 17:11:53 +00:00
Bruce Evans
7d81b35c91 Cleaned up recent SIGINFO changes.
Simplified average calculations.  This also fixes potential overflow errors
and minor rounding inconsistencies (always round to nearest now).

Don't lose more SIGINFOs than necessary.

Print \r at the start of the status message.  This clears the dots that
are sometimes left by ping -f.

Reviewed by:	sef
1996-12-10 14:41:22 +00:00
Mike Pritchard
8bc3ddf57f Improve the format of the usage string output.
Submitted by:	Sandro Sigala <sandro@cat.locao.net> as part of PR# 2134
1996-12-09 08:10:45 +00:00
Mike Pritchard
256835f230 Minor formatting/style fixes.
Submitted by:	Sandro Sigala <sandro@cat.local.net> as part of PR# 2134
1996-12-09 08:04:55 +00:00
Paul Traina
f6bd468bf0 Fix typo in last patch. empty!=emtpy 1996-12-08 06:27:09 +00:00
Sean Eric Fagan
37e5b2c618 Change how SIGINFO is handled -- set a flag (of sig_atomic_t), and check
that flag on every iteration of the loop.  This avoids calling fprintf
inside a signal handler, which is always somewhat icky.

Reviewed by:	bde
1996-12-07 20:20:41 +00:00
Bill Fenner
0b71f5af34 Fix math in SIGINFO printer. 1996-12-02 21:42:11 +00:00
Søren Schmidt
7cb29d3394 This update adds the support for != 512 byte sector SCSI devices to
the sd & od drivers. There is also slight changes to fdisk & newfs
in order to comply with different sectorsizes.
Currently sectors of size 512, 1024 & 2048 are supported, the only
restriction beeing in fdisk, which hunts for the sectorsize of
the device.
This is based on patches to od.c and the other system files by
John Gumb & Barry Scott, minor changes and the sd.c patches by
me.
There also exist some patches for the msdos filesys code, but I
havn't been able to test those (yet).

	John Gumb (john@talisker.demon.co.uk)
	Barry Scott (barry@scottb.demon.co.uk)
1996-12-01 11:25:38 +00:00
Garrett Wollman
a1199adebc Fix lots of non-bug questionable code:
- Don't link against libkvm and don't uselessly include <kvm.h>.
- Declare constant objects as const.
- Declare functions with the correct types.
- Call functions with the correct parameters.

Not fixed:

- The sysctl parsing remains ugly (but it may be the best we can do).
- atnetrange() should use strtoul() rather than sscanf() for better
  error checking.
1996-11-21 19:36:09 +00:00
Garrett Wollman
1608c04fbd For some reason the merge of this file didn't get committed properly.
Who has the conical hat?

Make things compile again.
1996-11-20 15:23:40 +00:00
Garrett Wollman
52ad60210f Merge from vendor branch and use system MD5 library. 1996-11-19 20:42:43 +00:00
Garrett Wollman
c9c588ef9b Last import was botched. Fix it. 1996-11-19 20:26:54 +00:00
Garrett Wollman
3399732029 This commit was generated by cvs2svn to compensate for changes in r19882,
which included commits to RCS files with non-trunk default branches.
1996-11-19 20:26:54 +00:00
Garrett Wollman
d5b718b3ee Latest version of SGI routed courtesy of Vern Schryver. This version
adds the capability to use MD5 authentication as defined in the latest
documents.

Submitted by:	Vernon J. Schryver <vjs@mica.denver.sgi.com>
1996-11-19 20:23:47 +00:00
Garrett Wollman
47fe01ae9c This commit was generated by cvs2svn to compensate for changes in r19880,
which included commits to RCS files with non-trunk default branches.
1996-11-19 20:23:47 +00:00
Sean Eric Fagan
4055611a53 Move the terminal handling code to a later location; this allows
the signal handlers to be set up; it also means that a failed name lookup
won't mess up the nokerninfo setting of the tty.

Reviewed by:	pst, nate
1996-11-19 03:32:32 +00:00
Julian Elischer
4c81f2a3fd Submitted by: Archie@whistle.com
clear the fmod flag if it's set.
1996-11-13 02:01:36 +00:00
Andrey A. Chernov
677ab44579 Add mount_msdos(8) reference
2.2 candidate
1996-11-10 02:21:05 +00:00
John Polstra
566b4de9c1 Document that "ldconfig -m" rescans all directories previously
entered into the hints file, in addition to the directories named
on the command line.

2.2 Candidate.
1996-11-09 20:26:19 +00:00
John Polstra
d66f9d22f7 Fixed a bug in the handling of the directories in the search path
that is stored in the hints file.  If that search path contained
a non-existent directory (one, say, that had been removed), and
"ldconfig -m /a/perfectly/good/directory" was run, ldconfig returned
an error status without printing an error message.  This caused
some confusing bombs when installing ports, in particular.

I changed it so that non-existent directories from the stored search
path are silently ignored.  Only non-existent directories named
explicitly on the command line are treated as errors.  Also, a
diagnostic is printed if and only if an error status is returned.

In an unrelated fix, ldconfig now silently ignores any directories
named on the command line when the "-r" option is given.  Formerly,
these directories incorrectly made their way into the "search
directories" line of the listing.  It really should be an error to
specify directories together with "-r", but I don't have time to
fix the manual page in that way right now.

2.2 Candidate.
1996-11-08 02:12:40 +00:00
Jordan K. Hubbard
f46af50517 Allow fdisk to be driven from a configuration file, making a 3rd-party
utility for front-ending its operation more of a possibility.

2.2-RELEASE candiate.  Closes PR#1960
Submitted-By: Darryl Okahata <darrylo@hpnmhjw.sr.hp.com>
1996-11-06 14:08:39 +00:00
John Polstra
00f1098194 Fix a spelling error.
2.2 Candidate.
1996-11-05 22:27:33 +00:00
Bruce Evans
2ceaae21e9 Fixed backgrounding of ping, which was broken by the ^T changes in rev.1.3. 1996-11-04 17:25:03 +00:00
Wolfram Schneider
28f8a0fe26 fix usage string 1996-11-04 00:53:12 +00:00
Garrett Wollman
7948f68b85 Delete another unnecessary #include <sys/mbuf.h>. 1996-11-01 20:30:37 +00:00
Bill Fenner
b11ecdd6d0 Use fprintf(stderr,) instead of msgtail() so it works for restore as well. 1996-11-01 17:23:41 +00:00
Peter Wemm
c737f472e8 Temporarily disable an information message that was added in the last
commit..  This causes a link error in sbin/restore which also uses this
file.
1996-11-01 13:02:20 +00:00
Bill Fenner
4aad1224fc Make rdump error messages a little clearer and make them look like dump
messages, and make it explicit that stderr output came from the remote end.
 (e.g. "rmt: command not found")
1996-11-01 05:39:10 +00:00
Bill Fenner
d71ba03df8 If rcmd() fails, return immediately instead of trying a bunch of
setsockopt()'s on a -1 file descriptor.

Remove attempt to decrease TCP MSS; it makes no sense.

Set the IP TOS to IPTOS_THROUGHPUT as an indication that this is an
application sending large blocks of data, as recommended by RFC1700.
1996-10-28 23:26:37 +00:00
Poul-Henning Kamp
57622f2291 If passed the -d flag, mount devfs on /dev 1996-10-28 11:03:19 +00:00
Poul-Henning Kamp
c85a5ef04c Don't give up just because we cant find the blkdev that corresponds
to the name given as a chardev.
1996-10-27 18:28:39 +00:00
Bill Fenner
4ba05f60ea setuid back to the original caller immediately after opening the route socket.
Opening the socket is the only privileged operation route requires.

Make a couple of static buffers bigger, and use strncpy() and snprintf() where
there's a chance of overflow.

Fixes PR bin/1903

Partially Submitted by: Ollivier Robert <roberto@keltia.freenix.fr>

Don't look up the network number if we're being asked to add a host route.

Fixes PR bin/1900

Submitted by:	Bruce A. Mah <bmah@cs.berkeley.edu> (pr bin/1900)
1996-10-27 17:42:14 +00:00
Joerg Wunsch
2f77dcf6ad Allow the specification of a mountpoint, and resolve it s disk device
using the fstab.

Closes  PR bin/129.

Submitted by:	jmg@nike.efn.org (John-Mark Gurney)
1996-10-25 20:38:40 +00:00
Bruce Evans
1ab6205ce1 Moved #include of <sys/types.h> earlier so that this compiles when
<stdio.h> doesn't (bogusly) include <sys/types.h>.

Cleaned up #includes.
1996-10-25 06:48:29 +00:00
Joerg Wunsch
f9dc19265e Mention the historic mount options, as `deprecated'.
Closes PR # docs/735.
1996-10-22 21:56:58 +00:00
Poul-Henning Kamp
c650708207 dumpfs blindly trusts that it has been handed a filesystem.
If the magic is bad, don't waste our time.

Submitted by: Giles Lean Giles Lean <giles@nemeton.com.au>
Obtained from: NetBSD PR bin/249
1996-10-21 19:40:01 +00:00
Alexander Langer
bf41740b43 Issue a warning if the user specifies an invalid interface in a rule.
The rule is still added to the chain since the interface may get
created later on after loading an LKM.
1996-10-17 01:05:03 +00:00
Jordan K. Hubbard
98ca8a3e5b Bring back NS support for this utility - we need it for the commercial Novell
server software.
1996-10-16 19:37:58 +00:00
Bruce Evans
b7999b5100 Second try: attempt to import Lite2's newfs. 1996-10-15 08:40:58 +00:00
Joerg Wunsch
8df9b2ce24 Fix my yesterday's brain-o: don't account for the kilobytes twice. 1996-10-14 22:56:01 +00:00
Joerg Wunsch
927e7941a3 Yikes! Originally, i intended to apply the patch from PR # 1322,
but Bill has beaten me on this. ;-)

However, he missed the part to compute the kernelsize in kilobytes,
so the minfree consideration was now overcautious.  (I've also
changed the return type of dump_size() to void since int was useless.)

Being here, the fact that `vmcore' was written world-readable was just
a plain security hole: everybody who was able to crash a kernel could
later read any confidential information out of it at his will.  Create
it with umask 077 instead.
1996-10-13 20:55:45 +00:00
Bruce Evans
e29754402a The dos() function needs a new second argument, containing the size
of the partition. Only if the size is 0 should the
special handling of 0 as first argument be triggered.

[This bug caused offset 0 to give C/H/S = 0/0/0 instead of 0/0/1.]

The init_sector0 function needs to decrease the first argument
to the second call to dos() by one to be consistent with the
calls to dos() in change_part().

[This bug caused fdisk -i to create bogus partition tables with
the ending C/H/S value 1 too high.  This usually gives S = 1
instead of S = maximum, so the geometry guessing in the slice
code and perhaps in SCSI BIOSes was defeated.]

Submitted by:	Tor Egge <tegge@itea.ntnu.no>
1996-10-13 18:18:50 +00:00
Bill Fenner
4731e263af Make the savecore command work like the man page says:
- make minfree work by getting the dump size before checking to see
  if the dump will fit on the filesystem
- also fail to dump if no minfree is specified but there are not enough
  free blocks.

Fix a typo in the man page.

Fixes PR bin/1322

Submitted by:	"Philippe C." <charnier@lirmm.fr>
1996-10-13 18:12:20 +00:00
Bruce Evans
38058917d5 Rewrote the section about the "normal" setting of the security level to
match reality.

Say that secured devices `may not be opened for writing' instead of
`are read-only'.
1996-10-12 15:37:23 +00:00
John Polstra
7c6da7dcef Add a new option "-f hints_file" to specify an alternate file instead of
"/var/run/ld.so.hints".

Delete an incorrect statement about LD_LIBRARY_PATH from the manual
page.
1996-10-10 23:14:23 +00:00
Guido van Rooij
47ceb63687 Fix the case where fsck would not see sparse directories and the kernel would
panic. If such a thing is fixed fsck needs a rerun (and bugs the user to do
so).

Reviewed by:	Kirk McKusick
1996-10-08 14:54:53 +00:00
Wolfram Schneider
e83201b43a delete doubled words, e.g.: "the the" -> "the" 1996-10-05 22:27:30 +00:00
Joerg Wunsch
afb3e96f8a When MODE SELECT'ing, the ``device-specific parameter'' field is
reserved by the SCSI-2 specs.  Hence, zero it out.  Some drives
(correctly) complain about this otherwise.

Reviewed by:	craigs@os.com (Craig Shrimpton)
1996-10-05 17:40:20 +00:00
Jordan K. Hubbard
c01fb41027 Back out my -k changes; there's a better way to do this in the short-term. 1996-10-02 07:22:26 +00:00
Jordan K. Hubbard
a38ec0017c Add support for dset'ing an arbitrary kernel (experimental). 1996-10-01 14:42:36 +00:00
Peter Wemm
80c714994d Updates to deal with ld.so.hints version 2. It now deals with the
ldconfig path (from NetBSD).  I added code to make sure there were no
duplicates in the path when multiple ldconfig -m's were used.

Reviewed by: nate, jdp
Obtained from: NetBSD (partly)
1996-10-01 01:31:51 +00:00
Guido van Rooij
fe3a5bd458 Get rid of useless -f flag (though left for historical reasons). 1996-09-30 20:04:24 +00:00
Wolfram Schneider
ac8ef33789 .Os NetBSD -> .Os FreeBSD.
The pages are not NetBSD specific and FreeBSD is not a child of NetBSD.
1996-09-28 22:46:35 +00:00
Bruce Evans
750f8dc963 Removed references to pathconf-related variables that were never handled
by sysctl and never can be in their documented form (kern.name_max would
have to become fs.filesystemname.name_max, etc.).

Added missing references to user.stream_max and user.tzname_max.  These
seem to misnamed.  <sys/sysconf.h> says that they correspond to POSIX2
names, but the sysconf names don't have POSIX2 or "posix2" like all the
other POSIX2 names.
1996-09-28 14:43:03 +00:00
Guido van Rooij
a9bb2677f6 Add chlen command so you can set the size of an inode. This was handy
in order to create sparse directory files that caused a panic of a
filesystem where fsck would not find anything. A fix for fsck is in the
make but still has to be reviewed by Kirk McKusick.
1996-09-26 19:40:04 +00:00
Bruce Evans
0c8ea4d48c Eliminated includes of the "temporary" backwards compatibility header
<sys/dir.h> in applications.  Maintained existing (inadequate) ifdefs
for dir.h vs dirent.h in libdialog, amd and rarpd, but didn't add any
new ones.
1996-09-24 08:08:11 +00:00
Wolfram Schneider
e0e5145ce6 add missing comma(s) in .Xr macros 1996-09-23 22:24:39 +00:00
Bruce Evans
301e6a175a Who would have though that dmesg didn't understand message buffers?
Fixed the following bugs:
- the buffer was reprinted endlessly when msg.bufx == 0 and (for a
  different reason) when msg.bufx == 1.
- the last byte of the buffer wasn't printed except in the the infinite
  loop cases.
- the comment about walking the buffer didn't match the (correct) code.
- minor -Wall and style bugs.
Not fixed:
- excessive newline processing which hid the non-printing of the last
  byte of the buffer.
1996-09-21 08:11:22 +00:00
Nate Williams
45808359e6 ts_sec -> tv_sec
ts_nsec -> tv_nsec
1996-09-20 04:56:09 +00:00
Nate Williams
b70db4c5d5 ts_sec -> tv_sec
ts_nsec -> tv_nsec
1996-09-20 04:33:57 +00:00
Nate Williams
2936258f1d ts_sec -> tv_sec
ts_nsec -> tv_nsec
1996-09-20 04:24:31 +00:00
Paul Traina
2237ee9753 rdisc functionality has been incorporated into routed
goodnight ugly prince...
1996-09-16 21:32:42 +00:00
Garrett Wollman
48302f28a0 Disable rdisc, enable routed in new location. 1996-09-16 17:08:23 +00:00
Garrett Wollman
c0062f4a2d Change location of trace files and disable remote trace file change
feature.
1996-09-16 17:06:30 +00:00
Garrett Wollman
50d2cb3ed7 Layer on FreeBSD local changes from old routed. 1996-09-16 17:04:22 +00:00
Garrett Wollman
7b6ab19dde Virgin import of new BSD/SGI routed. This update contains a number
of important bug fixes.

Obtained from:	Vernon J. Schryver <vjs@mica.denver.sgi.com>
1996-09-16 16:51:32 +00:00
Garrett Wollman
a4ce56bd89 This commit was generated by cvs2svn to compensate for changes in r18316,
which included commits to RCS files with non-trunk default branches.
1996-09-16 16:51:32 +00:00
Alexander Langer
7de7ab65b6 Note that -N is only effective when ipfw is displaying chain entries. 1996-09-15 00:08:30 +00:00
Bruce Evans
eaa86f9d7f Don't use __dead or __pure in user code. They were obfuscations
for gcc >= 2.5 and no-ops for gcc >= 2.6.  Converted to use __dead2
or __pure2 where it wasn't already done, except in math.h where use
of __pure was mostly wrong.
1996-09-14 03:00:32 +00:00
David Greenman
fa9471546d Added description of "noatime" option. 1996-09-08 13:28:12 +00:00
Jordan K. Hubbard
7fc4a454e2 Make the noauto flag usable for swap devices too. Closes PR#1542
Submitted-By: David Leonard <d@scry.dstc.edu.au>
1996-09-06 06:01:05 +00:00
Bruce Evans
5b963fa12e Fixed DPADD. 1996-09-05 17:16:10 +00:00
David Greenman
0bade8bdd8 Cast the partial result of an expression to an off_t to fix an overflow
in the calculation of free disk space. Fixes PR#1569.

Submitted by:	Tor Egge <Tor.Egge@idt.ntnu.no>
1996-09-05 08:08:41 +00:00
Julian Elischer
91badbbe3b Just realised the man page didn't mention the appletalk specific options
to ifconfig..
so I 've added them..
1996-09-04 20:21:47 +00:00
Julian Elischer
55d27aaac8 Get rid of an unexpectedly bogus sanity check under appletalk because
it stopped us from removing or setting loopback address
on lo0:

also make use of the fact the athe sockaddre_at struct now has a "netrange"
field.

CVS ----------------------------------------------------------------------
1996-09-04 19:41:31 +00:00
David Greenman
55e50ace1e Implemented user side of "noatime" mount option. This option disables
the file access time update on reads and can be useful in reducing
filesystem overhead in cases where the access time is not important (like
Usenet news spools).
1996-09-03 07:13:56 +00:00
Peter Wemm
2ea2367052 Add ${DPADD}, $Id$ 1996-09-02 23:40:08 +00:00
Nate Williams
1285c95c4b Because 'ipfw flush' is such a dangerous command (given that most
firewalls are remote, and this command will kill the network connection
to them), prompt the user for confirmation of this command.

Also, add the '-f' flag which ignores the need for confirmation the
command, and if there is no controlling tty (isatty(STDIN_FILENO) !=0)
assume '-f'.

If anyone is using ipfw flush in scripts it shouldn't affect them, but you
may want to change the script to use a 'ipfw -f flush'.

Reviewed by:	alex
1996-08-31 17:58:23 +00:00
Wolfram Schneider
b8923d4cc0 [HISTORY] command appeared in Version 1 AT&T UNIX
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
1996-08-29 18:06:19 +00:00
Bill Paul
273804e22c Add one line fix to stop my old 'don't barf if you see the same
hostname/IP twice on same line in /etc/exports' fix from dumping core
due to bogus /etc/exports entries.

Submitted by: Toshihiro Kanda <candy@fct.kgc.co.jp>
1996-08-29 14:20:57 +00:00
Julian Elischer
47be746682 Add support to halt, to allow it to request that the power be turned off
(the RB_POWEROFF flag)
1996-08-24 01:40:02 +00:00
Mike Pritchard
c0b0bcf4d3 Use the .Bx macro where appropriate. 1996-08-23 20:36:11 +00:00
Mike Pritchard
0f7785061e Use the .At macro where appropriate. 1996-08-23 01:06:24 +00:00
Mike Pritchard
85cf659a76 Use the .Fx macro where appropriate. 1996-08-23 00:57:08 +00:00
Bill Fenner
ef9e6dc7ee Print out ICMP errors that are responses to our own packets by default.
Turn this behavior off using '-Q'.  This makes '-v' useless other than as
an ICMP-sniffer, which tcpdump is better at anyway.

Print out another couple of ICMP messages, and fix the printing of the
original packet (mostly byte order problems).
1996-08-20 23:50:16 +00:00
Wolfram Schneider
6127186d3c a header file for zopen.3
Pointed out by: Philippe Charnier <charnier@lirmm.fr>
1996-08-20 20:49:39 +00:00
Julian Elischer
072a289aa4 back out a part of the previous patch that garrett objected to.. 1996-08-19 18:52:49 +00:00
Julian Elischer
aa648cf84b Submitted by: Archie@whistle.com
if making a interface route, and it's a P2P link,
then also automatically lable it as an llinfo entry so that
gated and friends don't clobber it..
1996-08-13 22:20:20 +00:00
Paul Traina
978eb210d1 Completely rewrite handling of protocol field for firewalls, things are
now completely consistent across all IP protocols and should be quite a
bit faster.

Use getprotoname() extensively, performed minor cleanups of admin utility.
The admin utility could use a good kick in the pants.

Basicly, these were the minimal changes I could make to the code
to get it up to tollerable shape.  There will be some future commits
to clean up the basic architecture of the firewall code, and if
I'm feeling ambitious, I may pull in changes like NAT from Linux
and make the firewall hooks comletely generic so that a user can
either load the ipfw module or the ipfilter module (cf Darren Reed).

Discussed with: fenner & alex
1996-08-13 19:43:24 +00:00
Paul Traina
d026a5d864 Attempt to unlink any stale .o files before relocating code.
Abort if a file is still present, and make output file mode 0600.

Reviewed by:	bde
1996-08-13 00:50:59 +00:00
Paul Traina
4e4413decd Cover a potential buffer overrun problem 1996-08-13 00:43:01 +00:00
Paul Traina
73e3fe9132 Fix tcp/udp port ranges 1996-08-13 00:41:05 +00:00
Julian Elischer
914b41c2dc Reviewed by: julian
Submitted by:	archie@whistle.com

This patch allows true interface routing to be controlled
from the command line..
you can now do:
route add default -interface ppp0
even if you have no clue what the address at the other end is..

this is part of a set of changes that allow true "unnumbered links"
such as netcom run between their sites..
In practice you should assign the address from one of your ethernet
interfaces to the local side of the P2P link so that IP doesn't
say that the packet comes from 255.255.255.255, but
there is no need whatsoever to assign an address of any kind
to the remote end of the link.. useful for frame relay links etc also.
1996-08-09 22:52:02 +00:00
Julian Elischer
5a5711612a add nextboot by default
its's proven to be quite reliable.
1996-08-09 22:44:55 +00:00
Julian Elischer
e05835cfc7 slight man page additions re: deficiencies 1996-08-09 22:41:57 +00:00
Bill Fenner
f1284d7a51 Drop setuid ASAP, to minimize code executed as root.
Reviewed by:	pst
1996-08-09 06:00:53 +00:00
Julian Elischer
ed7e548bf3 Submitted by: archie@whistle.com
slight cleanups
1996-08-07 00:39:41 +00:00
Alexander Langer
593f7481aa Filter by IP protocol.
Submitted by: fenner (with modifications by me)

Bring in the interface unit wildcard flag fix from rev 1.15.4.8.
1996-08-05 02:38:51 +00:00
Mark Murray
c76c299053 Add relevant files to the FILES section
Submitted by:	Julian H Stacey
1996-08-03 19:13:35 +00:00
Bruce Evans
6ee990e0d5 Document that the major and minor numbers are parsed by strtoul(). 1996-07-30 17:44:36 +00:00
Bruce Evans
7c9e694fa7 Use strtoul() more carefully.
Check that the major and minor are valid.

Don't print `.' at the end of error messages.

Fixed all warnings from "cc -Wall".
1996-07-30 17:43:21 +00:00
Peter Wemm
efa3853949 Limit the risk of `buf' overrun in ping.c when printing hostnames.
Note, this is not really a security risk, because the buffer in question
is a static variable in the data segment and not on the stack, and hence
cannot subert the flow of execution in any way.  About the worst case was
that if you pinged a long hostname, ping could coredump.

Pointed out on: bugtraq  (listserv@netspace.org)
1996-07-28 20:29:10 +00:00
Joerg Wunsch
ce6bb53745 Finally use strtoul() to convert the major an minor numbers, so
proper error-checking can be done, and octal and hexadecimal
numbers are allowed.
1996-07-27 17:24:55 +00:00
Julian Elischer
e56dd1bb4f Submitted by: archie@whistle.com
slight cleanups on yesterday's patches
1996-07-23 22:00:14 +00:00
Jordan K. Hubbard
1eb5b41ec8 When running 'rrestore foo', you get a segmentation fault because
the obsolete() function to convert dump-style args to getopt-style
args doesn't check to see that 'f' really has an argument following
the option string in argv[1].

Submitted-By: jmacd
1996-07-23 19:33:44 +00:00
Peter Wemm
9622579d80 mount_ext2fs somehow got a stray mntopts.h, which was out of sync with
the real ../mount/getmntopts.c and ../mount/mntopts.h
Closes PR#1419

Submitted by: rhh@stealth.ct.picker.com (Randall Hopper)
1996-07-23 19:29:27 +00:00
Julian Elischer
3a67d2bc37 Submitted by: archie@whistle.com
appletalk cleanups
1996-07-23 01:18:47 +00:00
Jordan K. Hubbard
a257a45ecd I have added a new option -p to the mount command. This was
inspired by SunOS version of mount which uses option -p to
indicate that the mount information should be printed in fstab
format.
This is a neat way to create a new fstab file to use later when
one has modified the mount points or mount options or added or
removed mount some mount points. You just type

	mount -p > /etc/fstab.new

and there is your new fstab file ready to be used though you
will of course have to add any necessary noauto flags manually.

[Committers note:  This also seems to do the wrong thing for AMD
 mounts, but in the more average case this is a nifty feature nonetheless
 and one can always edit the bogus entries out]

Submitted-By: Jukka Ukkonen <jau@jau.csc.fi>
1996-07-21 23:34:04 +00:00
Alexander Langer
c6c1bba8d4 Grammar fix described by wollman in response to PR 1363. 1996-07-14 17:51:08 +00:00
Jordan K. Hubbard
526195ad0d General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
1996-07-12 19:08:36 +00:00
Julian Elischer
93e0e11657 Adding changes to ipfw and the kernel to support ip packet diversion..
This stuff should not be too destructive if the IPDIVERT is not compiled in..
 be aware that this changes the size of the ip_fw struct
so ipfw needs to be recompiled to use it.. more changes coming to clean this up.
1996-07-10 19:44:30 +00:00
Nate Williams
265c33c027 Now that we have a manpage, don't have the 'clean' target be a NO-OP. 1996-07-10 18:36:41 +00:00
Julian Elischer
144b35344c changes to allow route to manipulate appletalk routes. 1996-07-09 19:02:28 +00:00
Julian Elischer
e05f2836d9 Submitted by: Archie@whistle.com
Obtained from: Whistle Communications
patches to allow ifconfig to work with appletalk addresses etc.
1996-07-09 02:38:13 +00:00
Julian Elischer
7fa6a28f66 oops, make the magic number match that used in the bootblock..
I guess we should have a single place for this??
1996-07-09 02:10:16 +00:00
Julian Elischer
dc8b29f140 Obtained from: Whistle Communications
control program to control the facility of the bootblocks
to fetch a default bootstring from a fixed location on the disk.

See the manpage for more info.
1996-07-09 02:04:32 +00:00
Wolfram Schneider
b23472acb2 Document that suid wrapper like suidperl(1) break option 'nosuid'. 1996-07-02 23:18:38 +00:00
Alexander Langer
f8cc1596e7 Correct definition of 'established' keyword. 1996-07-02 00:29:22 +00:00
Alexander Langer
97842144e3 Formatting fixes for 'in' and 'out' while listing.
Prevent ALL protocol from being used with port specifications.

Allow 'via' keyword at any point in the options list.  Disallow
multiple 'via' specifications.
1996-06-29 01:28:19 +00:00
Alexander Langer
700061451a Fix port specification syntax.
Submitted by:	nate
1996-06-29 01:21:07 +00:00
Alexander Langer
c06c129887 Fix address mask calculation when using ':' syntax. Allow a mask
of /0 to have the desired effect.  Normalize IP addresses that
won't match a given mask (i.e. 1.2.3.4/24 becomes 1.2.3.0/24).
Submitted by R. Bezuidenhout <rbezuide@mikom.csir.co.za>

Code formatting and "frag" display fixes.
1996-06-23 20:47:51 +00:00
Peter Wemm
7976d4aa4f Fix a couple of bogus casts to off_t that caused dumpfs to lseek negative
on filesystems > 2GB (which causes the disk slice code to call Debugger!!)
1996-06-23 00:05:04 +00:00
Alexander Langer
4be1e61baf Code clean up. Prototypes, parentheses around assignments used in
if statements, #if 0 some unused code, use off_t in calls to read/
write_disk, fix a printf format, remove unused variables, and
#include necessary files.
1996-06-21 02:39:19 +00:00
Alexander Langer
b7a8c0221f Add #include <err.h>. 1996-06-19 01:49:01 +00:00
Alexander Langer
2a7a2545a4 Set the program name before trying to use it.
Found by: Aage Robekk <aagero@aage.priv.no>
1996-06-18 01:46:34 +00:00
Bruce Evans
43be698cb6 Moved initialization of defaults for the label for the whole disk from
disklabel(8) to the kernel (dsopen()).  Drivers should initialize the
hardware values (rpm, interleave, skews).  Drivers currently don't do
this, but it usually doesn't matter since rotational position stuff is
normally disabled.
1996-06-17 14:43:54 +00:00
Alexander Langer
a85b3068a1 Fix a typo in the view accounting records example. 1996-06-15 23:01:44 +00:00
Alexander Langer
3f21e4122d Bring the man page more into line with reality. 1996-06-15 01:38:51 +00:00
Satoshi Asami
4924f5c24f Our kernel is not called /netbsd. ;)
Submitted by:	"Philippe Charnier" <charnier@lirmm.fr>
1996-06-14 10:51:47 +00:00
Alexander Langer
b55b9e3f1d Big sweep over ipfw, picking up where Poul left off:
- Filter based on ICMP types.
  - Accept interface wildcards (e.g. ppp*).
  - Resolve service names with the -N option.
  - Accept host names in 'from' and 'to' specifications
  - Display chain entry time stamps with the -t option.
  - Added URG to tcpflags.
  - Print usage if an unknown tcpflag is used.
  - Ability to zero individual accounting entries.
  - Clarify usage of port ranges.
  - Misc code cleanup.

Closes PRs: 1193, 1220, and 1266.
1996-06-09 23:46:22 +00:00
Andrey A. Chernov
9b273b7f01 Return make_union, s-bit removed 1996-05-19 17:24:10 +00:00
Paul Traina
b667dc9a51 Disable setuid permission for mount_union(1).
This covers the security problem descibed in SA-96:10 and Jeff says that
when we upgrade to Lite2 (which fixes this problem), mount no longer needs
to be setuid, so we'll never be going back.

Submitted by:	hsu
Reviewed by:    pst
1996-05-17 22:46:01 +00:00
Jordan K. Hubbard
bf8788a4bd Large security hole in mount_union, the underlying filesystem for which doesn't
even work.  Until pst wakes up, best action deemed to be the simple disabling
of this command.
1996-05-17 08:48:50 +00:00
Garrett Wollman
0d0a40202c Accept mount(8)'s calling convention of passing just the filesystem type
as argv[0].
1996-05-14 15:16:49 +00:00
Garrett Wollman
ae387fc9af One program I missed in removing MOUNT_* constants. 1996-05-13 17:56:34 +00:00
Garrett Wollman
5e074e31a2 Get rid of the last vestiges of the old MOUNT_* constants in the
mount_* programs.  While we're at it, collapse the four now-identical
mount programs for devfs, fdesc, kernfs, and procfs into links to
a new mount_std(8) which can mount any really generic filesystem
such as these when called with the appropriate argv[0].

Also, convert the mount programs to use sysexits.h.
1996-05-13 17:43:19 +00:00
Jordan K. Hubbard
14a795fb16 Document LFS as broken. 1996-05-12 11:12:17 +00:00
Poul-Henning Kamp
9f30a5482e Some cosmetics and some better error-checking.
Reviewed by:	phk
Submitted by:	"Daniel O'Callaghan" <danny@panda.hilink.com.au>
Submitted by:	Archie Cobbs <archie@whistle.com>
1996-05-11 20:31:55 +00:00
Nate Williams
119e9fc298 From: Terry Lambert <terry@lambert.org>
Subject: Fix for annoying fsck bug
Date: Wed, 24 Jan 1996 13:33:29 -0700 (MST)

The following small diff fixes the annoying fsck bug that causes it to
need to be run twice to end up with correct reference counts for inodes
for directories that had subdirectories relocated into the lost+found
directory.

I found the need to rerun *extremely* annoying.  This fix causes the
count to be correctly adjusted later in pass 4 by correctly stating
the parent reference count.

Note that the parent reference count is incremented when the directory
entry is made (for ".."), but is not really there in the case of a
directory that does not make an entry in its parent dir.

This can be tested by waiting for the inode sync after cd'ing from a
shell into a test fs.  Then you "mkdir xxx yyy zzz", wait a second,
and hit the machine reset button.

Reviewed by:	nate (Tested lots of crashes :)
Submitted by:	Terry Lambert <terry@lambert.org>
1996-05-09 16:38:27 +00:00
Garrett Wollman
00bbf73734 Update route(8) to print out current meanings of rt_flags RTF_* bits. 1996-05-08 20:48:59 +00:00
Satoshi Asami
cdca955f69 Connect ccd man page and ccdconfig to parent Makefiles.
Ok'd by:	peter
1996-05-04 08:30:22 +00:00
Mark Murray
24136561dc Better method of choosing libdescrypt/libscrypt. 1996-05-04 08:16:20 +00:00
Mark Murray
b961de8ebf Split CRYPTOBJDIR -> SCRYPTOBJDIR/DESCRYPTOBJDIR for init(8) 1996-05-04 08:11:47 +00:00
Joerg Wunsch
b450b4dcf1 Stupid bug, the default man page goes to section 1, not 8.
Closes PR #misc/1172: Error in sbin/dset/Makefile

Submitted by:	masafumi@tky007.tth.expo96.ad.jp (Masafumi NAKANE)
1996-05-03 18:09:06 +00:00
Mike Pritchard
153ee7bd86 Specify FreeBSd on the .Os line, since this is a FreeBSD-specific
program.  Use the .Fx (FreeBSD) macro in the HISTORY section.
1996-05-02 22:34:19 +00:00
Joerg Wunsch
57734516b3 Oops, forgot to `cvs add' this one first... 1996-05-02 21:47:45 +00:00
Joerg Wunsch
de6dcee867 Add a man page. 1996-05-02 21:42:18 +00:00
Poul-Henning Kamp
a8b878b7d1 NBPG -> getpagesize() 1996-05-02 09:09:04 +00:00
Bruce Evans
52efa6c17d Default to udp if neither udp nor tcp is specified. The previous revision
was broken.  It forced udp in all cases except the extremely unusual case
argc == 0.
1996-05-01 03:13:45 +00:00
Eric L. Hernes
8a8fb1236d changed a strchr to a strrchr so that modules with a `.' in the path
can be loaded (e.g. ./mymod.o)
1996-04-26 18:39:48 +00:00
Bruce Evans
93d2c1bde1 Fixed a couple of format strings to match the change of pid_t from long
to int32_t.  I only fixed the ones that I noticed the warnings for.
Perhaps most of the format strings are correct now because they were
wrong before.  Except of course if int32_t isn't compatible with `int'.
1996-04-13 15:47:43 +00:00
Marc G. Fournier
1e3a3c5e71 default to udp if no flags specified...closes PR#bin/759
- should this be documented in the man page?
1996-04-13 06:08:24 +00:00
Marc G. Fournier
71f1307ae7 removed xref to icheck(8), ncheck(8) as they don't exist 1996-04-11 07:49:34 +00:00
Sujal Patel
019d933039 Fix a core dump when the user gives "-w" without an "=" 1996-04-10 00:53:22 +00:00
Andrey A. Chernov
f7b994d058 English corrections from jdp.
Add main purpose description (MSDOS timestamps)
1996-04-09 11:31:34 +00:00
Mike Pritchard
e40f3f85d4 Do not install the now unsupported netns and netiso
related man pages.  Comment out cross references to those man
pages from other man pages.
1996-04-08 05:15:09 +00:00
Mike Pritchard
edf0e5b3f8 Correct some man page xrefs, and some other minor changes to bring some
man pages up to mdoc guidelines and fix some minor formatting glitches.
Also fixed a number of man pages to not abuse the .Xr macro to
display functions and path names and a lot of other junk.
1996-04-08 04:18:31 +00:00
Mike Pritchard
906c1e27fc Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
Joerg Wunsch
db6ddd3598 Don't immediately give up if a single read() or write() wasn't
sufficient to transfer all the data from stdin, or to stdout.  Working
on pipes causes further fragmentation.
1996-04-06 11:00:28 +00:00
Andrey A. Chernov
bf152145d2 More info and more corrections 1996-04-05 23:53:23 +00:00
Andrey A. Chernov
bacbb38233 Describe new adjkerntz variant + various changes from jdp 1996-04-05 23:37:08 +00:00
Andrey A. Chernov
88d807a676 Detect if /etc/wall_cmos_clock gone while adjkerntz paused. 1996-04-05 19:17:05 +00:00
Andrey A. Chernov
c6337b7b46 Dynamically sense /etc/wall_cmos_clock presence/absense 1996-04-05 16:25:38 +00:00
Andrey A. Chernov
9243a8f346 Fix error with multiply 'adjkerntz -a' copies running.
Manage adjkerntz kernel variable even for UTC clocks.
Code cleanup.
1996-04-05 03:40:55 +00:00
Gary Palmer
d02e870c7e Add a small message to the ``CAVEATS'' section saying if you get the
warning about the root directory, then you could corrupt your filesystem
if you write to it. Someone, please, feel free to improve this :-)
1996-04-03 23:11:08 +00:00
Poul-Henning Kamp
6cece43912 recognize "allow", "accept" and "pass"
add new feature for "established"
1996-04-03 13:49:10 +00:00
Poul-Henning Kamp
5cc7c95375 A couple of bug-fixes.
Reviewed by:	phk
Submitted by:	"Frank ten Wolde" <franky@pinewood.nl>
1996-04-02 11:43:28 +00:00
Peter Wemm
9b81f3a945 Move rpc.statd and rpc.lockd to usr.sbin via repository copy as per
discussionn when they were initially added some time ago.
These programs are not needed before nfs is up and running to possibly
mount /usr so they dont need to be static and on the root fs.
1996-04-02 01:42:07 +00:00
Peter Wemm
a60dc5e0f9 Some minor tweaks for statd
- use rpcgen to generate unmodified code instead of havinf it in the
  repository
- use "natural" function names to avoid conflicts with prototypes etc.
1996-04-01 05:36:06 +00:00
Peter Wemm
ce81d24b05 Tweaks for the stub lockd.
- Use rpcgen to generate the unmodified boilerplate code rather than
  having it in the repository.
- Eliminate the conflicting function names by changing them to their
  "natural" rpcgen generated names
1996-04-01 05:30:04 +00:00
Bruce Evans
a119b8be78 Fixed a type to match Lite2's fixed-width type changes.
Obtained from:	4.4BSD-Lite2
1996-03-19 14:41:05 +00:00
Satoshi Asami
b6cf6bb275 Change the messages slightly when there is no "mount_type" executable
found when the user specifies "mount -t type".  Instead of printing
out one message for each path element (/sbin, /usr/sbin), it prints
out:

mount: exec mount_type not found in /sbin, /usr/sbin: No such file or directory

The code is quite long for such a stupid little piece of aesthesism
but it is very straghtforward so I guess it's ok.  Besides, I don't
want to do a "char foo[100];" and have malloc break down when someone
decides to add a few more paths to a variable that's far apart from
this code. :)

By the way, there is no malloc() off-by-one error for the '\0' at the
end of the string although I don't explicitly add 1 to the length.
The code allocates strlen(path element)+2 bytes for each path element,
and doesn't use the last two bytes (for the delimiting ", ").

Reviewed by:	the list (I hope)
1996-03-15 00:14:09 +00:00
Andrey A. Chernov
da1842c866 Properly distinguish 3 different cases:
No redial command. Empty redial command. Non-empty redial command.
Pointed-by: bde
1996-03-12 23:14:45 +00:00
Andrey A. Chernov
698b8864c5 Re-open line after hangup in any case 1996-03-12 12:56:27 +00:00
Mike Pritchard
d5f6aa5f24 Backout my changes to disallow "mount /mnt /mnt" until I can verify
that nfs mounts work again (I locked up my home machine testing it and can't
see what happened until I get home from work tonight).
1996-03-11 20:01:17 +00:00
Mike Pritchard
bd70de3eaf Only restrict the user from doing something like "mount /mnt /mnt"
for file system types that actually cause a panic (ufs, msdos, cd9660).
This makes /proc mountable again.
1996-03-11 00:22:28 +00:00
Mike Pritchard
d48b626da3 Do not allow the caller to specify the same path for the special
device file and the mount point.  This prevents the "unexpected recursive
lock" panic from happening.

This is a temporary fix.  A kernel fix would be much much more ugly than
this, and still wouldn't be the "right" way to fix it.  After some
of Terry's file system rework is installed, it will be possible to
properly fix this problem in a clean manner.  Until then,
this change should prevent use from getting a problem report
on this every month or so (and I just noticed that someone in
one of the freebsd news groups was complaining about this problem, too).
1996-03-10 00:20:28 +00:00
Andrey A. Chernov
70a41bdd99 Prepare to eliminate multiply uucplock.c copies 1996-03-04 10:35:45 +00:00
Jordan K. Hubbard
66fa281751 Close PR#17. This may be a contraversal fix in that now mount will
spit out two error lines for a bogus filesystem type, e.g:

root@time-> mount -t foo /dev/sd0a /mnt
mount: exec /sbin/mount_foo for /mnt: No such file or directory
mount: exec /usr/sbin/mount_foo for /mnt: No such file or directory

But I would submit that if you're even going to scan multiple directories
for a mount_foo (which I actually think is somewhat bogus - if it's not
in /sbin, you're probably in big trouble anyway), you should emit an error
for each one.  I got multiple complaints (in addition to the PR) that the
existing behavior was very confusing.
1996-03-03 08:44:22 +00:00
Mike Pritchard
2232951535 Silence some cc -Wall warnings in quotacheck. 1996-02-27 08:04:48 +00:00
Mike Pritchard
93b5f48962 Fix quotacheck to not do a bunch of unneeded fseeks if the
quota file information is accurate.  This makes it about twice as
fast when the uid name space is very large.
1996-02-27 01:53:17 +00:00
Paul Traina
0f6b2cb3f8 Bring in some of Paul K's fixes for ldconfig from NetBSD-current.
This solves the problem of being unable to use shared libraries with dots
in their names before the ".so.<version>" code.

This should be brought into -stable.

There are more changes from Paul that look like they should be included,
but they change the format of the hints file, so I'm not going to bring them
in now (but we should in the future).

Obtained from: pk@netbsd.org
1996-02-26 02:22:33 +00:00
Poul-Henning Kamp
72ee2a8b10 Update to match kernel code. 1996-02-24 13:39:46 +00:00
Poul-Henning Kamp
5b0c234e20 A new ipfw program that can set and control the new features.
An almost correct usage is printed.
1996-02-24 00:20:56 +00:00
Poul-Henning Kamp
41955e9114 Update -current ipfw program as well.
I hope it all compiles...
1996-02-23 15:52:28 +00:00
Mike Pritchard
1ba797fb84 Print out an informative message if the verbose option is given
and an unknown uid/gid is found in the file system.  This is useful
if you wind up with a file in your file system that has a uid
that is extremely large, since quotacheck will wind up running
a very very long time due to it not handling large gaps in uids
very well (this is a problem that should be addressed some day).

Update the man page to reflect that fact the the -v flag now prints
some additional diagnostic messages.
1996-02-21 18:40:54 +00:00
Mike Pritchard
2e32d69db1 Fix route to check if inet_addr and inet_network return INADDR_NONE,
instead of -1 which is never returned by those routines.
1996-02-17 21:13:32 +00:00
Andrey A. Chernov
438a2cf9d4 Call unit-command -1 <new> first time connected, close PR 569 1996-02-17 19:21:41 +00:00
Peter Wemm
1494289f5b Import Jan 15 version of Andrew Gordon <andrew.gordon@net-tel.co.uk>'s
rpc.statd.

This is apparently fully functional and complete.
1996-02-17 15:14:59 +00:00
Peter Wemm
503d2aa8a2 Import Jan 15 version of Andrew Gordon <andrew.gordon@net-tel.co.uk>'s
stub lockd.

This implements just the protocol, but does not interact with the kernel.
It says "Yes!" to all requests.  This is useful if you have people using
tools that do locking for no reason (eg: some PC NFS systems running some
Microsoft products) and will happily report they couldn't lock the file
and merrily proceed anyway.  Running this will not change the reliability of
sharing files, it'll just keep it out of everybody's face.
1996-02-17 15:11:29 +00:00
Garrett Wollman
cbc17e711e XNS sort-of-support is no more. 1996-02-13 17:30:37 +00:00
Poul-Henning Kamp
cfe3bbfda2 Document that the firewall will no longer reorder the rules. 1996-02-13 15:20:20 +00:00
Joerg Wunsch
b6729ee0c2 The DES-based init(8) belongs to the "des" distribution. 1996-02-13 09:12:10 +00:00
Mike Pritchard
bcff8e2ae4 Another round of man page cleanups.
Down to only about 100 items left to cleanup! :-)
1996-02-12 04:57:03 +00:00
Mike Pritchard
f80cd54d34 Removed the boot_*(8) man pages for machines we don't support:
hp300, sparc, tahoe, and vax
1996-02-12 04:29:10 +00:00
Mike Pritchard
4bd9ba3c2f Fixed some minor formatting problems to silence manck some more.
Corrected some bogus cross references to man pages that we don't/won't
have and either deleted them, or found a more appropriate man page
that we do have.  Various other minor changes to silence manck.

Manck is currently down to about 200 lines of errors, down from
the 500 - 600+ when I started all this.
1996-02-12 01:20:38 +00:00
Mike Pritchard
78b0b234eb Correct a bunch of man page cross references and generally
try and silence "manck".

ncurses, rpc, and some of the gnu stuff are still a big mess, however.
1996-02-11 22:38:05 +00:00
Mark Murray
bbff7ca556 #include <kerberosIV/des.h> -> #include <des.h> 1996-02-11 09:18:18 +00:00
Mike Pritchard
c4c23c4df8 Another round of various man page cleanups. 1996-02-09 17:25:57 +00:00
Garrett Wollman
0761cb293e Remove support for OSI networking in user-land (#ifdef OSI aor CCITT)
in preparation for its removal from the kernel source tree.  NB: because
a function was deleted, libc is now at version 3.0 (was 2.2 previously).
1996-02-06 20:36:15 +00:00
Mike Pritchard
097d42f425 Correct some man page cross references and some file
locations.
1996-02-05 17:32:16 +00:00
Joerg Wunsch
d70e4e53de Try to preserve the fdisk table in the primary bootstrap, should it
already exist.

Mention the cases where this doesn't work in the BUGS section of the
man page.
1996-02-03 21:14:09 +00:00
Paul Traina
38751bfcd6 Only print statistics in verbose mode 1996-02-03 06:33:23 +00:00
Wolfram Schneider
7a5ab50d3f man page link tmpfs.8 -> mfs.8 for former SunOS users 1996-02-02 06:31:57 +00:00
Mike Pritchard
67dab2c8c6 Added mount_ext2fs to SUBDIR list. 1996-02-01 19:04:17 +00:00
Mark Murray
08aeee3046 Add mount_devfs to the subdir list. 1996-02-01 14:01:22 +00:00
Mike Pritchard
c22c56a0b1 Hacked up a small man page for mount_ext2fs. The existing man page was
simply a copy of the mount_lfs man page.
1996-01-31 17:28:23 +00:00
Satoshi Asami
cb7c6b5320 Add CCDF_MIRROR and CCDF_PARITY to list of flags. 1996-01-31 11:04:52 +00:00
Joerg Wunsch
768efa9d3c A better algorithm to place the numbers on the lines.
Submitted by:	satoshi
1996-01-30 23:14:34 +00:00
Satoshi Asami
15a2c56b61 Add mirror and parity flags to list of symbolic names. 1996-01-30 22:25:24 +00:00
Peter Wemm
dbd7e3e1cb Add rdisc to subdirs.. It works for me. :-) (Thanks Bill!) 1996-01-30 18:44:42 +00:00
Andrey A. Chernov
34b8a752b1 Add missing comma in usage printf 1996-01-30 17:38:45 +00:00
Mike Pritchard
a5ed710ccd Fix even more spelling errors in some more man pages. 1996-01-30 16:34:52 +00:00
Mike Pritchard
4a8d02835c Fix a bunch of spelling errors in a bunch of man pages. 1996-01-30 13:52:50 +00:00
Satoshi Asami
316d96df0c ccdcontrol -> ccdconfig. 1996-01-30 01:25:40 +00:00
Mike Pritchard
e71057d8d0 Fix a bunch of spelling errors. 1996-01-29 23:52:43 +00:00
Wolfram Schneider
1cf8f98cbb A manpage. May be the file nologin.5 should located in
src/share/man/man5.
1996-01-28 23:49:05 +00:00
Joerg Wunsch
7f3b8ca95f Make the numbers for the "superblock backups" fit nicely on the screen,
even for larger partitions.  Until now, partition sizes > 500 MB messed
up the screen.
1996-01-25 23:44:32 +00:00
Paul Traina
120dd849ce Disclaimer redundant and man page cleanups 1996-01-22 23:31:20 +00:00
Mike Pritchard
e361857343 Change the reference to format(8) (which we don't have) to fdformat(1) and
scsiformat(8) (which we do have).  Closes PR# 663.
1996-01-22 12:55:16 +00:00
Joerg Wunsch
425bed3abf Finally implement the "auto" disktype. It attempts to get all the
required information from the driver, and produce a virgin disklabel
for it.  The latter might be further edited with `disklabel -e' to
satisfy the user's need.

The magic sequence is:

	disklabel -r -w sdX auto
	disklabel -e sdX
1996-01-22 01:01:15 +00:00
Joerg Wunsch
61de51cad6 Declare functions, resolve printf-format warnings. 1996-01-21 23:55:47 +00:00
Mike Pritchard
49f523939f Route calls the errx routine with the wrong number of arguments
when printing "route: bad address: ...".
1996-01-20 12:56:57 +00:00
Peter Wemm
8ae4b5d0af Source cleanup: prototypes, varargs, POSIXification, getopts, -Wall clean.
Bugfixes: no longer stomps it's argv causing ps to change the string.

Unfortunately, Bill Fenner and I have overlapping changes here...
1996-01-19 10:22:00 +00:00
Bill Fenner
f78623a989 Made router discovery at least build and run. There are a few things
left to do (e.g. it doesn't yet run on systems with aliased addresses)
but this should work for simple configurations.

I don't plan to enable the rdisc directory in the sbin/ makefile until
I get feedback on this and add the missing features, so please, if you
have routers that perform router discovery, or if your FreeBSD box is
itself a router, give this a try.
1996-01-19 01:28:30 +00:00
Peter Wemm
e416b391a4 Yet another "fix" for some of the mistakes in the recent versions..
I discovered that when asking for the IFLIST via sysctl(), if you
specify only AF_INET address, it actually gives you only AF_INET..
(suprise, suprise..!)

Now, it should "do the right thing" in just about all cases...  The only
problem, is that "the right thing" isn't exactly clear in all cases.
1996-01-08 10:23:25 +00:00
Peter Wemm
79769a745d Fix some of my mistakes, slight cleanup, improve reliability (the old
ifconfig would segfault on "ifconfig ed0 ether up" and the like).

The main reason for this commit was that an "ifconfig -a" would also show
the AF_INET addresses in AF_IPX form (if the kernel was configured for IPX)
due to insufficient AF checking in my "new way" of doing it.
1996-01-08 03:46:27 +00:00
Poul-Henning Kamp
8b0458040d Move some tables to "const" and remove some unused vars. 1996-01-07 22:32:35 +00:00
Jean-Marc Zucconi
dc94a1c589 Fix the spelling of 'partition'. 1996-01-04 02:00:16 +00:00
Adam David
7b1aedd497 oops, do it right this time 1996-01-03 11:48:14 +00:00
Adam David
2cf2990bee Link with libutil for kerberos too 1996-01-03 11:37:46 +00:00
Garrett Wollman
ac9ce50507 Clean up GCC warnings, condition out some compatibility cruft, add $Id$.
Pointed-out-by: jmb
1996-01-02 20:09:22 +00:00
Peter Wemm
062d242e1a My really ugly hack to ifconfig to make it pick up interface aliases
and the ethernet address for non-root users.

I apologise to the world for propagating the ugliness of some of the code
constructs within ifconfig...  Fixing them would just abou mean rewriting
most of the function call interfaces, something I didn't have the stomach
for. :-)
1996-01-01 09:05:22 +00:00
Peter Wemm
c129841af7 Make nfsd use setproctitle from libutil...
Old code is still #ifdef OLD_SETPROCTITLE for comparison with the old
code.
1996-01-01 08:39:39 +00:00
Peter Wemm
10dcae5806 Add hooks into the mount_mfs code in newfs to do the FreeBSD-style
LKM loading if it was not configured into the system.

Note that the LKM for MFS is not enabled by default, but I got it working on
my machine..  I'll see what I did..
1996-01-01 08:37:28 +00:00
Peter Wemm
6065a0be11 This commit was generated by cvs2svn to compensate for changes in r13122,
which included commits to RCS files with non-trunk default branches.
1995-12-30 19:02:48 +00:00
Peter Wemm
a5b996a7ec recording cvs-1.6 file death 1995-12-30 19:02:48 +00:00
Satoshi Asami
aa8bdaec2b Added $Id$. 1995-12-28 00:22:45 +00:00
Satoshi Asami
602e098fc1 Make it work for FreeBSD-2.1. 1995-12-27 10:57:20 +00:00
Satoshi Asami
bc09b98dbc Makefile. 1995-12-27 10:56:35 +00:00
Satoshi Asami
6125383164 Oops, forgot pathnames.h. 1995-12-27 10:55:32 +00:00
Satoshi Asami
89a7b2b714 ccdcontrol from NetBSD-1.1. Note it was called "ccdconfig" originally. 1995-12-27 10:51:05 +00:00
Joerg Wunsch
3be059bae1 Put the superfluous "DUMP:" back in the statistics line, to make
Amanda happy.
1995-12-23 11:53:56 +00:00
Poul-Henning Kamp
1d86b91c32 The rewamped sysctl program that will find all the variables itself.
Also a couple of handy new options.
1995-12-21 12:39:25 +00:00
Peter Wemm
09802b4a89 The version of setproctitle() inside nfsd was busted. It was not terminating
the argv array, causing parts of the argv[0] to be picked up several times
by libkvm, causing strange ps results for the nfs-server and nfs-master
processes.. :-]

(How many copies of setproctitle() do we need anyway?  NetBSD has it in
 libc and BSDI have it in libutil.)
1995-12-15 13:13:32 +00:00
Peter Wemm
65219883c8 Add #include <vm/pmap.h> in order to make savecore compile again after the
last round of <vm/*.h> include file changes.
1995-12-13 11:36:20 +00:00
Garrett Wollman
ee9a463848 Use a dynamically-sized buffer for SIOCGIFCONF so that `ifconfig -a'
actually retrieves all the information no matter how many interfaces
there are.  (Probably there are other utilities which need similar
modification.)

Submitted by:	Andrew Webster <awebster@dataradio.com>
1995-12-07 19:21:53 +00:00
Joerg Wunsch
8807593b7e Make the default tape device match dump(8). 1995-11-26 16:57:37 +00:00
Peter Wemm
30a2d5501c Connect fsdb to /sbin makefile... 1995-11-24 23:17:58 +00:00
Peter Wemm
e10719ee6a Adjust relative paths in Makefile to ../sbin/fsck and ../../sys/ufs/ffs 1995-11-24 23:12:00 +00:00
Joerg Wunsch
019420a58f Andreas Klemm's patch set for dump(8), with some minor (cosmetic)
changes and one addition by me.

. Use reasonable defaults for the tape drive (/dev/rst0) instead of
  something we actually don't have.

. Add a summary line displaying the alapsed time and the total throughput.

. Replace "rmt" for the remote location of rmt(8) by "/etc/rmt", since this
  is the historical protocol, and relying on the $PATH causes a big pain.
  Make it adjustable via an environmental variable though.

Reviewed by:	joerg (for Andreas' part)
Submitted by:	andreas@knobel.gun.de (Andreas Klemm)
1995-11-18 18:00:43 +00:00
Joerg Wunsch
1cc09ccecf Avoid bogus free() of a junk pointer.
Detected by: phkmalloc
Submitted by:	grog@lemis.de (Greg Lehey)
1995-11-17 23:22:34 +00:00
Poul-Henning Kamp
07f16e5324 Make sysctl compile again by removing all the debug stuff. 1995-11-17 16:28:42 +00:00
Dima Ruban
28b2e97b28 If root does not have a password, `init' should not ask to enter it.
otherwise it's not possible to get into single-user mode, if root
does not have password and console insecure.
1995-11-10 07:06:59 +00:00
John Dyson
09329912f8 Mount program for EXT2FS.
Submitted by:	Godmar Back <gback@facility.cs.utah.edu>
1995-11-06 02:21:35 +00:00
Peter Wemm
d4d864ba62 Commit FreeBSD-specific changes. Mainly to do with structure layout
differences that we dont have.
1995-11-03 22:47:24 +00:00
Peter Wemm
fd0348496b This commit was generated by cvs2svn to compensate for changes in r12048,
which included commits to RCS files with non-trunk default branches.
1995-11-03 22:38:54 +00:00
Peter Wemm
39bb6d1ef0 Whoops. RE-Import NetBSD's fsdb - I believe this was written by John Kohl.
Obtained from: NetBSD
1995-11-03 22:38:54 +00:00
Poul-Henning Kamp
77103ea36a Define TRUE & FALSE rather than depending on bogus #includes. 1995-10-29 09:44:09 +00:00
Peter Wemm
185156015b Add a few more heuristics to modload:
1: generate the outfile in /tmp if it's not specified explicitly.
2: if the outfile was implicitly placed in /tmp, automatically remove it.

This means that you can type: modload /lkm/ipfw_mod.o and it'll work, it
wont try and write to /lkm, and it wont leave the (normally) useless
symbol file.

This should not interfere with things like ibcs2 and atapi, which
export some symbols from one LKM to the other by leaving the symbol file.
1995-10-28 17:06:05 +00:00
Peter Wemm
cdf14730ab Make modload calculate a reasonable default entry point name, in light
of the recent changes to bsd.kmod.mk, which enforces that the entry
point be <modname>_mod, unless overridden.

This means that when modloading "/lkm/foo_mod.o", it'll use "foo_mod"
as the default entry point (instead of xxxinit) unless you specify
another via the -e option.
1995-10-28 13:06:11 +00:00
Julian Elischer
09fa32d305 Submitted by: john hay
patches to merge the two IPX packages to work with each other and to
not break make-world :)

IPXrouted should be working now, (or at least compiling) :)
1995-10-27 10:48:31 +00:00
Torsten Blum
0e8bf24b08 fix a reference in "SEE ALSO" (modunload(8) mistakenly references
itself instead of modload(8))
1995-10-26 21:44:11 +00:00
Julian Elischer
cc6a66f20e Reviewed by: julian and jhay@mikom.csir.co.za
Submitted by:	Mike Mitchell, supervisor@alb.asctmd.com

This is a bulk mport of Mike's IPX/SPX protocol stacks and all the
related gunf that goes with it..
it is not guaranteed to work 100% correctly at this time
but as we had several people trying to work on it
I figured it would be better to get it checked in so
they could all get teh same thing to work on..

Mikes been using it for a year or so
but on 2.0

more changes and stuff will be merged in from other developers now that this is in.

Mike Mitchell, Network Engineer
AMTECH Systems Corporation, Technology and Manufacturing
8600 Jefferson Street, Albuquerque, New Mexico 87113 (505) 856-8000
supervisor@alb.asctmd.com
1995-10-26 20:31:59 +00:00
Nate Williams
01fc1ee969 Convert manpage to -mandoc macros.
Submitted by:	Gary Palmer <gary@palmer.demon.co.uk>

Minor cleanup by me in the English.
1995-10-26 05:36:24 +00:00