Commit Graph

1473 Commits

Author SHA1 Message Date
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
Nate Williams
90b430e870 Convert to proper English in the same manner as the sliplogin manpage. 1995-10-26 05:13:54 +00:00
Jordan K. Hubbard
abdec3e35c Fix a silly bug where MAXPATHLEN was subtracted from the string length rather
than the other way around!
Submitted by:	Elmar Bartel <bartel@informatik.tu-muenchen.de>
1995-10-24 13:46:35 +00:00
Andrey A. Chernov
c0fe8534e7 Remove unneeded ctype.h 1995-10-23 23:50:20 +00:00
Andrey A. Chernov
8dcf55a40e Add setlocale LC_CTYPE 1995-10-23 23:36:55 +00:00
Ugen J.S. Antsilevich
7934237885 Support all the tcpflag options in firewall.
Add reading options from file, now ipfw <filename> will
read commands string after string from file , form of strings
same as command line interface.
1995-10-23 03:58:06 +00:00
Joerg Wunsch
d16b647e7f Totally revamp the man page, update to the state of affairs.
Make a link from boot_${ARCH}.8 to boot.8, so people will get what
they expect when asking "man boot".

I think David will lynch me when i'm requesting this to go into 2.1... :-)
1995-10-07 12:05:00 +00:00
Jordan K. Hubbard
9e8433e6e0 This upgrades the driver for Cronyx-Sigma multiplexor boards
from version 1.2 to version 1.9.
Submitted by:	Serge Vakulenko, <vak@cronyx.ru>
1995-10-04 22:24:16 +00:00
Bruce Evans
7d2c66ed67 Fix $Id$. 1995-10-03 15:11:11 +00:00
Julian Elischer
ba3551df6e remove the calls to DIOCWLABEL, as it isn't supported any more
and the error message confuses the user.
(just commented out foe now)
1995-10-03 11:12:50 +00:00
Ugen J.S. Antsilevich
5a9bab798e Support IP Option smatching in grammar and listing.
TcpSyn option removed and will be shortly repoaced by support of all
TCP Flags including syn and ack...
1995-10-01 21:54:05 +00:00
Mark Murray
26e19bc736 As init/Makefile now 'knows' how to build secure code if necessary, clean
out the .if (<building secure>) / .endif
1995-10-01 15:15:09 +00:00
Mark Murray
090bf93cd1 Make this make work the same way as passwd and xntpd. Here it will allow
secure/sbin/init to be cleaned out, and sbin/Makefile to be tidied up.
1995-10-01 15:12:47 +00:00
Mark Murray
05d2e241d0 Define CRYPTOBJDIR if secure is being built 1995-10-01 15:04:42 +00:00
Peter Wemm
373efd489b Catch the case where the children can die too soon causing wait3()
to return ECHILD, which causes the while loop to run forever.
(eg: when accidently running nfsiod on a slow system with a kernel
 without NFS support...)
Obtained from: NetBSD; Frank van den Linden <frank@struis.fwi.uva.nl>
1995-10-01 03:23:13 +00:00
Joerg Wunsch
a67ac8c6f2 Call the -u UCMD command on exit. The command is called with the
current unit number, and the "new" unit number of -1.  This allows the
script to actually deconfigure the SLIP interface (e.g. by running
"ifconfig delete") which has been impossible previously.

This is most likely a candidate for 2.1, too.
1995-09-29 22:03:13 +00:00
Andrey A. Chernov
f73c1ad4e0 Build secure init if available and allowed 1995-09-29 19:35:10 +00:00
Andrey A. Chernov
05fa416850 Log user name with each info and total connection time elapsed
(for accounting purposes). Log few additional events like dialing
number and connection established. Set speed POSIXly.
1995-09-27 17:15:37 +00:00
Andrey A. Chernov
feb1b301ec Rename PATH_LOCK to PATH_UUCPLOCK 1995-09-23 15:17:32 +00:00
Andrey A. Chernov
c0810b3cbc Use new _PATH_LOCK for lock names 1995-09-20 13:10:50 +00:00
Andrey A. Chernov
89ba97703c From Bruce:
slattach always exited early because fd is not open in acquire_line().

Other (trivial) changes that I've been neglecting for some time:

- Turn off O_NONBLOCK so that `chat' doesn't need to worry about it
  (`chat' actually does worry about it).
- Really set speeds POSIXly :-).  cfsetspeed() isn't POSIX.
- Fix spelling error in comment.
- Gripe about bad programming of doing everything from signal handlers.
  slattach should be written to do everything from the sigsuspend() loop,
  but I don't want to do it :-).

From me:
Use .PATH to find uucplock.c

Submitted by: bde
1995-09-20 12:56:25 +00:00
Andrey A. Chernov
76cb3c7b5d Make uucp-lock optional: -L option 1995-09-20 04:56:09 +00:00
Andrey A. Chernov
1ff1e51f2d Make uucp-locking optional: -L option 1995-09-20 04:53:08 +00:00
Andrey A. Chernov
7fcd7f5dcb Unlock device for redial_cmd, then lock again 1995-09-19 09:07:51 +00:00
Andrey A. Chernov
dbfd470885 Fix uucp locking
Remove unnecesary TIOCSETD
Move SLIO* before startup script call
1995-09-19 03:37:07 +00:00
Andrey A. Chernov
5ab506f0f1 Implement uucp-locking
Cleanup debug/syslog code
1995-09-19 03:27:31 +00:00
Andrey A. Chernov
f24b54a614 Change new -U option to -S to go the same way as startslip. 1995-09-18 14:06:38 +00:00
Andrey A. Chernov
b1d39b7c2a New option: -S #: set SLIP unit number 1995-09-18 14:01:11 +00:00
Andrey A. Chernov
2da5bee280 New options:
-K #: set SLIP keepalive timeout
-O #: set SLIP outfil timeout
-U #: set SLIP unit number
sighup handler now sets tty disc for non-redial case too.
Implement SIGURG handling (from keepalive).
POSIXing speed settings.
1995-09-18 13:33:30 +00:00
Andrey A. Chernov
3cfd1dbc21 Add new options:
-K: set keepalive SLIP timeout
-O: set outfill SLIP timeout
Handle SIGURG from keepalive like SIGHUP now, i.e. reconnect.
Back out background scription change, cause some synchro problems.
1995-09-17 21:47:24 +00:00
Joerg Wunsch
229b772d81 Turn on scsiformat.
reformat.
1995-09-17 12:52:24 +00:00
Joerg Wunsch
75428542b4 Finally replace the defunct 4.4BSD scsiformat.c by Peter's wrapper
around scsi(8).  I've done extensive testing of it with a spare disk
in the past, and it's ready for prime-time now.

Submitted by:	dufault
1995-09-17 12:47:01 +00:00
David Greenman
70dded0aec Shorten a variable name. 1995-09-17 09:54:05 +00:00
David Greenman
21c3fde00f Use default COPTS. 1995-09-17 06:57:43 +00:00
Andrey A. Chernov
4eac622346 Use daemon() instead of fork/setsid/close.
Rearrange things to do fork as later as possible.
1995-09-16 05:18:20 +00:00
Andrey A. Chernov
6bd660b66b Oops. Fix my error with -W option 1995-09-15 22:18:45 +00:00
Andrey A. Chernov
ef7728f9c8 Close line before fork, or becomes close twice.
Debug output cleanup.
1995-09-15 20:34:55 +00:00
Andrey A. Chernov
3821a5a9e4 Tune it to REALLY sense carrier drop.
Now works with dialin devices too.
Add new option in slattach style -l: dont use modem control.
Add new option -W: specify max number of dial tries for one phone.
Remove -p option, this ugly hack not needed.
Fix script timeout expires.
Some code cleanups.
1995-09-15 20:06:50 +00:00
Andrey A. Chernov
f5b9bbb8c8 Restore TTYDISC on exit. Move setting of control terminal
after TTYDISC setting
1995-09-15 17:30:03 +00:00
Andrey A. Chernov
e8fcb216a6 Wait until login completed before starting SLIP (5 secs) 1995-09-15 17:08:42 +00:00
Andrey A. Chernov
13811ba072 Pass sequence number to called scripts via LINE env. variable.
It allows specific per phone number tunings
1995-09-15 16:41:10 +00:00
Andrey A. Chernov
da2a7625a4 Add reference to /usr/share/examples/startslip 1995-09-14 23:57:58 +00:00
Andrey A. Chernov
a5d5ac84b4 Add example scripts 1995-09-14 22:37:50 +00:00
Andrey A. Chernov
cb1efdbadd All changes still related to original version:
Don't close line twice.
Change typo == to = in assignment.
Don't restart, if ioctl fails.
Implement uucp-style locking to help dialout pgms.
1995-09-14 22:01:06 +00:00
Andrey A. Chernov
27861c636f Now understand "host!login:" style prompts additionly.
Add -t to specify login script timeout.
Add -w to specify retry wait time.
Describe -p option.
Now understand several -s sections (for several host phone numbers).
Remove -F sw (software flow control), it is impossible with slip.
Change -F hw (hardware flow control) option to -h as in slattach,
we don't need option with argument for only one case.
Call downscript on SIGTERM.
Improve debug diagnostic.
Allow startslip work with several slip lines without killing each other.
Unlink pid file on exit.
Skip \r and \0 in login script parsing instead making them \n.
Use absolute path to default script (/sbin/ifconfig).
Call up/down script in background to prevent hang on them.
1995-09-14 19:03:20 +00:00
Joerg Wunsch
ccf9a17c14 Avoid the "calculated sectors per cylinder disagrees with disklabel"
warning for the default case where the user hasn't specified either -t
or -u on the command line.  It's been confusing our users.
1995-09-09 13:03:09 +00:00
David Greenman
76b19b6b87 Fixed error in maxcontig calculation that caused it to default to "1". 1995-09-08 13:52:55 +00:00
Joerg Wunsch
4d14a29026 Check a pointer in skipdirs() before dereferencing it. I don't fully
understand why it can become a null pointer under some circumstances,
but i've got a pile of tapes where this happens, and running it thru a
debugger proved that simply ending the loop in this case did the right
thing.

Anyway, it cannot make it worse than now, where restore kills itself
with "Memory fault".
1995-09-01 18:09:20 +00:00
Joerg Wunsch
e3038c6ef5 Update to the slices era. Make /dev/rfoo0 the defaults, not
/dev/rfoo0d.

Scan a list of devices instead of insisting on all the world
being wd0.

Allow for disk names to be specified (e.g. `sd0') instead of full
path names only.

Sync the man page with the reality.
1995-09-01 18:00:14 +00:00
Gary Palmer
38a98b2254 Correct minor nit - to filter out SYN packets, the keyword is
`syn' not `tcpsyn' (which matches `tcp' which blocks all tcp
packets)
1995-08-31 21:12:05 +00:00
Andrey A. Chernov
6932478de9 Remove -O2 from COPTS, known rogue 1995-08-29 14:04:39 +00:00
David Greenman
c4e9518794 Document the -a option, and mention ``noauto''. 1995-08-26 06:06:15 +00:00
David Greenman
89beb278f7 The changes for adding the "noauto" option were mostly wrong. MNT_NOAUTO
is a kernel flag, and the kernel definately doesn't need to know about
it.
1995-08-26 05:39:53 +00:00
Jordan K. Hubbard
5411032ad5 Sigh. This isn't my night. I forgot the manpage updates too!
Thanks, Andrey.
1995-08-23 14:14:32 +00:00
Jordan K. Hubbard
81b9534dc5 Add a "noauto" flag so that you can do things like prevent your system
from not coming up multiuser just because you have a CD mount in fstab
but no CD in the drive.
Submitted by:	"Full Name Not Supplied" <simon@masi.ibp.fr>
1995-08-23 12:59:27 +00:00
Gary Palmer
7852d4b660 Add $Id$ 1995-08-22 00:38:02 +00:00
Joerg Wunsch
1c7895ac54 Reset the umask before creating the output file; otherwise running
ldconfig as root with a restrictive umask yielded ld.so.hints
unreadable by the world (and thus useless).
1995-08-16 06:31:50 +00:00
Peter Wemm
f8e782eea4 Add (apparently) Larry McVoy's warning.... 1995-08-12 15:49:12 +00:00
Mike Pritchard
bb2e87c4a2 Fix init to correctly detect processes that are exiting multiple
times per second.
1995-08-08 06:49:59 +00:00
Andrey A. Chernov
228d7ef2cc nspace count was incremented only in child, so warning never displayed
Pointed by: Mike Pritchard <mpp@mpp.minn.net>
1995-08-08 02:29:12 +00:00
Garrett Wollman
656dcd4316 Delete bogus referneces to timezone code internal header file `tzfile.h',
which is no longer bogusly installed in /usr/include.
1995-08-07 19:17:46 +00:00
Bill Paul
1e890b056a Just when you thought it was safe...
- getnetgrent.c: address some NIS compatibility problems. We really need
to use the netgroup.byuser and netgroup.byhost maps to speed up innetgr()
when using NIS. Also, change the NIS interaction in the following way:

If /etc/netgroup does not exist or is empty (or contains only the
NIS '+' token), we now use NIS exclusively. This lets us use the
'reverse netgroup' maps and is more or less the behavior of other
platforms.

If /etc/netgroup exists and contains local netgroup data (but no '+').
we use only lthe local stuff and ignore NIS.

If /etc/netgroup exists and contains both local data and the '+',
we use the local data nd the netgroup map as a single combined
database (which, unfortunately, can be slow when the netgroup
database is large). This is what we have been doing up until now.

Head off a potential NULL pointer dereference in the old innetgr()
matching code.

Also fix the way the NIS netgroup map is incorporated into things:
adding the '+' is supposed to make it seem as though the netgroup
database is 'inserted' wherever the '+' is placed. We didn't quite
do it that way before.

(The NetBSD people apparently use a real, honest-to-gosh, netgroup.db
database that works just like the password database. This is
actually a neat idea since netgroups is the sort of thing that
can really benefit from having multi-key search capability,
particularly since reverse lookups require more than a trivial
amount of processing. Should we do something like this too?)

- netgroup.5: document all this stuff.

- rcmd.c: some sleuthing with some test programs linked with my own
version of innetgr() has revealed that SunOS always passes the NIS
domain name to innetgr() in the 'domain' argument. We might as well
do the same (if YP is defined).

- ether_addr.c: also fix the NIS interaction so that placing the
'+' token in the /etc/ethers file makes it seem like the NIS
ethers data is 'inserted' at that point. (Chances are nobody will
notice the effect of this change, which is just te way I like it. :)
1995-08-07 03:42:14 +00:00
Andrey A. Chernov
d880a8a822 Remove IMAXBEL clearing, our cfmakeraw() already fixed for it
Reviewed by:
Submitted by:
Obtained from:
1995-08-04 02:33:13 +00:00
Joerg Wunsch
5eae614b13 Remove a newline from the output of savecore(8), so the bogus number
1024 that used to remain on a line of its own after savecore completed
its job will be overwritten later in the /etc/rc process.

Reviewed by:
Submitted by:	graichen@sirius.physik.fu-berlin.de (Thomas Graichen)
Obtained from:
1995-07-30 13:10:56 +00:00
Joerg Wunsch
69c06b0c7f scsi(8) used to fall off the end of main(), returning an arbitrary
value.

Reviewed by:
Submitted by:
Obtained from:
1995-07-30 12:58:47 +00:00
Bruce Evans
9c0dc173cc Change install' to ${INSTALL}' so that default install flags can be
specified in the top level Makefiles.
1995-07-25 00:37:58 +00:00
Rodney W. Grimes
41e969f6cf Man page was incorrectly pointing to /etc/dump, it should be /sbin/dump.
Submitted by:	faried nawaz <fn@big-brother.csrv.uidaho.edu>
1995-07-15 10:44:19 +00:00
Poul-Henning Kamp
116805fd7a Fix to match new API. Fixes memory leak, faster. 1995-07-12 09:14:46 +00:00
Bruce Evans
50e2fb8055 Remove a bogus fclose. Normally the "w" stream for /var/crash/bounds was
fclosed twice and this didn't seem to cause any problems, but when
/var/crash was on an an unwritable nfs-mounted partition, fclose(NULL)
caused a core dump.
1995-07-11 17:03:44 +00:00
Peter Dufault
ca4b4242c9 The mode page editor never cleaned up the temp files. Thanks
to Joerg for noticing.  This low risk bug fix is appropriate for
2.1.
1995-07-11 09:21:33 +00:00
Doug Rabson
a62dc40654 Changes to support version 3 of the NFS protocol.
The version 2 support has been tested (client+server) against FreeBSD-2.0,
IRIX 5.3 and FreeBSD-current (using a loopback mount).  The version 2 support
is stable AFAIK.
The version 3 support has been tested with a loopback mount and minimally
against an IRIX 5.3 server.  It needs more testing and may have problems.
I have patched amd to support the new variable length filehandles although
it will still only use version 2 of the protocol.

Before booting a kernel with these changes, nfs clients will need to at least
build and install /usr/sbin/mount_nfs.  Servers will need to build and
install /usr/sbin/mountd.

NFS diskless support is untested.

Obtained from: Rick Macklem <rick@snowhite.cis.uoguelph.ca>
1995-06-27 11:07:30 +00:00
Joerg Wunsch
16a7269ee5 When tuneing filesystems with tunefs, it is not obvious what the current
parameters are.  You can use dumpfs, but that's not obvious which settings
are tuneable, and is far from clear to the non-guru (it's like using a
hexdump of a tar archive to get a table-of-contents).

There is also an undocumented option in the man page that can be dangerous.
Suppose your disk driver decides to scramble all writes while you tell
tunefs to update all backup superblocks.

This suggested change adds a '-p' (print) switch to bring it in
line with some SVR4 systems.

(Slightly changed by me, mostly for optics. - joerg)

Submitted by:	peter@haywire.dialix.com
1995-06-25 17:46:13 +00:00
Joerg Wunsch
d195e6deec When using dump/rdump on large filesytems (my case 3 GB), the lseek
claims multiple times to have failed. The problem is a off_t is
converted into a int and checked for a negative. A true lseek check
should be checking if the off_t is equal to -1 for failure.

(Suggested fix from PR #bin/461)

Submitted by:	mark tinguely <tinguely@opus.cs.ndsu.NoDak.edu>
1995-06-24 17:07:21 +00:00
Satoshi Asami
f606c848fa Add an "-m" flag to merge instead of replace the entries. We can
now safely add a line like

ldconfig -m ${PREFIX}/lib

in ports' Makefiles and packing lists without throwing away some
directories the user may have added.

Submitted by:   Mostly by Paul Kranenburg <pk@cs.few.eur.nl>
1995-06-24 10:08:44 +00:00
Dima Ruban
78f934546c `dev_bsize' must be reset to 1 before the bread() or
quotacheck -a will fail after the first partition (because
    dev_bsize is 512 and is messes up the superblock read of the second
    partition)

Submitted by:	dillon@best.com (Mattew Dillon)
1995-06-21 03:55:12 +00:00
Karl Strickland
bc2cfd7131 Added -o port option. Use specified port number for NFS requests. The default
is to query the portmapper for the NFS port.  This is useful for CFS users.
1995-06-14 17:41:04 +00:00
Garrett Wollman
f73b709a01 Use the correct file pointer when reading the group id map file. The old
code tried to read the group id map from the user id file, and thus would
never actually allow a umapfs to be mounted.  (!)
1995-06-13 17:42:07 +00:00
Rodney W. Grimes
d3628763db Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
Rodney W. Grimes
5ebc7e6281 Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
Rodney W. Grimes
709e8f9ae1 Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
David Greenman
a2d169021d Fixed bug where UDP was required to mount a TCP NFS filesystem.
Submitted by:	Ken Hornstein, Sept.'94
1995-05-24 10:10:24 +00:00
Poul-Henning Kamp
eb01b2314d The dset program didn't set the "msize" (iosiz in userconfig).
Reviewed by:	davidg
1995-05-22 01:37:24 +00:00
Poul-Henning Kamp
6444ef3b82 Add a undocumented '-d' flag to set debugging. 1995-05-21 19:31:09 +00:00
David Greenman
1469eec81e Fixed incompleteness that would allow dirty filesystems to get mounted
when the single user shell was terminated. These changes disallow mounting
or R/W upgrading filesystems that are dirty unless "-f" (force) option
is used with mount. /etc/rc has been modified to abort the startup if
one or more non-nfs partitions fail to mount.

Reviewed by:	Poul-Henning Kamp, Rod Grimes
1995-05-15 08:39:37 +00:00
Andrey A. Chernov
2ea29df013 Add dumpon 1995-05-14 18:43:25 +00:00
David Greenman
43e6fcd576 Take out special error message for EINVAL...we really do want it to be
"invalid argument".
1995-05-14 02:18:18 +00:00
David Greenman
e83d87f1fc Fix force flag: It is not a "negative" flag. Add MNT_FORCE to the acceptable
options for UFS (which fixes another bug).
1995-05-12 23:39:15 +00:00
Garrett Wollman
55678a2eb9 Learn how to print out kern.dumpdev as a name. 1995-05-12 19:10:56 +00:00
Garrett Wollman
83f9dfab4d My utility to specify where you want crash dumps to go. More user
and kernel support to follow.
1995-05-12 19:10:09 +00:00
Jordan K. Hubbard
5013b8b22c Remove all reference to sysinstall - it's going away. 1995-05-09 23:03:22 +00:00
Peter Dufault
9a8e4e5bdc Add support for editing mode pages. 1995-05-05 20:42:00 +00:00
David Greenman
c9c23c03fa Flush stdout when writing out each superblock backup. 1995-05-02 07:45:39 +00:00
Peter Dufault
2473679b38 Don't print out zero length names when verbose is set. 1995-05-01 12:54:32 +00:00
Peter Dufault
1995d212e9 Add a "-s" argument to specify the command timeout in seconds.
Now you should be able to format a disk with something like:
> scsi -f /dev/rsd?c -s 1200 -c "4 0 0 0 0 0"
assuming sd.c lets you open it.
1995-05-01 12:35:05 +00:00
Peter Dufault
0d30b20ac9 Add "-m" command to read mode pages. Also add -z for freezing,
though the kernel changes aren't committed yet.
1995-04-28 19:24:39 +00:00
Paul Traina
ef6304d8c6 Replace call to obsolete inet_addr routine with inet_aton so we can specify
netmasks and broadcast addresses of 255.255.255.255.
1995-04-26 16:52:40 +00:00
Julian Elischer
abeeb9ceb2 Obtained from: copied fro mount_kernfs
This is copied from the mount_kernfs code..
if it doesn't work there is a working binary in ~julian
1995-04-21 01:17:50 +00:00
Gary Palmer
a07c2891bf Bugfixes :
- in mount_portal.c: included catching of SIGHUP to get portald to
  re-read the config file.

  - in mount_portal.c: in SIGCHLD handler the return values checked from
  waitpid were wrong. Note. this routine was written correclty according
  to the manual page for 4.4BSD, but waitpid does not exhibit this
  behaviour. It is not returning 0 when WNOHANG is specified. I havent
  checked this properly.

  - in mount_portal.c: initialized the fdset for the select properly.

  - in mount_portal.c: corrected poor casting in the select.

  - in mount_portal.c: changed a break; to exit (0); so that the
  children die after doing the hard work, this stops the select: bad
  file descriptor messages.

  - in pt_file.c: the kernel passes kernel style open flags to the
  portal code which aren't compatible with "normal" O_ flags. I have
  adjusted these in pt_file.c. In general I think the portal fs code
  and portal_cred structure need changing to pass to the portald
  the right style of flags _and_ the permissions.

  - in pt_tcp.c: a few mistakes in typing of the socket structures,
  getservbyname returns the port number as an int but sockaddr wants
  the port number as an u_short.

  - in pt_tcp.c: someone wrote this on a VAX/Sun whatever and forget
  about byte ordering!! I've included a few htons about the place.

  - in all the above I have sprinkled a few more debugging printf's.

Submitted by:	"Duncan McL Barclay" <dmlb@ohm.york.ac.uk
1995-04-19 12:24:08 +00:00
Poul-Henning Kamp
e7bf085313 Yank out the rewriting of disklabels. This code can and will get confused
in a couple of cases, and it doesn't do much anyway.  It used to save only
the newfs params (block/frag/cgroup.. and nothing more.  Something that
don't belong in a disklabel in the first place.
1995-04-19 02:19:20 +00:00
Peter Dufault
a478e06bfc Remove "BUG" of not supporting arguments for "-o" 1995-04-17 14:51:54 +00:00
Peter Dufault
de1d7f1b4a Add support for arguments in output "-o" string. 1995-04-17 14:35:07 +00:00
Gary Palmer
a058021a86 Bump to 2.0-950418-SNAP 1995-04-17 10:19:31 +00:00
Gary Palmer
59423ca335 Claim 0xA7 for NEXTSTEP in here also. 1995-04-17 09:46:03 +00:00
Gary Palmer
5f0c94240a Add NEXTSTEP as claiming partition code 0xA7. 1995-04-17 09:42:54 +00:00
Jordan K. Hubbard
af087363e8 Bump the snap date. 1995-04-15 16:40:34 +00:00
Jordan K. Hubbard
9599f64201 We're now shooting for a 950412-SNAP
Reviewed by:
Submitted by:
Obtained from:
1995-04-12 22:26:47 +00:00
Jordan K. Hubbard
7565491c79 Bump this to 0408. I have my reasons. 1995-04-11 07:43:33 +00:00
Garrett Wollman
a5ce0490a4 Fix initialization error that caused `mount -vat' to behave unexpectedly
in certain circumstances.  Fixes PR #182.

Submitted by:	Andrew Atrens <atreand@statcan.ca>
1995-04-10 18:57:08 +00:00
Bruce Evans
df62fcee1f Update declaration to match the change made to dir.c a few hours ago. 1995-04-02 22:53:36 +00:00
Bruce Evans
11a40aa5ad Submitted by: Philippe Charnier <charnier@lirmm.fr>, added to by bde
Fix all the warnings from `gcc -Wall'.
1995-04-02 16:52:14 +00:00
Bruce Evans
444da1eb3c Make this actually work. It always failed in FreeBSD because it attempted
to open the mounted block device containing the directory to put the bad
sector files in, and opening of mounted block devices hasn't been allowed
since Net/2 or before.  Attempt to open the raw device instead.  Be more
careful about long names.

Use lstat() instead of stat() to search for block devices so that my
symlink to the default floppy doesn't cause problems.

Check for truncation of the block number when it is squeezed through the
mknod() interface.  The maximum used to be only 32767, but now it large
enough.
1995-04-02 16:36:39 +00:00
Bruce Evans
3eeb5bdcb3 Submitted by: Philippe Charnier <charnier@lirmm.fr>, distilled by bde
Fix a couple more bogus types that aren't reported by `gcc -Wall'.
1995-04-02 15:25:19 +00:00
Bruce Evans
31f4ab50bc Submitted by: phk, added to by bde
Fix all the warnings from `gcc -Wall'.
1995-04-02 14:52:29 +00:00
Ugen J.S. Antsilevich
9289ddbe2e make pass work also as the first keyword
(while addf skipped)
Reviewed by:
Submitted by:
Obtained from:
1995-03-30 12:18:10 +00:00
Bill Paul
8b5a6d67db Fixed stupid bug in mountd: it would seem that the kernel doesn't allow
you to push the same host into its NFS export lists twice, but mountd
tries to do it anyway. This means that putting:

/some_file_system -ro host1 host1

in your /etc/exports file causes an error. This is bogus: mountd should be
smart enough to ignore the second instance of host1. This can be a problem
in some configurations that use netgroups. For example, each host in my
netgroups database is has two entries:

startide (startide,-,) (startide.ctr.columbia.edu,-,)

When mountd sees this, it tries to put startide.ctr.columbia.edu into the
export list *twice*. Just listing 'startide' /etc/exports list will also
screw up because mountd will try to resolve the netgroup 'startide' instead
of the hostname 'startide.'

My solution is watch for duplicate entries in get_host() and mark them
as grouptype GT_IGNORE, which do_mount() will now cheefully throw away.
This is a bit of a kludge, but it was the least obtrusive fix I could
come up with.

Also silenced a compiler warning: arguments passwd to xdr_long() should
be u_long, not int. :)
1995-03-26 23:36:38 +00:00
Andrey A. Chernov
73cab1a3bc Use more AI to predict initial/final isdst,
latest isdst  preffered.
1995-03-26 22:51:51 +00:00
Poul-Henning Kamp
2b76585664 add a \t which has been nagging me too long 1995-03-19 06:28:48 +00:00
Poul-Henning Kamp
64988eb339 Remove reference to fsdb(8). We don't have it. 1995-03-17 04:41:18 +00:00
Garrett Wollman
b53e909d11 Fix long-standing core dump when ld returns failure. 1995-03-16 17:11:21 +00:00
David Greenman
3669a02157 Changed manual page to conform to the reality in FreeBSD. 1995-03-15 07:08:33 +00:00
Poul-Henning Kamp
76f4de663a Extract the cpio-floppy relative to the root, not /stand. 1995-03-15 06:16:10 +00:00
Joerg Wunsch
18c0c440eb Do not try to make any notice if the PID file cannot be created.
Makes folks happy that run slattach in single-user, where /var/run is
probably missing.
1995-03-12 23:37:28 +00:00
Bill Paul
f7fa522e95 Impliment -ad and -au flags in addition to -a and document the change
in the man page. ifconfig -au affects all interfaces marked as up,
and ifconfig -ad affects only the interfaces marked down. ifconfig -a
still handles everything. This change is purely for compatibility with
SunOS, for those who might be accustomed to the SunOS ifconfig's
behavior.
1995-03-12 19:05:03 +00:00
Joerg Wunsch
21bfcc9f8c Make slattach create a PID file under /var/run when the connection is
established.  This way, automatic scripts are possible that might
control the SLIP connection.  It's unacceptable for a daemon that's
being controlled by a variety of signals to not leave its PID
somewhere.  The file name contains the terminal path name component of
the associated tty device, so it should be unique even with multiple
parallel slattach's running.  The file will be unlinked at regular exit.

Also found a minor bug in the option handling by compiling with -Wall.
1995-03-12 15:04:18 +00:00
Ugen J.S. Antsilevich
1079e644a8 Fix it - now this programm should work probably..It is
still commented out in rc and i ask everybody to test it and
reply  if it makes any troubles...If no - very good..
1995-03-12 13:27:24 +00:00
Ugen J.S. Antsilevich
009f85df0b Update manpage..BTW,if somebody wit good English
would go through it and fix it would be a really good idea.
1995-03-03 12:59:47 +00:00
Ugen J.S. Antsilevich
3c3f8b95a8 Oops..remove some debugging leftover.. 1995-03-03 12:47:23 +00:00
Ugen J.S. Antsilevich
9071ec3796 Ok..so everybody picking on me that ipfw syntacs
is a pain in ...wel.. trying to fix this
 * from/to/via position indepenndant syntax
 * "any" for 0/0 host address
 * addf/addb default keyword in case you skip it..
 * pass = accept new action, seems to be somewhat better
   in particular cases
 * on = via (as on ed0 instead of via ed0,loook at
   reject tcp on ed0 from hacker )
1995-03-03 12:28:34 +00:00
Ugen J.S. Antsilevich
ce83f1d6d8 Fixed manpage..ldeny,lreject and log options are there
and others not..
Submitted by:	torstenb@FreeBSD.ORG
1995-02-27 10:52:22 +00:00
Poul-Henning Kamp
7705c77bd6 The things you have to go through some times! Add a minimal program to
read a termcap entry, since tset is picky about filedescriptors...
1995-02-26 20:39:40 +00:00
Poul-Henning Kamp
c8006b1500 oops. 1995-02-26 02:00:35 +00:00
Poul-Henning Kamp
23b406e176 Add a '-p' option to md5. This will save some time in generation of the
ctm deltas.
1995-02-26 01:55:31 +00:00
Andrey A. Chernov
7fe4e56742 configure_network() if carrier already present
Submitted by: serg@opus.opu.odessa.ua
1995-02-25 18:06:23 +00:00
Ugen J.S. Antsilevich
ab7d7f5827 Change utility to accept interface name
along with IP as "via" argument
1995-02-24 14:32:45 +00:00
Poul-Henning Kamp
38994f93ce Fix -Wall warnings.
Yes I have better things to do, but just now I'm waiting...
1995-02-23 07:05:01 +00:00
Bruce Evans
f75dd51832 Don't clobber d_secperunit in disklabel -e'. disklabel -e' replaces all
the values that it doesn't print by defaults.  This seems wrong.  I want
to be able to see the total number of sectors more than edit it.  The
default d_secperunit of (sectors/track * tracks/cylinder * cylinders) is
bogus if sectors/track is only an approximation and more bogus if
sectors/track and tracks/cylinder are dummy values such as 4096 and 1
to defeat ufs's pessimizations.
1995-02-22 23:21:29 +00:00
Andreas Schulz
08b48e644c Document the mountdtab file in the man page. 1995-02-22 21:42:48 +00:00
Garrett Wollman
d7a124e5d8 Use POSIX.2 regular expressions, get rid of libcompat. 1995-02-21 04:05:20 +00:00
Guido van Rooij
e6373c9ec0 Implement maxprocperuid and maxfilesperproc. They are tunable
via sysctl(8). The initial value of maxprocperuid is maxproc-1,
that of maxfilesperproc is maxfiles (untill maxfile will disappear)

Now it is at least possible to prohibit one user opening maxfiles

-Guido

Submitted by:
Obtained from:
1995-02-20 19:42:42 +00:00
Poul-Henning Kamp
9b1fd0e50e Clean this file up so it is readable... 1995-02-20 00:48:50 +00:00
Jordan K. Hubbard
61a3cfb7a3 ipfirewall.4 is obviously not here anymore! Adjust the Makefile. 1995-02-18 16:36:23 +00:00
Ugen J.S. Antsilevich
96fd3f53e8 Finally document "via" feature.. 1995-02-17 15:44:08 +00:00
Jordan K. Hubbard
571a258ad5 fstab is in section 5, not section 8.
Obtained from: NetBSD
1995-02-17 03:37:33 +00:00
Bruce Evans
48ab66a1f5 Fix another bogon in the change before the last. 1995-02-16 11:23:25 +00:00
Garrett Wollman
9426bb7c1d Allow the user access to net.inet.igmp, even though there's nothing
sysctl(8) can interpret there.  (Someday there might be.)
1995-02-16 00:28:42 +00:00
Andrey A. Chernov
12430b365a Changes for new _menu interface 1995-02-15 19:48:10 +00:00
David Greenman
792016e7a4 Woops, last change wasn't done quite right...fixed. 1995-02-15 14:45:08 +00:00
David Greenman
32e68582d1 Yanked out (now obsolete) support for 'fastboot'. 1995-02-15 14:35:29 +00:00
David Greenman
2ee6a63f1f Include the special device in the error output so that it makes sense. 1995-02-15 14:29:26 +00:00
David Greenman
8a978495e7 Verify that the last component of the mount point path exists and is
a directory - allows for better error reporting.
1995-02-15 14:20:50 +00:00
David Greenman
1564b6f5e0 Slight change of wording on clean flag not set message to appease some
complaints.
1995-02-15 00:23:56 +00:00
David Greenman
69f92856cb >The fix for the missing ".." in the root directory is enclosed below.
Submitted by:	Kirk McKusick
1995-02-15 00:17:56 +00:00
Ugen J.S. Antsilevich
dbec390e8a Ppl asked to make ipfw smarter..ok..
here it is..
1995-02-14 09:34:04 +00:00
Ugen J.S. Antsilevich
8f6466e847 Fix for rather stupid bug by which you couldn't set
ports for the destination IP addr/port.
Nobody reported this btw , while a lot of other things reported-
probably ppl does not use destination ports at all????
1995-02-14 08:28:27 +00:00
Poul-Henning Kamp
9170aeb809 Made the changes needed here to install from a CDrom.
Cleaned some cruft in the process.
This program becomes curiouser curiouser...
1995-02-13 06:52:16 +00:00
Martin Renters
d65161535c Added FIFO restore capability. 1995-02-10 21:57:02 +00:00
Jordan K. Hubbard
982a35748b Prepare for 950210-SNAP 1995-02-10 01:13:27 +00:00
Garrett Wollman
35c13fa033 Implement TCP MIB variables. 1995-02-09 23:16:17 +00:00
Bruce Evans
1e30185a78 Don't allow the alternate superblock block number for one file system
to apply to others (except when it is given on the command line).
1995-02-09 15:58:31 +00:00
Ugen J.S. Antsilevich
742d9f28f7 Ok..at least this man page is up to date now
To be continued..
1995-02-09 13:13:18 +00:00
Poul-Henning Kamp
4e93a5203c Allow zero as value for certain arguments to indicate "take from disklabel". 1995-02-05 18:03:37 +00:00
Poul-Henning Kamp
55abc5794a Change the defaults for newfs to disregard the geometry in the disklabel.
We pretend we have one head with two megabyte worth of sectors per cylinder.

The code try to access another head in what it belives to the same
physical cylinder, because it belives that it would be faster than
waiting for the next free sector under this head to come around.

Most modern drives doesn't have a "classical" geometry, and thus
we end up fooling ourselves doing the above optimization.  With this
change we will fill a cylinder sequentially if we can, and thus get
much more mileage from the track-buffer/cache built into the drives.

As a result a lot of seeks to the next or previous track should be
avoided by this.

(My disk is a lot less noisy actually...)

You can still get the old behaviour, by specifying zero for the
numbers.

This will also solve the problem with newfs barfing at really big
drives.

Obtained from:	adult advice from Kirk.
1995-02-05 08:42:31 +00:00
Jordan K. Hubbard
097416da01 Bump the date to February 2nd. 1995-02-02 08:32:11 +00:00
Jordan K. Hubbard
59ed2d66e2 Mkdir() now takes two flags. 1995-02-02 05:49:06 +00:00
Poul-Henning Kamp
86abb05569 Make dirs for msdos fs's. 1995-02-02 05:35:36 +00:00
Jordan K. Hubbard
431d67b60e Do what I think Poul *intended* to do, rather than what he did.. :-) 1995-02-01 11:15:45 +00:00
Jordan K. Hubbard
501d72dd36 Bump snap date. Our current version numbering scheme loses.
How can we get ONE canonical version string into everything?
1995-02-01 11:03:35 +00:00
Poul-Henning Kamp
5319d4525a I have taken sysinstall out of the normal SUBDIR rule. There are too
many build problems just now, and it isn't that general after all.
1995-01-31 19:41:08 +00:00
Doug Rabson
34728d6afb Add support for kerberised NQNFS.
Reviewed by:
Submitted by:
Obtained from:
1995-01-30 19:18:11 +00:00
Doug Rabson
5439cc46c9 Add support for kerberised NQNFS. 1995-01-30 18:56:06 +00:00
Poul-Henning Kamp
aa033a1d78 Move the real kernel onto the cpio.flp and read this from the boot.flp
make debug handling with serial console obnoxious, but present.
1995-01-30 03:19:58 +00:00
Poul-Henning Kamp
d97ce60ae9 Some cleanup done.
Include bteasy, bootsd, sdboot and termcap entries using file2.c

Remove all traces of "termcap.small".

The policy in this program regarding termcap is:

| If $TERM is set
| 	do nothing special, rely on usual termcap.
| else
| 	use compiled in (via file2c) termcap entries
1995-01-29 02:31:38 +00:00
Andreas Schulz
ec5b52ee79 fix another bug in the MAKEDEV cludge :-). The x-bit permission are not
necessarly copied over. So better call it explicit with a sh ./MAKEDEV .
1995-01-29 01:45:54 +00:00
Andreas Schulz
abb29799dd Correct the relative path for the etc directory in the makedev cludge :-). 1995-01-29 01:25:17 +00:00
Jordan K. Hubbard
e0b77dac9a Less kludge dev. 1995-01-28 09:17:58 +00:00
Jordan K. Hubbard
fadd4e9f07 A different kludge for /dev 1995-01-28 09:16:41 +00:00
Jordan K. Hubbard
8965b9f5e5 Poul lost his copy of K&R again - add a semicolon to the end of the
preceeding statement..
1995-01-28 05:00:50 +00:00
Poul-Henning Kamp
c0f92921df Update to BTEASY 1.7
Submitted by:	vak
1995-01-28 04:42:08 +00:00
Poul-Henning Kamp
c874ac0293 Make Jordan a little happier by fixing a couple of bogons. 1995-01-28 04:35:05 +00:00
Jordan K. Hubbard
9c206926ab Bump the date again - the snapshot doesn't look like it's going to happen until
tomorrow.. :-)
1995-01-28 01:14:39 +00:00
Jordan K. Hubbard
ea7f178ccb Call the bininst.sh script by its new name. 1995-01-28 01:13:29 +00:00
David Greenman
e1babfc54f Kill used "error" variable. 1995-01-27 23:26:53 +00:00
David Greenman
2f21d07aa3 Fixed bogus error reporting when the failure is RPC related ("Address
already in use", instead of "Permission denied").
1995-01-27 23:24:33 +00:00
Jordan K. Hubbard
f16651aed0 Tweak SNAP date. 1995-01-27 19:56:56 +00:00
Peter Dufault
daa21be5f0 Fix verbose printout of "" name 1995-01-26 23:40:40 +00:00
Andrey A. Chernov
d2eb078dbe Sync with main termcap 1995-01-26 08:51:52 +00:00
Jordan K. Hubbard
1cf5e3a68b Add a reference to ft(8). 1995-01-26 00:34:56 +00:00
Jordan K. Hubbard
681e4fa0cf Add pointer to the `ft' command. 1995-01-26 00:32:58 +00:00
Andrey A. Chernov
88b0c79e5b DPADD added 1995-01-25 20:25:57 +00:00
Peter Dufault
d29f6c1ec9 Added "scsi" 1995-01-24 12:08:15 +00:00
Peter Dufault
2208cace06 Submitted by: Julian Elischer and Peter Dufault
Obtained from: 1.1.5

"scsi (8)" from 1.1.5, with added support for any command from
the command line.
1995-01-24 12:07:27 +00:00
Bruce Evans
bc84e96c42 Use the correct include path if there's an obj directory. 1995-01-24 06:10:48 +00:00
Ugen J.S. Antsilevich
e42327af6f Add dset to Makefile. 1995-01-23 15:45:41 +00:00
Ugen J.S. Antsilevich
006baf01ee src/sbin/dset
*blush* this is the commit i meant to do before..
Utility to save device configuration.
1995-01-23 15:42:59 +00:00
Garrett Wollman
f35e67894f Make modload more informative about errors encountered while running
`ld' by calling execl() directly rather than using system().
1995-01-23 04:08:00 +00:00
Garrett Wollman
93eb556775 Document the requirements of dynamic loading on mounting order. Cross-ref
to vfsload(3).
1995-01-22 22:54:56 +00:00
Andrey A. Chernov
99b9edabe6 Reflect lastest termcap changes 1995-01-19 17:15:54 +00:00
Joerg Wunsch
65f2c37b27 Should that last sentence read "...thus a full dump must be done...",
or do I have it all wrong?

Submitted by:	"Shawn M. Carey" <smcarey@mailbox.syr.edu>
1995-01-18 19:26:14 +00:00
Joerg Wunsch
5c2c5abe6d Removed the comment about missing support for the original "High
Sierra" format from the bugs section.
1995-01-16 17:05:44 +00:00
Jordan K. Hubbard
b9ecc1ed61 Make sure a partition we're about to mount on will always exist on the
user's system.  Make Mkdir() selectively not die in case of failure.
1995-01-14 10:31:29 +00:00
Jordan K. Hubbard
2062c2dbe3 Correct positioning of text, update version. 1995-01-14 07:30:30 +00:00
Jordan K. Hubbard
49f7c177f3 Recognise Linux filesystems.
Submitted by:	remy
1995-01-14 02:26:07 +00:00
Jordan K. Hubbard
0301b28935 Correctly recognise Linux partitions.
Submitted by:	remy
1995-01-14 02:25:36 +00:00
Jordan K. Hubbard
f146e52ddb Patch from Remy Card for bogus path in Makefile. 1995-01-14 02:20:42 +00:00
Joerg Wunsch
d5453ba5c4 Make ldconfig and ld.so not hashing the shared lib minor number. This
misfeature caused troubles when a program attempted to access a shlib
where one with a higher minor number has been hashed.  Ldconfig does
only include the highest-numbered shlib anyway, so this is in no way a
limitation of generality.

Caution: after installing the new programs, your /var/run/ld.so.hints
needs to be rebuiult; run ldconfig again as it's done from /etc/rc.
1995-01-12 19:12:29 +00:00
Ugen J.S. Antsilevich
98bee36695 Utility changes following the facility.
We have only one firewall chain and one accounting chain now.
   No blocking/forwarding so commands changed.
Man pages are somewhat out of date and will be updated ASAP.
1995-01-12 13:01:21 +00:00
Andrey A. Chernov
81ab7fb2a7 Add better argument handling
Submitted by: jmz
1995-01-10 21:19:57 +00:00
Bruce Evans
12981249c8 Remove excessive argc checking. It was impossible to set `dtrwait' and
and `drainwait' in a single command.
1995-01-10 01:42:24 +00:00
Andrey A. Chernov
b0e399e3c4 Fight agaist hanging modems: add new drainwait option.
Reviewed by: Bruce
1995-01-05 00:03:06 +00:00
Justin T. Gibbs
7c49ab48fa Honor the values for bsize, fsize and bps from the disklabel. 1995-01-04 23:50:30 +00:00
Justin T. Gibbs
ca4693ed4b Allow for the specification of bsize, fsize, and bps (blocks per segment)
for LFS filesystems.
1995-01-04 23:49:51 +00:00
Joerg Wunsch
08e9e0741b The -N option takes one argument, hence the getopt control string
needs to have a colon for it.  Looks like nobody has tested this
so far.
1995-01-02 12:08:06 +00:00
Jordan K. Hubbard
2558753d2e Tweak the man page too. 1994-12-30 22:51:33 +00:00
Jordan K. Hubbard
a309172130 From: Wankle Rotary Engine <wpaul@skynet.ctr.columbia.edu>
- The -a flag now works just as it does in SunOS: '-a' is actually
  handled like a wildcard for all interfaces. 'ifconfig -a' displays
  the status of all interfaces, 'ifconfig -a netmask 0xffffff00' sets
  the netmask of all interfaces, and so forth. I don't know if many
  people really need to be able to set the netmasks of all interfaces
  at once, but the SunOS ifconfig seems to allow this, so there you
  have it.

- An 'ether_status' function has been added to display the ethernet
  address of all ethernet interfaces. Again, as in SunOS, you must
  be root in order for this to work. The ethernet address is read
  from /dev/kmem using kvm_open() and kvm_read(), much in the same
  was as it's done with netstat. If you choose to install ifconfig
  set-gid kmem then normal users will be able to see the ethernet
  address as well, though this may not be desireable. This feature
  requires a small change to the ifconfig Makefile: you need to link
  with -lkvm in order to use the kvm_*() functions.

Submitted by:	wpaul
1994-12-30 22:42:41 +00:00
Jordan K. Hubbard
b4314abf31 Bring the 2.0 RELEASE version back into -current. Now I just need
to resurrect my changes for the last snapshot, which were unfortunately
lost in a forest fire on time.
1994-12-27 23:26:59 +00:00
Andrey A. Chernov
937b5aaa3b Use timelocal() instead of mktime() hack 1994-12-26 10:43:48 +00:00
Nate Williams
61f9ce8d32 Updated to recent version of Paul K.'s shlib code. This code has better
warning handling and allows for link-time warnings with a modified
version of gas.

Note: Not all of the newer bits were updated such as some of the non-x86
machine-dependant code is relevant to FreeBSD right now.

Obtained from: NetBSD
1994-12-23 22:31:35 +00:00
Ugen J.S. Antsilevich
611367b40f Add interface to clear accounting entry option.
Reflect ip_fw structure changes.
1994-12-13 15:56:51 +00:00
Ugen J.S. Antsilevich
fab9e6db0e Add via option,minor changes to interface to reflect
internal firewall changes.Check option disabled temporary.
1994-12-12 17:19:33 +00:00
Andrey A. Chernov
882588f86c Fix resetting adjkerntz to 0 (pointed by Bruce),
forget to initialize mib variable.
1994-12-12 05:48:45 +00:00
Andrey A. Chernov
408399029a Optimize setting of DISRTCSET 1994-12-12 05:43:28 +00:00
Andrey A. Chernov
62be897817 Clean internal logic, helps for some unusual cases 1994-12-12 05:20:44 +00:00
Andreas Schulz
a8fcd7af26 Changed a sum(1) to a cksum(1). 1994-12-11 23:29:20 +00:00
Andreas Schulz
2a7abc9144 Changed a reboot(1) to a reboot(8). 1994-12-11 23:27:59 +00:00
Andrey A. Chernov
f62ac99484 rc.local -> rc.serial
cua0? -> cuaa?
1994-12-05 19:52:29 +00:00
Paul Traina
247c65ea84 Fix spelling/grammar errors 1994-12-05 10:08:35 +00:00
Jordan K. Hubbard
81db698e3a Joe Greco <jgreco@brasil.moneng.mei.com>'s enhancements to startslip.
Submitted by:	jgreco
1994-12-04 12:26:01 +00:00
Bruce Evans
7e1a4c5c36 Fix another path that was broken by moving things to sbin/i386. 1994-12-04 08:01:24 +00:00
Garrett Wollman
1fa33d23b5 Move i386-specific programs into i386 subdirectory. 1994-12-02 23:53:23 +00:00
Garrett Wollman
6014635361 Cronyx/Sigma sync/async serial driver with PPP support
from Serge Vakulenko
1994-12-02 23:23:01 +00:00
Garrett Wollman
3980ac4f63 Change obnoxious ``Not root dir'' error message into one which actually
tells you what's wrong.
1994-12-02 02:58:56 +00:00
David Greenman
6e1173dc29 In past releases of FreeBSD, I have used the exit status of "ping" to
determine whether a connection to a given machine is up or not.

In FreeBSD 2.0 (and therefore, I assume, BSD 4.4) the exit code of ping
is always zero, even if no packets were received.

I would like to propose the following change to /usr/src/sbin/ping/ping.c
to restore this useful behaviour:

Submitted by:	Denis Fortin
1994-11-29 16:09:56 +00:00
Ugen J.S. Antsilevich
7985370449 Interface changes to support additions to firewall. 1994-11-28 12:34:37 +00:00
Andreas Schulz
7dd4667fed Submitted by: M.C. Wong
Obtained from:
Don't throw away the /etc/nologin file in the -k case.
1994-11-27 23:52:13 +00:00
Andreas Schulz
0013dd1dc4 Correct a litle typo in an error message: PRC -> RPC. 1994-11-26 13:57:46 +00:00
Andrey A. Chernov
0f4d42e2c4 Sectors field too narow (6 digits only), increase it to 7 1994-11-24 21:56:03 +00:00
Andrey A. Chernov
3a9d53eaf3 Fix draw_box dims 1994-11-24 21:50:26 +00:00
Paul Richards
13b2012a78 Added
CLEANFILES += makedevs.c
1994-11-22 13:34:43 +00:00
Jordan K. Hubbard
13eb85741f ALPHA -> BETA 1994-11-21 07:38:48 +00:00
Poul-Henning Kamp
5b4be47e28 Another absolute path... Two actually. 1994-11-20 23:01:27 +00:00
Poul-Henning Kamp
3eeb0c9e5b Guess what 1994-11-20 22:47:52 +00:00
Poul-Henning Kamp
e007d7c51f Whoops. 1994-11-20 22:46:14 +00:00
Poul-Henning Kamp
342fe62299 I might soon stop to keep count of these... 1994-11-20 22:45:14 +00:00
Poul-Henning Kamp
c4bff2faf4 And another absolute path -I :-< 1994-11-20 22:42:16 +00:00
Poul-Henning Kamp
b53839540d This time: an absolute -I :-< 1994-11-20 22:41:03 +00:00
Poul-Henning Kamp
7a621ea796 fix another BLODDY ABSOLUTE .PATH !!!! :-< 1994-11-20 22:28:09 +00:00
Andreas Schulz
794cdf17ef Add parameters "compress", "normal" and "noicmp" for the slip usage.
These names are used in the slip.hosts file as examples, but ifconfig
have formerly only accepted link0, -link0 and link1 for this.
1994-11-20 19:45:58 +00:00
Ugen J.S. Antsilevich
1050b242d8 G-d help me to do it right first time....
Minor patch to man page,test.
1994-11-20 11:53:06 +00:00
Poul-Henning Kamp
93ea8d147a A couple of changes more. Now Paul & Jordan can play again... :-) 1994-11-20 00:49:21 +00:00
Poul-Henning Kamp
309543ede7 Changes to match Pauls code. Had to "globalize" the variables for the
mountpoints.
1994-11-19 23:59:03 +00:00
Paul Richards
e4124e3192 Changed the MBR partition type field from being a string to
a decimal value.

I don't have the time to deal with users typing in partition names
such as "FreeBSD" at the moment so just allow the numerical id to be
specified for the moment.
1994-11-19 18:23:08 +00:00
Nate Williams
750870d48f NetBSD -> FreeBSD
(Poul, bring this into 2.0 please)
1994-11-19 17:55:35 +00:00
Paul Richards
6dd3a38fff Implemented buttons for all the screens.
Could do with some cosmetic tuning regarding placement and things.

Fixed some dialog code (from Andrew).
Pass mountpoints onto stage2 in a struct fstab *mounts[]
Fix all the field connections to conform to the new L&F document.
1994-11-19 17:29:19 +00:00
Paul Richards
d35f2e963a I hope this gets my changes merged back into the current branch.
Removed a layer of menus.
Auto select partition to install into -- first FreeBSD partition
in MBR table. Abort if no FreeBSD partition.
Added a F_BUTTON type.
Fixed up label editor to show free space properly.
Fixed a few bugs.
1994-11-19 05:20:13 +00:00
Andrey A. Chernov
1479d21fc1 Insert newline into too long line 1994-11-19 00:17:55 +00:00
Andrey A. Chernov
f3dc909d25 Fix more dialog bugs and core dumps introduced by previous commiter 1994-11-19 00:09:00 +00:00
Andrey A. Chernov
c2cd62a46d Fix dialog things broken by previous commiter 1994-11-18 23:34:05 +00:00
Andrey A. Chernov
8fbd0636ed Nuke edit_line crawled in again. Change all occurances to line_edit. 1994-11-18 22:21:57 +00:00
Paul Richards
48dd1a4713 Update the in-core disklabel when we change the on-disk version.
Fix up the editor links for the disklabel editor.
Correct the display of fields when they're longer than the
viewable length.
1994-11-18 19:29:01 +00:00
Paul Richards
111054f0ba New files that the last commit missed. 1994-11-18 18:24:00 +00:00
Paul Richards
9e3f27547d Merge in my new mbr and disklabel code. 1994-11-18 18:13:13 +00:00
Poul-Henning Kamp
f1dd848016 Add a "write Bootcode" option to the Fdisk editor.
unzip sysinstall on the way to the hd.
1994-11-18 11:30:04 +00:00
Jordan K. Hubbard
3902fd08ed Give the user a chance to retry the cpio floppy. 1994-11-18 10:12:56 +00:00
Andrey A. Chernov
d31ec8c65b Remove edit_line(), use line_edit() libdialog function instead in all places 1994-11-18 01:16:58 +00:00
Andrey A. Chernov
4195601de8 Use dialog_clear_norefresh() if possible 1994-11-17 23:36:49 +00:00
Andrey A. Chernov
5007f4061c Use -1, -1 where is possible 1994-11-17 19:44:55 +00:00
Jordan K. Hubbard
540bb26ac5 Rethink the cpio floppy verify a little. Don't use a magic cookie,
check for bininst instead (see comments in release/Makefile).
1994-11-17 14:18:43 +00:00
Jordan K. Hubbard
c1b05c7986 1. Add check to see if CPIO floppy extracted properly.
2. See if swapon() failed and at least print a diagnostic.
3. Use -1 instead of strheight()/strwidth() everywhere.

Reviewed by:
Submitted by:
Obtained from:
1994-11-17 14:12:38 +00:00
Jordan K. Hubbard
c9a156d596 New man pages from Ugen. Delete my old, first attempt. I only hope
that the english in Ugen's two replacement pages is not too impenetrable! :-)
[Note:  Poul - please pull these into the BETA branch along with the
other firewall changes]

Submitted by:	ugen
1994-11-17 09:50:30 +00:00
Justin T. Gibbs
7a695db9fa Make newlfs work by adding the MAXSYMLINKLEN and a byte padding to
struct lfs.

sovs@diku.dk:
The pad2 field in struct lfs is a kludge. You
need it because the raw devices has to be written in DEV_BSIZE. The
lfs_maxsymlinklen is needed because the tells the UFS code that we
want to use 4.4BSD directory layout insted of FreeBSD 1.1.5.

Reviewed by: Justin Gibbs
Submitted by: sovs@diku.dk
1994-11-17 01:38:30 +00:00
Andrey A. Chernov
8b6840ff55 Remove str{width,height} functions, they are in libdialog now.
It is only first hook for new autosizing changes, more changes
will follow.
1994-11-16 14:42:22 +00:00
Jordan K. Hubbard
33ccd78725 Latest from Ugen J.S.Antsilevich" <ugen@NetVision.net.il>. Poul, please
take this into BETA.
Submitted by:	ugen
1994-11-16 10:18:18 +00:00
Andrey A. Chernov
ebd8696266 Use autodetected dimensions in Sorry! window 1994-11-15 12:17:42 +00:00
Andrey A. Chernov
f7b5cb4380 Use TellEm instead of dialog_msgbox 1994-11-15 12:15:51 +00:00
Andrey A. Chernov
ea69190efb Check exit code of the dialer, from asa@gw.cronyx.msk.su
Set HUPCL as default modem flag, idea from asa@gw.cronyx.msk.su
but different implementation.
1994-11-14 20:17:36 +00:00
Jordan K. Hubbard
b8565ceeb3 I buggered the last commit. Make sysinstall work again (^$&*!! missing
comma!).
1994-11-13 04:20:23 +00:00
Jordan K. Hubbard
5ece1e4625 Whoops! Update the size of the main menu to 7 items. I'm sleepy. 1994-11-13 02:06:50 +00:00
Jordan K. Hubbard
65890857c5 Now I know what this message is really supposed to say.. :-) 1994-11-13 01:14:38 +00:00
Jordan K. Hubbard
c6c612c2c6 Add hooks for a short trouble shooting document. 1994-11-12 20:34:18 +00:00
Poul-Henning Kamp
e8411f60b0 Don't continue if we don't get a /, swap and a /usr or 80Mb in /. 1994-11-12 05:40:28 +00:00
Jordan K. Hubbard
7c6f13dc4b Make sysinstall deal with user interrupts properly. 1994-11-11 23:22:56 +00:00
Jordan K. Hubbard
dcaed5228b 1. Ask the user one final time before newfs'ing his disk into oblivion.
This means that even "proceed" can be chosen now without going
   irrevokably down that path.
2. Clean up the stage5 text.
1994-11-11 07:58:09 +00:00
Jordan K. Hubbard
700b814a89 Poul's and my idea of avoiding the last reboot at the end was
too ambitious; we can't make the transiton from install to /sbin/init
without another reboot.  Sigh..  Oh well, not that big a deal.
1994-11-08 18:44:14 +00:00
Jordan K. Hubbard
df8cd9c1ac Detect that bininst has finished and go straight into the new system.
Reviewed by: phk
1994-11-08 14:04:19 +00:00
Poul-Henning Kamp
4222ad130a swapon had a bug. Thanks Michael, but couldn't you told me and not Jordan ?
now I have to listen to him all morning teasing me...
1994-11-08 13:40:01 +00:00
Jordan K. Hubbard
a0db5c7857 More 12th hour fixes from Ugen.
Submitted by:	ugen
1994-11-08 12:48:02 +00:00
Poul-Henning Kamp
e0196256c7 Remember to set the d_type field correctly 1994-11-08 11:51:44 +00:00
Jordan K. Hubbard
02006c7644 Change TITLE to something more rational. Make sysinstall.c use it instead
of its own hardcoded constant.
1994-11-08 11:44:04 +00:00
Poul-Henning Kamp
46c134684c Always say the magic word at the end. 1994-11-08 10:14:19 +00:00
Jordan K. Hubbard
4bb50116ba Change Fatals to Warnings. 1994-11-08 07:44:57 +00:00
Jordan K. Hubbard
295acba8ba Fixup:
1. Don't use kernel name for headers - I'm running 2.0.1-Development,
   not ALPHA, and this messes things up.
2. The last dialog was too big, make it a little smaller.  Just cosmetic,
   while I'm in here.
1994-11-08 03:41:52 +00:00
Jordan K. Hubbard
b366e542cc My last cosmetic changes. 1994-11-07 13:48:54 +00:00
Jordan K. Hubbard
7c6b6c167c Cosmetic. 1994-11-07 09:49:06 +00:00
Poul-Henning Kamp
5529c6bf45 Always clear before we "TellEm()" 1994-11-07 04:53:23 +00:00
Poul-Henning Kamp
c4f1695923 Only Mount relative to Written disklabel. 1994-11-07 00:41:38 +00:00
Poul-Henning Kamp
44a88072bd Never have more than one active partition. 1994-11-06 23:33:20 +00:00
Andrey A. Chernov
7bcf49f368 After fixing curses bugs use LINExCOLS in show file 1994-11-06 15:35:50 +00:00
Jordan K. Hubbard
1d317df96c If a file is not present, it's not an error. This means you're using the
1.2MB floppy image.
1994-11-06 11:09:18 +00:00
Poul-Henning Kamp
af3b22a544 remember to tell dialog that we leave. 1994-11-06 04:34:46 +00:00
Jordan K. Hubbard
e9b2310837 Retreat from the idea of using gzip'd ascii files. 1994-11-06 04:10:13 +00:00
Poul-Henning Kamp
6b25616b3b label.c Make sure we always show 8 disk-partitions.
main.c	sanitize the logic of what we do when:

if(getpid()!=1) do stage0 & stage1  (very useful actually)
else if (floppy-marker-file is there) stage0-2, reboot
else stage3-5
1994-11-06 04:05:45 +00:00
Jordan K. Hubbard
a0c7a3b3cf Sigh. My error message printing was still wrong. Wipe the sleep from
my eyes and do this properly (debugging is especially difficult when you have
to burn a floppy every time you want to test your changes! :-( ).
1994-11-06 02:24:45 +00:00
Jordan K. Hubbard
e294dc8a7c Don't use a shell, silly, we don't have one! 1994-11-06 01:34:14 +00:00
Jordan K. Hubbard
feec7965b6 Tweak tweak.. 1994-11-06 01:16:30 +00:00
Jordan K. Hubbard
9d8db7f2f4 I misunderstood dialog_prgbox() - fix it. 1994-11-05 23:56:40 +00:00
Jordan K. Hubbard
b2e3ee0a69 Make ShowFile() now show gzip'd text files. This should save a fair
bit of space on the install floppy.  Modify stage0 and the target names
accordingly.
1994-11-05 23:12:10 +00:00
Andrey A. Chernov
e897bbe2ee Enable back dialog_msgbox in TellEm, real problem was delwin
into edit_line
1994-11-05 23:09:26 +00:00
Jordan K. Hubbard
f90d7a2f31 Whoops! Knew I forgot something.. Bump the menu size. 1994-11-05 08:20:54 +00:00
Jordan K. Hubbard
3f5bee85a0 Add a chance to read the release notes, too. 1994-11-05 08:20:08 +00:00
Jordan K. Hubbard
33d3e14480 I'm not sure if we're just supposed to fall off the end like this,
but at least return something.
1994-11-05 07:34:02 +00:00
Jordan K. Hubbard
6e213286f4 Make stage5 go either to a shell, or on to the bindist installation. 1994-11-05 07:23:58 +00:00
Jordan K. Hubbard
0fe610487f Make this work the way it was really supposed to - less intrusively. 1994-11-05 07:03:55 +00:00
Poul-Henning Kamp
73ba88d5d1 Use /DISKSPACE.FAQ as help-file in the disk-editor. 1994-11-05 06:03:06 +00:00
Jordan K. Hubbard
15196a0bab Change the logic for how error messages are printed so we can actually
see them.
1994-11-05 05:46:12 +00:00
Poul-Henning Kamp
21bd442d86 Cosmetics: edit_line() does standend() when done; 1994-11-05 03:59:34 +00:00
Poul-Henning Kamp
4c78915acc Added a (H)elp function to the fdisk/disklabel code, much needed, now I only
have to write the text-file it will dump on you.
Stopped using cleartoeol in AskEm(), just as a test to see if the screen
looks more sane.
Added a attempted auto-recognition of /, swap and /usr for the first disk
where it looks sensible.  Logic of this might need to be improved.
Made a "ShowFile()" which will not bomb/ignore you if the file isn't there.
1994-11-05 03:34:22 +00:00
Poul-Henning Kamp
7da9aa9e49 Fixed a ghastly mistake. Edit_line() would "delwin(window)". Bad move
buddy, you'd better not call with stdwin then!   fixed now.
Seems like dialog is a LOT more rational now.
1994-11-05 03:13:33 +00:00
Poul-Henning Kamp
70da208d21 Fix a potential bug in stage2.
disable the dialog_msgbox in TellEm(), until we find out why it
hangs on second or third invocation.
1994-11-04 21:38:37 +00:00
David Greenman
5974081cea From njw@cs.city.ac.uk (Nick Williams):
/sbin/umount does not return the correct exit status due to incorrect
logic in its internals.

Further, because of the nature of the code, you *cannot* use it to
umount a directory from a union mountpoint. Well, you can sometimes,
it depends on if the directory is at the top of the union stack or not :)

Submitted by:	njw@cs.city.ac.uk (Nick Williams)
1994-11-04 17:51:37 +00:00
Andrey A. Chernov
9aa4fece6d -i case goes to background pause and acts like -a case on receiving
SIGTERM. This helps to keep CMOS clock updated before reboot.
Idea from J.Wunsch.
1994-11-03 03:16:16 +00:00
Andrey A. Chernov
512dc52632 Restore jkh's changes, now it works for const strings 1994-11-03 00:30:27 +00:00
Andrey A. Chernov
10a42e2218 Now autosizing code works with const strings too.
Prototype added.
1994-11-03 00:28:05 +00:00
Jordan K. Hubbard
bfb65cd092 Don't use autosizing code after all - it doesn't like const strings. 1994-11-02 22:39:57 +00:00
Poul-Henning Kamp
99133b4e1e a missing star. 1994-11-02 22:06:24 +00:00
Jordan K. Hubbard
fb7164eda6 Last changes before going to bed. Disk label editor should now work
a fair bit better.
1994-11-02 11:00:35 +00:00
Andrey A. Chernov
fb833e7272 Restore back -i, -a 1994-11-02 10:04:11 +00:00
Andrey A. Chernov
f30089ed19 Restore back -i, -a 1994-11-02 09:40:06 +00:00
Jordan K. Hubbard
045e459c30 Stage0 can't dump you into a shell. There isn't one. Just reboot.
Stage5 didn't have a large enough dialog box.  Fix that.  Also use
Andrew's autosizing code.
1994-11-02 09:05:49 +00:00
Poul-Henning Kamp
5a9ee65437 Make MkDir() actually do "mkdir -p", so that we can mount on /home/foo, even if
/home isn't a mountpoint.
1994-11-02 08:52:15 +00:00
Jordan K. Hubbard
207d0a541b Fix more mongoloid coding style.
Make a stab at getting free space display to work.
Forward decls to shut compiler warnings up.
Increase some fields to width 2 in order to get edit_line to let you
actually edit them.
Sanity check values and yell at bonehead users.
1994-11-02 08:15:46 +00:00
Andrey A. Chernov
9e92d9eb90 Restore things broken by phk, please use patches to 'cvs update'
instead of whole files commiting!
1994-11-02 07:37:40 +00:00
Andrey A. Chernov
00bc21cafc Restore things broken by phk, please use patches on 'cvs update'
instead of whole files!
1994-11-02 07:34:01 +00:00
Jordan K. Hubbard
eae3147757 More miscellaneous changes. Clear the screen in some appropriate spots. 1994-11-02 07:15:56 +00:00
Jordan K. Hubbard
0782333682 Get stage0 and stage5 working.
Try to reformat this code to be a little more human.  Weird europeans
have been writing this, and can't even seem to agree a single coding
style for more than 4 consecutive lines! :-)
1994-11-02 06:19:53 +00:00
Garrett Wollman
3fa88dec7f Add support for filesystem-specific `-o' options, and re-implement the
most common cd9660 and nfs options like God intended them.  (It is now
possible to say

	mount -o ro,soft,bg,intr there:/foo/bar /foo/bar

again.)  This whole getmntopt() business is an incredible botch;
it never should have been anything more than a wrapper around
getsubopt(3).  Because if the way the current hackaround is implemented,
options which take arguments (like the old `rsize' and `wsize') are still
unavailable, and must be accessed the new, broken way.

(It's unimaginable how Berkeley managed to screw up one of the few things
about NFS that Sun actually got right to begin with!)
1994-11-01 23:51:53 +00:00
Andrey A. Chernov
7ac030ad07 Remove options, run adjkerntz as daemon now 1994-11-01 16:22:22 +00:00
Poul-Henning Kamp
9c354a29e7 Public apology:
I have walked all over Paul Richards code again, and severely lobotomized
some of his stuff, in order to cut some corners for the 2.0-Alpha release.
I belive that we can now manipulate fdisk and disklabel-stuff sufficiently
for the release to actually be produced.
It's not that I don't like Paul and his code, I just need something I
can kick out of the door RSN.

Sysinstall is now under absolute code-freeze, only Jordan has my permission
to commit to this code (stage0 & 5).  I would appreciate if everybody
else would finds problems in sysinstall send patches to me, and I will
commit them. THANKYOU.

The fdisk/disklabel editors are made in pure ncurses, and follow a model
"a`la spreadsheet".

There are some important functions which are missing still, and I would
appreciate if somebody would look at them.
The FDISK part needs a "whole-disk" option, and it needs a "rewrite
MBR-boot code" option.
The DISKLABEL part needs to be able to "import DOS-partition".
Both need a "HELP" function, (display a file "/HELP" using dialog is OK).

It seems to me like the wd.c and sd.c should reread the physical record
when a DIOCGDINFO is made, so that they can pick up changes in the
MBR-data.  Otherwise there will be a couple of weird cases where we
cannot avoid replicating code from the kernel.

If you want to play with this, look at src/release/Makefile.  You may need
to step back to version 1.38 of sys/i386/isa/fd.c to make "rootable"
floppies, it is not clear at this time if that indeed is the problem I
have been having.

Sleep well, my friends, and expect the real Alpha in 24H, if the tree is
still solid.
1994-11-01 10:10:43 +00:00
Andrey A. Chernov
c981965073 Remove extra :%s from syslog formats 1994-11-01 08:34:32 +00:00
Andrey A. Chernov
0835483992 Now:
adjkerntz -i writes kernel clock only, don't touch RTC clock
adjkerntz -a writes RTC clock only, don't touch kernel clock
1994-11-01 06:20:52 +00:00
Jordan K. Hubbard
0a87b23329 Latest changes from Uben.
Submitted by:	uben
1994-10-31 23:58:04 +00:00
Andrey A. Chernov
f195e2e513 Don't make too big windows, count actually text width/height 1994-10-31 04:49:15 +00:00
Andrey A. Chernov
df59073be8 Change hardcoded 24x80 to LINES-1, COLS
Remove compiler warning
1994-10-31 04:07:43 +00:00
Joerg Wunsch
b210d5f66a Fixed a type. 1994-10-30 18:23:22 +00:00
Paul Traina
23e79aa786 add md5 1994-10-29 23:58:55 +00:00
Paul Traina
e164509318 Incorproate version of md5 placed into public domain by RSA. 1994-10-29 23:58:02 +00:00
Poul-Henning Kamp
75c4377f4f Fixed another bunch of problems. I belive we are in a working shape now. 1994-10-29 12:03:59 +00:00
Poul-Henning Kamp
aa7d974a35 Fixed to make sysinstall work again. Notable changes:
Removed a dialog_clear() which somebody aimlessly had slammed into TellEm()
in absence of any understanding of the structure of this program. :-(

Skip through stage0 for now.

Make write_bootblocks write the disklabel using the kernel-call, and forget
about the boot-blocks for now.  This is wrong, but I havn't found the real
problem yet.  I will continue work on this problem.

Added a Debug-feature.  There is a printf' like Debug() now which sends its
output to ttyv1 (Alt-F2), and all "discarded output" from sub-processes end
up there too.  Made TellEm() put it's messages there also, so that we can
see where what happens.

Set the PATH for the shell we shouldn't start at the end :-)

set "npartitions" after the disklabel-editor returns, so that we actually
can edit all the 8 parts of the label.
1994-10-29 10:01:40 +00:00
Jordan K. Hubbard
e2247bbffd Add ipfw. 1994-10-29 08:22:13 +00:00
Joerg Wunsch
56d5f6db85 Fixed an evil bug where rawname() could write across the boundaries of
an array. The bug became obvious in the old system where the array was only
32 characters long (now MAXPATHLEN). Dump honored its name then (:-)
and dumped its core when calling dump -w for a fstab that contained rather long
NFS file system names. Even though this is rather unlikely to happen now,
a bug is a bug:)
1994-10-28 17:26:27 +00:00
Jordan K. Hubbard
61386f1ebb Totally refrobnicate stage0. Add an extern to sysinstall.h so we can
all share the same `selection' variable.
1994-10-28 15:19:57 +00:00
Jordan K. Hubbard
5d39ab9169 Fix up the man page a little more, delete the README that crept in
(but I'm actually just as happy to have in the attic, for reference).
1994-10-28 15:12:22 +00:00
Jordan K. Hubbard
b877c0f37e Add the ipfw command, for IP firewall construction.
Submitted by:	danny ugen
1994-10-28 15:06:53 +00:00
Poul-Henning Kamp
204218e079 Added two #defines to make this compile, until Paul gets out of bed again :-) 1994-10-28 03:02:47 +00:00
Jordan K. Hubbard
07e9e1dbd1 Correct a little spelling. 1994-10-26 10:33:36 +00:00
Paul Richards
f45d9f0072 Clean up the mess from the previous commit which used a out of sync
patch file.

Now, we should be able to configure disklabels using the editor.
1994-10-26 07:34:38 +00:00
Paul Richards
3b32505291 Added some glue code so disklabel editor can be used to edit disklabel
and have changes propagated to later stages.
1994-10-26 07:14:51 +00:00
Poul-Henning Kamp
281d3e3bd9 So there. Now we live on the hard-disk! 1994-10-26 05:41:02 +00:00
Paul Richards
933801dff5 Completed disklabel configuration editor. The editor is working but the
glue code to pass the edited configuration onto the following stages
isn't done yet.
1994-10-26 04:09:19 +00:00
Poul-Henning Kamp
3440124921 New and Improved! crunch with gzip, newfs, fsck and cpio. gzip result.
fits on 1200 kb floppy with unstripped GENERIC kernel.
1994-10-26 02:53:15 +00:00
Andrey A. Chernov
9dbfabe9eb Sync with termcap.src 1994-10-26 02:20:47 +00:00
Andrey A. Chernov
17bde3c52f Sync with termcap.src 1994-10-26 01:20:11 +00:00
Andrey A. Chernov
2c06e4a946 Remove unneeded dialog_update() because now in dialog_clear() 1994-10-25 22:23:18 +00:00
Bruce Evans
c48cef7def Don't write outside of partp[] if the user gives an invalid partition
number for the partition to be made active.  Do nothing instead.  This
allows clearing all the active flags by specifying an invalid partition.
1994-10-25 17:46:53 +00:00
Andrey A. Chernov
fe08a6032f Use configurable dialog attributes instead of hard-coded ones 1994-10-24 05:16:00 +00:00
Andrey A. Chernov
cc1da582a5 label.c: add delwin(window)
mbr.c: use proper dims for newwin, add shadow
both: add ' ' and ESC as valid end-keys
1994-10-24 04:14:23 +00:00
Andrey A. Chernov
dfee7da9e7 Use proper dims for newwin.
Remove double-clear.
Add shadow.
1994-10-24 04:07:22 +00:00
Andrey A. Chernov
c21d850179 Clear screen on exit per Paul request 1994-10-24 03:55:25 +00:00
Paul Richards
302a30b002 Remove a couple of display_disklabel call used
for debuging.
Reviewed by:
Submitted by:
Obtained from:
1994-10-24 03:33:29 +00:00
Paul Richards
caf2d08d24 Round partitions to the next whole cylinder.
Fill in devicename and mountpoint structures from default_disklabel()
so stage2 code knows what to do.
New file label.c for disklabel editing code.
1994-10-24 03:30:56 +00:00
Sean Eric Fagan
badd813805 Reviewed by: jkh
Print out summary information on receipt of SIGINFO; also, stop the
kernel printing of information and restore it on exit.  Now, it needs
an option to be quiet. ;)
1994-10-22 17:30:35 +00:00
Andrey A. Chernov
1ccea3128a Fatal() fixed:
end_dialog() called too early here.
1994-10-22 02:37:24 +00:00
Andrey A. Chernov
2592b4e4e5 Cosmetique: just fix tabs after patch of diff -cb (previous) 1994-10-22 02:35:09 +00:00
Andrey A. Chernov
70f29f87cd ExitSysinstall() fixed:
use dialog functions properly.
don't clear screen with last message on exit(0), I want to see it still.
relay on dialog_active properly.
1994-10-22 02:32:16 +00:00
David Greenman
a3189e21e6 Restrict fs_maxfilesize to 2^40; this is part of a bug fix from Kirk
McKusick to work around problems in FFS related to the blkno of a 64bit
offset not fitting into an int.

Submitted by:	Marshall Kirk McKusick
1994-10-22 02:21:53 +00:00
Paul Richards
66e35128bf Fixed a typo and moved a dialog_clear() line. 1994-10-21 18:26:25 +00:00
Paul Richards
b4740339e8 Fix all the bugs introduced by the source shuffle.
All the mbr code now seems to be working. We can build a basic
unix disklabel in any existing DOS partition while retaining the
existing mbr bootcode or we can install to the whole disk which
puts FreeBSD's boot code into the MBR and creates a clean MBR
partition table with FreeBSD in partition 0 taking up the whole disk.
1994-10-21 18:08:33 +00:00
Poul-Henning Kamp
57a3ad3e15 Now stage2 runs all the way.. 1994-10-21 05:36:43 +00:00
Andrey A. Chernov
af5bd96f75 Add hardcoded cons25-m entry for mono console, if termcap.small
not fit on installation floppy.
1994-10-21 04:48:51 +00:00
Andrey A. Chernov
6373dcc600 Second time bugfix, please be carefully.
Use dialog functions in Fatal only if dialog_active, else
use fprintf(stderr, because it may be called before dialog
initialization
1994-10-21 04:43:07 +00:00
Poul-Henning Kamp
4752baca4a Latest changes from me. Over to you Paul... 1994-10-21 02:14:54 +00:00
Andrey A. Chernov
5d23a66b18 Remove ncurses.h, now included into dialog.h 1994-10-20 21:58:10 +00:00
Andrey A. Chernov
35c9f61260 remove unneded includes
use dialog functions properly
move alloc_memory early to prevent core dump at stage 3
Change 25x80 to 24x80
Fix setenv diagnostic
Fix Fatal to call end_dialog()
1994-10-20 19:30:56 +00:00
Poul-Henning Kamp
277a25ffe0 Now stage 2 should do it's job I hope. Havn't tested yet. 1994-10-20 06:48:40 +00:00
Poul-Henning Kamp
3a06e4e7bf Just a safety measure for me and Paul. 1994-10-20 06:14:29 +00:00
Poul-Henning Kamp
912da9c52c Remake lost changes to sysinstall.h. Sorry Paul ! 1994-10-20 06:08:19 +00:00
Poul-Henning Kamp
7e007f1ded Integrate my code a lot more with Pauls. (I have left sysinstall.c
here, even though it isn't used in the Makefile for Paul not to have
an heart-attack when he wakes up. :-)

Way to go still...
1994-10-20 05:00:00 +00:00
Poul-Henning Kamp
8ae68834f1 The beginning of some structural changes, and the merge of my code into
Pauls.
1994-10-20 02:51:55 +00:00
Poul-Henning Kamp
3e3ad4f2f1 Added a big comment about the general scheme of things during install... 1994-10-20 01:17:26 +00:00
Paul Richards
26b2d70e8e More code rearrangment, moved all mbr code into its own file
so it can be used by other programs.

Added all the necessary menus to take the user through the installation
of the bootblocks.
1994-10-19 23:58:03 +00:00
Bruce Evans
0b461cd7de Don't change the active partition when the user says not to change it.
Convert absolute sector 0 to C/H/S 0/0/0, not 0/0/1.

Open in O_RDWR mode for the undocumented -a option, so that -a can be
used without -u.
1994-10-19 21:25:28 +00:00
Andrey A. Chernov
c2ac03b44a Fix several dialog/terminal problems.
Add code to autodetect terminal entry, if TERM undefined
1994-10-18 18:45:49 +00:00
Paul Richards
2ca2c11464 Lates snapshot:
Re-organised files, moved bootcode routines into their own files.
Check return types of everything and pass error messages to
windows so we get good diagnostics.

Made start on stage 2 installation. Implemented a status file that
keeeps track of where we are in the installation process and allows
installation from media sequences.
1994-10-18 07:56:34 +00:00
Andrey A. Chernov
27e3c1f843 Remove machdep.color_display 1994-10-18 03:41:16 +00:00
Andrey A. Chernov
5a66307202 Document new machdep variables, pointed by Rod 1994-10-17 18:55:21 +00:00
Paul Richards
32a6f4e778 Fixed bug in exec code, cp -R now works.
Added code so sysinstall can run as init.
1994-10-17 07:13:13 +00:00
Paul Richards
8f091f9cf1 Remove a bogus BINDIR line 1994-10-16 06:17:03 +00:00
Paul Richards
db0f7eef49 Add DPADD for libraries. 1994-10-16 02:25:54 +00:00
Paul Richards
c83e0fb6db Add some missing libraries to LDADD 1994-10-16 00:04:42 +00:00
Paul Richards
2d5d3e2ca3 Added sysinstall 1994-10-15 14:37:30 +00:00
Paul Richards
cd56df5a1f Work in progress. 1994-10-15 14:34:49 +00:00
Gary Palmer
ea3a7da2c8 Move `ft' into machine-dependant section. 1994-10-15 00:08:57 +00:00
Andrey A. Chernov
b5df27e29f revision 1.6
date: 1994/03/06 08:55:02;  author: ache;  state: Exp;  lines: +4 -1
Stop count getty spacing problem, if we issue kill -1 1
----------------------------
revision 1.5
date: 1994/03/04 17:51:39;  author: ache;  state: Exp;  lines: +9 -2
I got a lot of
"getty repeating too quickly on port %s, sleeping"
from init.bsdi, it means that getty start and exit in five seconds.
This is common situation for poor quality Russian phone lines:
modem got CONNECT message and after retries got NO CARRIER.
So I introduce spacing count, it means that this warning and
sleep occurse only after GETTY_NSPACE times of sequental attempts.
----------------------------
revision 1.4
date: 1994/02/28 21:53:52;  author: ache;  state: Exp;  lines: +71 -10
I found (and fix) ugly bugs in init.bsdi (this bugs not present
in old init)

1) Init don't setup TERM environment variable for default terminal
type from /etc/ttys before calling getty/window.

2) When "kill -1 1" issued, init don't restart getty when
/etc/ttys parameters was changed (it only kill "off" end empty entries).

3) Small memory leak if "window" /etc/ttys parameter specified and
"kill -1 1" issued.

Obtained from: FreeBSD 1.x
1994-10-14 17:15:40 +00:00
Jordan K. Hubbard
288b78cdc3 Add ft.
Submitted by:	babb
1994-10-14 06:14:58 +00:00
Jordan K. Hubbard
3270fb5ece Put back the `:' in the trinary ?: so this can actually compile again! :) 1994-10-13 08:46:44 +00:00
Poul-Henning Kamp
72ab19aeb7 Added '-F file' option of mount_mfs. This allows me to make floppy images
without waiting for my floppy-drive all the time :-)  Might have other
interesting uses too.
1994-10-12 22:04:36 +00:00
David Greenman
3156bbb2d1 Backed out part of the last change that prevents the rpos table from
being output if <= 1 rpos; there is a bug in the kernel which doesn't
quite get along with this. Changed default #rpos to 1, and fixed up
manual page. Converted nrpos to 1 if user specifies 0.
1994-10-09 20:10:56 +00:00
Andrey A. Chernov
025dc82971 Modify adjkerntz to not write RTC clock per initial call,
suggested by Bruce
1994-10-04 19:15:13 +00:00
Gary Palmer
3e1d4f3258 Moce comcontrol, fdisk & mount_msdos out of machine-independance into
an I386 specific statement. Also add necessary code to allow
machine-dependance in this makefile

Reviewed by:	rgrimes
1994-10-02 03:38:08 +00:00
David Greenman
56499741c4 Fixed manpage to conform to current reality.
Submitted by:	Rod Grimes, with additional sentence by me.
1994-10-01 20:00:28 +00:00
David Greenman
7ce005d7c1 1) If nrpos <= 1, don't output rpos table (and set fs_cpc to 0) - disabling
the use of the rotational position table.
2) Allow specification of 0 rotational positions (disables function).
3) Make rotdelay=0 and nrpos=0 by default.

   The purpose of the above is to optimize for modern SCSI (and IDE) drives
that do read-ahead/write-behind.
1994-10-01 16:56:22 +00:00
David Greenman
9eb98cece8 Corrected message when no rotational position table is found. 1994-10-01 16:53:53 +00:00
Paul Traina
109f505bfb Router Discovery from Sun Microsystems 1994-09-30 21:16:09 +00:00
Paul Traina
bafea7d8a3 Router discovery code - Courtesy Sun Microsystems 1994-09-30 20:47:35 +00:00
Andrey A. Chernov
0fd4e043f4 Add code to skip "userquota"/"groupquota" options needed for
quotaon/quotacheck
1994-09-29 16:39:26 +00:00
Paul Traina
13e0abcba7 disklabel will dump core if you give it too few numbers to process
Obtained from: NetBSD misc/490 - John Kohl
1994-09-26 04:45:11 +00:00
Garrett Wollman
9e7b894ffe Fix one more _PATH_UNIX. 1994-09-24 03:18:32 +00:00
Garrett Wollman
4be4929c2b Get rid of _PATH_UNIX completely; use getbootfile(3) instead.
DANGER WILL ROBINSON!
_PATH_UNIX is currently defined as the literal string "don't use this".
I am of two minds about this myself, but wanted to get something into the
tree as quickly as possible.
1994-09-24 00:08:43 +00:00
Garrett Wollman
8e3847b2b9 Document more MIB variables. 1994-09-23 19:04:02 +00:00
Garrett Wollman
9d1275ccf4 Add two new flags:
-q just shut up, will you?!
	-u unlink output file after successful load
1994-09-22 22:35:53 +00:00
Garrett Wollman
d599144d24 Automatically load NFS and a bevy of other filesystems. 1994-09-22 22:17:02 +00:00
Garrett Wollman
fed2752194 Automatically load filesystem if not present in system and loadable. 1994-09-22 02:15:34 +00:00
Garrett Wollman
c974f9c6a6 Use getvfs* functions to map between VFS types and names.
Automatically load UFS if it is not present but is loadable.
(This won't happen now, but could happen if we fix NFS diskless support.)
1994-09-22 02:07:33 +00:00
Andrey A. Chernov
736c101eaf Correction for new sysctl interface 1994-09-19 23:18:41 +00:00
Andrey A. Chernov
bb84bd5c6b rewritted to use sysctl, no more /var/run/.adjkerntz now 1994-09-19 23:09:34 +00:00
Doug Rabson
541758b1c6 Added support for MSDOS file systems. 1994-09-19 18:47:12 +00:00
Doug Rabson
5cb2bca1a3 Added mount_msdos.
Obtained from: NetBSD
1994-09-19 15:30:36 +00:00
Andrey A. Chernov
0a7f0f3504 bugfix: change gidset[] type from int to gid_t 1994-09-19 13:52:38 +00:00
David Greenman
f3932b979d Various fixes:
modload doesn't honor it's -p argument.

It also will destroy the input file when you don't specify an output
symbol file with -o.

Submitted by:	John Kohl
1994-09-18 04:12:13 +00:00
Garrett Wollman
0eec3684ff Per discussion on the mailing-lists, move LKMs from /sbin to /lkm, and
arrange for that directory to get created by mtree.  Also, process secure
directory after all the others, because the programs there may overlay
ones installed from the main part of the tree.
1994-09-16 20:24:29 +00:00
Bruce Evans
b60eb39594 Don't exit early if the device is not character special or if the
device driver cannot supply a label (real or faked).  This allows
you to practice using fdisk on disposable media (e.g., "dd count=1
<dev/zero >/tmp/junk; fdisk /tmp/junk", "dd count=1 </etc/passwd
>/tmp/fix-up-the-mess; fdisk /tmp/fix-up-the-mess") and allows me
to test DOSpartitioning and labelling on floppies.
1994-09-15 20:19:51 +00:00
Paul Traina
57f30b48dc Missing 'break' after setting interface route flag was causing interface
routes to not be properly marked as static.
1994-09-15 08:35:37 +00:00
Poul-Henning Kamp
66e5de4524 Fixed a bug where mount_nfs would core-dump if used with IP# directly.
Also moved some KERBEROS related stuff inside the #ifdef.

Should we always try to do a reverse lookup (IP#->name) ?
It has som merit, but is probably against the tradition or huh ?
1994-09-15 02:06:59 +00:00
Garrett Wollman
28d8923ed0 Add ip_mroute_mod, if NOLKM is not defined. 1994-09-14 22:23:47 +00:00
Garrett Wollman
49fbf8ddcf Makefile to generate the ip_mroute_mod.o LKM. After talking this over
with DavidG, I've come to the conclusion that unless and until we define
a new directory to put these things in, /sbin is the right place.
(OSF/1 does a lot worse for non-executables in /sbin...).
1994-09-14 22:11:51 +00:00
David Greenman
a68dd6cb87 Fixed slattach to do flags ioctl via network device rather than tty.
Submitted by:	Rich Murphey, and fixed up by me.
1994-09-14 05:40:56 +00:00
Jordan K. Hubbard
7df428cb21 Add fdisk to SUBDIR. 1994-09-13 05:32:20 +00:00
David Greenman
304b4edbac Woops, last patch was by Wolfgang Solfrank. 1994-09-09 11:16:03 +00:00
David Greenman
9fef312289 Two fixes from the NetBSD group (Charles Hannum):
1) dir.c: get byte order right in mkentry()
2) pass1.c: When doing -c2 conversion, do secsize reads for a symlink -
   not doing so was causing the conversion to fail because the device
   driver can't deal with short reads.
1994-09-09 11:06:27 +00:00
Paul Traina
a7ab72edf1 Fix endian bug introduced at Berkeley during the Net2->4.4-lite transition.
Fix is courtesy of the NetBSD folks.

Reviewed by:	pst
1994-09-08 01:06:46 +00:00
David Greenman
6052587146 Get rid of the need for the readonly mandatory option - set readonly
flags regardless of whether the user specified it.
1994-09-07 15:07:43 +00:00
Bruce Evans
127af73461 Fix punctuation. 1994-09-05 13:54:02 +00:00
Jordan K. Hubbard
db8ad19dab What cretin named both a global and a function "reboot"? Global
changed to Reboot.
Submitted by:	jkh
1994-08-28 10:00:49 +00:00
Nate Williams
e460cfd33f Bring in my changes from the 1.1 init.bsdi which causes a reboot (was a
halt before)  if init is sent an interrupt signal.  This is necessary
for <CTL><ALT><DEL> to do the right thing if enabled.
1994-08-27 21:32:01 +00:00
David Greenman
559c1aff1f Added comcontrol ...this thing *really* should be renamed. 1994-08-26 16:30:55 +00:00
David Greenman
cf8181ddff Set fs_clean. 1994-08-26 10:41:13 +00:00
Rich Murphey
97605525f5 Once again, slattach sources ported from 1.1.5 with fixes.
Reviewed by:	davidg, bde
Submitted by:	rich
1994-08-23 08:28:32 +00:00
Rich Murphey
76a4cb22c6 Slattach ported from 1.1.5 plus Bruce Evans suggested fix (close
FDs and fork before redialing) to prevent dialer from hanging with
newer sio.c.

Also moved history from the source to the cvs log (here) per
David G's suggestion.

This compiles but needs testing now...  Rich

/*
 * Hacks to support "-a|c|n" flags on the command line which enable VJ
 * header compresion and disable ICMP.
 * If this is good all rights go to B & L Jolitz, otherwise send your
 * comments to Reagan (/dev/null).
 *
 * nerd@percival.rain.com (Michael Galassi) 92.09.03
 *
 * Hacked to change from sgtty to POSIX termio style serial line control
 * and added flag to enable cts/rts style flow control.
 *
 * blymn@awadi.com.au (Brett Lymn) 93.04.04
 *
 * Put slattach in it's own process group so it can't be killed
 * accidentally. Close the connection on SIGHUP and SIGINT. Write a
 * syslog entry upon opening and closing the connection.  Rich Murphey
 * and Brad Huntting.
 *
 * Add '-r command' option: runs 'command' upon recieving SIGHUP
 * resulting from loss of carrier.  Log any errors after forking.
 * Rich 8/13/93
 *
 * This version of slattach includes many changes by David Greenman, Brian
 * Smith, Chris Bradley, and me (Michael Galassi).  None of them are
 * represented as functional anywhere outside of RAINet though they do work
 * for us.  Documentation is limited to the usage message for now.  If you
 * make improovments please pass them back.
 *
 * Added '-u UCMD' which runs 'UCMD <old> <new>' whenever the slip
 * unit number changes where <old> and <new> are the old and new unit
 * numbers, respectively.  Also added the '-z' option which forces
 * invocation of the redial command (-r CMD) upon startup regardless
 * of whether the com driver claims (sometimes mistakenly) that
 * carrier is present. Also added '-e ECMD' which runs ECMD before
 * exiting.
 *
 * marc@escargot.rain.com (Marc Frajola) 93/09/10
 *
 * Minor fixes to allow passive SLIP links to work (connections with
 * modem control that do not have an associated dial command). Added
 * code to re-check for carrier after dial command has been executed.
 * Added SIGTERM handler to properly handle normal kill signals. Fixed
 * bug in logic that caused message about no -u command to be logged
 * even when -u was specified and the sl number changes. Tried to get
 * rid of redundant syslog()'s to minimize console log output. Improved
 * logging of improper command line options or number of command
 * arguments. Removed spurious newline characters from syslog() calls.
 *
 * gjung@gjbsd.franken.de
 *
 * sighup_handler changed to set CLOCAL before running redial_cmd.
 * added flag exiting, so exit_handler is not run twice.  Fork
 * before reopening tty.
 */
1994-08-23 08:07:17 +00:00
David Greenman
40eaff5d0f Nuked the 2 second DTR wait; this is handled correctly in the sio driver. 1994-08-23 04:42:45 +00:00
Andrey A. Chernov
abd0d5ab96 adjkerntz added 1994-08-22 20:21:31 +00:00
David Greenman
802cd8e6f0 Better support for clean bit: prompt the user to fix it if it's wrong
when not preening, and indicate if it was fixed when preening.
1994-08-21 08:47:10 +00:00
David Greenman
7f4b19d683 Install aliases "fasthalt" and "fastboot" for halt and boot respectively.
This is for "backwards compatibility". Documented these aliases in the
manual page.
1994-08-21 05:48:34 +00:00
David Greenman
6818438323 fastboot is no longer - don't install it. 1994-08-21 04:57:00 +00:00
David Greenman
31fdf44c2c Added a "clean" field to the output - to show the state of the clean flag. 1994-08-20 16:57:45 +00:00
David Greenman
41cee58cd8 Added filesystem clean bit support. This only affects fsck during a
preen (-p), and in that case the filesystem is skipped if it is clean.
A new flag "-f" for 'force' has been added which basically gives back
the old behavior of checking all the filesystems all the time. This
very closely models the behavior of SunOS and Ultrix.
1994-08-20 16:56:36 +00:00
David Greenman
889cd5f26e Killed explicit OS specification. 1994-08-19 13:40:41 +00:00
David Greenman
fa7844fed9 Kill explicit OS specification. 1994-08-19 13:39:20 +00:00
David Greenman
97f9baabfa NetBSD -> FreeBSD 1994-08-19 13:29:23 +00:00
David Greenman
645637cf3f netbsd -> kernel, NetBSD -> FreeBSD 1994-08-19 13:28:21 +00:00
David Greenman
eeabb58ec9 Terry Lambert's loadable kernel module support - modload & modunload
utilities w/improvements from the NetBSD group.
1994-08-19 12:07:23 +00:00
Garrett Wollman
053b68b9ae `init' needs crypt() for insecure consoles. 1994-08-15 02:45:37 +00:00
Jordan K. Hubbard
0a1c887538 Make keywords.h get properly built.
Submitted by:	jkh
1994-08-14 06:57:34 +00:00
David Greenman
6aab3b5a6d Use nulls to pad proctitle rather than spaces...makes ps(1) output more
readable.
1994-08-11 13:40:58 +00:00
Garrett Wollman
ebe06549fd Suppress irritating extra newline after kern.boottime. 1994-08-08 15:37:35 +00:00
David Greenman
4db32b036d Added support for setting the per-interface MTU. 1994-08-08 10:45:06 +00:00
Garrett Wollman
76c72a54c2 Delete obsolete references to librpc.a. 1994-08-08 00:09:22 +00:00
Garrett Wollman
84e59eb50d Get rid of update. Make man page installation work with our scheme
(and rename a few in the process).
1994-08-05 16:31:05 +00:00
David Greenman
d410b6f150 Changed output formatting to accurately represent the precision. 1994-08-05 10:34:19 +00:00
David Greenman
b3bfc7199e Converted 'vmunix' to 'kernel'. 1994-08-05 09:14:37 +00:00
Garrett Wollman
404c1a5fc1 Convert to our man installation style. Also fixed long-standing bug
in `fastboot'/`fasthalt' in which the interpreter would hang around
after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
1994-08-05 02:42:42 +00:00
David Greenman
3aa3bb33c4 Fixed so that it can grok old style "fastlinks". 1994-08-02 12:54:27 +00:00
David Greenman
87006abef6 Don't call getmntopts with a null pointer as an option string; it'll
dereference it. Pass optarg from getopts as it should have been done.
This bug caused mount_cd9660 to segfault whenever -o was used.
1994-08-02 11:45:43 +00:00
David Greenman
e05db2e2a5 Fixed NULL pointer dereference that occured when any options were
specified.
1994-08-02 11:42:10 +00:00
Jordan K. Hubbard
7fd50c04de Update this to the latest version from Steve Gerakines. This is an easy
drop-in for me and looks substantailly neater than the previous version,
so I'll give the floppy tape users a break (but just this once :).
1994-06-22 04:49:04 +00:00
Rich Murphey
699e1b82fb Changes from Paul Kranenburg which bring us into sync with his sources:
handling of errors through the standard err() and warn()
 more fixes for Geoff Rehmet's NULL pointer bug.
 fixes NULL pointer bugs when linking mono and nested X servers.
 supports a `-nostdlib' option.
 accept object files without a symbol table
 don't attempt dynamic linking when `-A' is given

a few variable names have chaged (desc -> fd), and the formatting has
changed which should make it much easier to track his sources.

I tested 'make world' for /usr/src and X twice with these changes.
1994-06-15 22:41:19 +00:00
Andreas Schulz
d74bf59046 Commented out a pointer to qtar(1), we don't have that yet.
Changed the -description in the SYNOPSIS to description.
1994-06-07 21:38:23 +00:00
Andreas Schulz
91b1841dd2 Add the -r and -s flags to the Usage string. 1994-06-05 19:04:11 +00:00
Andrey A. Chernov
32b6b31c1e From Bde:
o Rewrote lots of it to be more like stty.1.  The old one was
	  too verbose and the complicated options no longer exist.
1994-05-30 03:50:01 +00:00
Andrey A. Chernov
123e9a592b From Bde:
o Removed bidir options.
1994-05-30 03:49:16 +00:00
Rodney W. Grimes
9f5cdc1599 I know better than to edit files on freefall, next time take a patch file.
Change vm_paramh. to vm_param.h
1994-05-28 16:21:59 +00:00
Rodney W. Grimes
1e0b7c1862 Remove old style manual page depends so make install with NOMAN set
can run.
1994-05-28 06:29:36 +00:00
Rodney W. Grimes
3491fdaeb0 Disable afterinstall: for manual pages until the manual page fix patch
comes in.
1994-05-28 06:27:25 +00:00
Rodney W. Grimes
3ef6a10b70 Remove stuff for building manual pages the old way. 1994-05-28 06:25:34 +00:00
Rodney W. Grimes
b0358078ab Comment out missing programs fsdb icheck and ncheck.
Comment out porting work needed program scsiformat.
Remove XNSrouted and routed as they have been moved to usr.sbin.
Reviewed by:
Submitted by:
1994-05-28 06:24:51 +00:00
Rodney W. Grimes
c33d416724 Must now include vm/vm.h and vm/vm_param.h due to the way we define KERNBASE.
Reviewed by:	David Greenman
1994-05-28 04:15:16 +00:00
Rodney W. Grimes
057254b189 Don't build /sbin shared. 1994-05-28 03:56:49 +00:00
Rodney W. Grimes
8fae3551ec BSD 4.4 Lite sbin Sources
Note:  XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.
1994-05-26 06:35:07 +00:00
Rodney W. Grimes
dea673e932 BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00
Jordan K. Hubbard
b4b08b2982 Latest error correction code from Steve Gerakines 1994-05-20 10:09:46 +00:00
Andrey A. Chernov
49afd99659 FILES entry corrected 1994-05-03 18:50:13 +00:00
Jordan K. Hubbard
2caac73e76 Fix gross spelling and typographical errors pointed out by Keith Bostic. 1994-04-24 01:22:07 +00:00
Andreas Schulz
8b395a3055 Better link ldconfig static instead dynamic. 1994-04-13 20:49:42 +00:00
Andreas Schulz
1cc30df665 Add that /usr/X386/lib is also in the default path for ldconfig. Bug found
by Satoshi Asami ( asami@cs.berkeley.edu ). Fixed also a minor typo
problem.
1994-04-05 08:24:19 +00:00
Jordan K. Hubbard
09e3d49d92 This is Paul K's latest set of ld changes. A commit was necessary at this
late stage due to the fact that link.h was copyright Sun Microsystems.

This version of ld sync's us up with NetBSD's ld and supports compatablily
with NetBSD's -[zZ] flags (which we had reversed).  Compiling with this
new ld will give you RRS warnings for libraries which do not contain .type
infomation - these wsarnings are harmless and will go away as soon as you
recompile your libraries (cd /usr/src; make libraries).
1994-02-13 20:43:13 +00:00
Nate Williams
9859e2cc85 Changed NetBSD -> FreeBSD 1994-02-11 12:12:51 +00:00
Rodney W. Grimes
774ade4da5 Manual is in section 8, you MUST say MAN8= for this to work. Add $Id$ 1994-02-07 08:40:16 +00:00
Andrew Moore
6dac698341 import floppy tape controller 1994-02-07 04:36:09 +00:00
Andrey A. Chernov
46ed4d4f41 Cosmetique patch from bde 1994-02-05 11:42:48 +00:00
Andrey A. Chernov
0b2318d843 Fix sign of offset diff.
Use Bruce initial/final hour scheme to avoid critical hours.
1993-12-20 01:53:27 +00:00
Nate Williams
0bb118a5b1 Fixed Makefile per bug report from Julian Stacey. There was an extra DESTDIR
in front of BINDIR definition.
1993-12-16 21:51:27 +00:00
Andrey A. Chernov
3e714780be Attempt to import adjkerntz... 1993-12-16 18:44:40 +00:00
Andrey A. Chernov
68a21a4b38 Change default dtrwait time to 2 seconds. 1993-12-16 04:40:45 +00:00
Andrey A. Chernov
875d6b8f31 Man page added. 1993-12-10 19:27:16 +00:00
Andrey A. Chernov
9bfbbf452b Modified for work without options COM_BIDIR into kernel. 1993-12-10 19:26:20 +00:00
Andrey A. Chernov
cc4ca26313 Add 'dtrwait <n>' option to comcontrol to handle
TIOCM[SG]DTRWAIT ioctl.
1993-12-10 01:08:47 +00:00
Jordan K. Hubbard
52c4ca7af3 Many recent fixes from Paul K, add support for chaining of shared lib deps. 1993-11-30 20:47:54 +00:00
Paul Richards
f1a0d2dfc6 Cahnged ldconfig.0 to ldconfig.8 for our man system. 1993-11-09 20:39:46 +00:00
Paul Richards
3923b0019c Updated to newest ld from pk.
lib.c:
Pull in archives containing definitions needed by shared objects.
warnings.c:
Less spurious "undefined symbol" msgs for shared library defined
symbols.
ld.c:
Do a better job of recognising data in text segments, eg. `const char []'.
shlib.c,ld/rtld/{Makefile rtld.c}
Use strsep() in stead of strtok() and restore colons in eg. env. vars.
1993-11-09 04:19:36 +00:00
Paul Richards
d58b98d018 Changed ldconfig.0 to ldconfig.8 for our man setup. 1993-11-06 23:15:53 +00:00
Paul Richards
b9ae52e32a Imported NetBSD's ld for shared libs. 1993-11-03 23:41:59 +00:00
Rodney W. Grimes
0ef0620351 The fdisk man page doesn't show correctly the usage possibilities of
fdisk.  It was missing the disk argument.

From: Andreas Schulz <ats@g386bsd.first.gmd.de>
1993-08-10 10:31:35 +00:00
Charlie Root
24cd262d1a New manual page system 1993-07-02 06:10:31 +00:00
Rodney W. Grimes
5b81b6b301 Initial import, 0.1 + pk 0.2.4-B1 1993-06-12 14:58:17 +00:00