Commit Graph

614 Commits

Author SHA1 Message Date
adam
51288172f5 oops, do it right this time 1996-01-03 11:48:14 +00:00
adam
940609fc3c Link with libutil for kerberos too 1996-01-03 11:37:46 +00:00
wollman
a87673dee1 Clean up GCC warnings, condition out some compatibility cruft, add $Id$.
Pointed-out-by: jmb
1996-01-02 20:09:22 +00:00
peter
7c92c06f2f 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
f05e83348d 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
444e6307f6 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
6470cdf2a0 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
639da796bd recording cvs-1.6 file death 1995-12-30 19:02:48 +00:00
asami
5f452dab59 Added $Id$. 1995-12-28 00:22:45 +00:00
asami
64f27c838b Make it work for FreeBSD-2.1. 1995-12-27 10:57:20 +00:00
asami
33053083c1 This commit was generated by cvs2svn to compensate for changes in r13049,
which included commits to RCS files with non-trunk default branches.
1995-12-27 10:56:35 +00:00
asami
d296466eaa Makefile. 1995-12-27 10:56:35 +00:00
asami
884372c628 This commit was generated by cvs2svn to compensate for changes in r13047,
which included commits to RCS files with non-trunk default branches.
1995-12-27 10:55:32 +00:00
asami
15c061b3b7 Oops, forgot pathnames.h. 1995-12-27 10:55:32 +00:00
asami
1440ca4ea7 ccdcontrol from NetBSD-1.1. Note it was called "ccdconfig" originally. 1995-12-27 10:51:05 +00:00
asami
9175f084ed This commit was generated by cvs2svn to compensate for changes in r13044,
which included commits to RCS files with non-trunk default branches.
1995-12-27 10:51:05 +00:00
joerg
903ce794e1 Put the superfluous "DUMP:" back in the statistics line, to make
Amanda happy.
1995-12-23 11:53:56 +00:00
phk
a016c070a0 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
ee14c4040a 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
87ebc1900e 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
wollman
d5b85f5a42 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
4ba617f4ec Make the default tape device match dump(8). 1995-11-26 16:57:37 +00:00
peter
80e5e334ab Connect fsdb to /sbin makefile... 1995-11-24 23:17:58 +00:00
peter
beac820824 Adjust relative paths in Makefile to ../sbin/fsck and ../../sys/ufs/ffs 1995-11-24 23:12:00 +00:00
joerg
73a49ee404 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
e6424f8486 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
phk
c809fe36ec Make sysctl compile again by removing all the debug stuff. 1995-11-17 16:28:42 +00:00
dima
489fa148a1 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
dyson
39a4ae4e50 Mount program for EXT2FS.
Submitted by:	Godmar Back <gback@facility.cs.utah.edu>
1995-11-06 02:21:35 +00:00
peter
b4cc242d70 Commit FreeBSD-specific changes. Mainly to do with structure layout
differences that we dont have.
1995-11-03 22:47:24 +00:00
peter
758c1e5534 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
b1533b5682 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
phk
5e807c6843 Define TRUE & FALSE rather than depending on bogus #includes. 1995-10-29 09:44:09 +00:00
peter
1661708e0b 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
dbe3d2d7bb 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
30adb1a95c 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
torstenb
6abc0d4f88 fix a reference in "SEE ALSO" (modunload(8) mistakenly references
itself instead of modload(8))
1995-10-26 21:44:11 +00:00
julian
7bb47639e6 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
9c5f39d0bd 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
6e40bcee46 Convert to proper English in the same manner as the sliplogin manpage. 1995-10-26 05:13:54 +00:00
jkh
74fbf4d892 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
ache
83916c7f7c Remove unneeded ctype.h 1995-10-23 23:50:20 +00:00
ache
d461006ff1 Add setlocale LC_CTYPE 1995-10-23 23:36:55 +00:00
ugen
78211a2788 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
1b96f5c394 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
jkh
9cc3a83e55 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
bde
40da5d871c Fix $Id$. 1995-10-03 15:11:11 +00:00
julian
b53b3455f6 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
093c97db6f 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
markm
24ad7abb57 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
markm
068840c124 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
markm
046f7970c6 Define CRYPTOBJDIR if secure is being built 1995-10-01 15:04:42 +00:00
peter
b064aa5c4e 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
71abf37b12 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
ache
5a0a2c77ef Build secure init if available and allowed 1995-09-29 19:35:10 +00:00
ache
d7856aec57 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
ache
079584f6ab Rename PATH_LOCK to PATH_UUCPLOCK 1995-09-23 15:17:32 +00:00
ache
4822c15f35 Use new _PATH_LOCK for lock names 1995-09-20 13:10:50 +00:00
ache
927344f5b9 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
ache
42a2c13fa4 Make uucp-lock optional: -L option 1995-09-20 04:56:09 +00:00
ache
b8bf7585cc Make uucp-locking optional: -L option 1995-09-20 04:53:08 +00:00
ache
21374f84f8 Unlock device for redial_cmd, then lock again 1995-09-19 09:07:51 +00:00
ache
8e65a4a26a Fix uucp locking
Remove unnecesary TIOCSETD
Move SLIO* before startup script call
1995-09-19 03:37:07 +00:00
ache
ab8760f34c Implement uucp-locking
Cleanup debug/syslog code
1995-09-19 03:27:31 +00:00
ache
5f37f30705 Change new -U option to -S to go the same way as startslip. 1995-09-18 14:06:38 +00:00
ache
50037f95a4 New option: -S #: set SLIP unit number 1995-09-18 14:01:11 +00:00
ache
276727671d 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
ache
7a75e736ec 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
a7ed90f4a1 Turn on scsiformat.
reformat.
1995-09-17 12:52:24 +00:00
joerg
773513601d 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
dg
bb8834ca72 Shorten a variable name. 1995-09-17 09:54:05 +00:00
dg
d9e7e9e677 Use default COPTS. 1995-09-17 06:57:43 +00:00
ache
bf5cfb0fdd Use daemon() instead of fork/setsid/close.
Rearrange things to do fork as later as possible.
1995-09-16 05:18:20 +00:00
ache
e0aca6a75a Oops. Fix my error with -W option 1995-09-15 22:18:45 +00:00
ache
58c05ab78e Close line before fork, or becomes close twice.
Debug output cleanup.
1995-09-15 20:34:55 +00:00
ache
0b58a09f99 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
ache
99da8a3357 Restore TTYDISC on exit. Move setting of control terminal
after TTYDISC setting
1995-09-15 17:30:03 +00:00
ache
cb15b87ecb Wait until login completed before starting SLIP (5 secs) 1995-09-15 17:08:42 +00:00
ache
a4e325fd3d 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
ache
2ebffcb5e4 Add reference to /usr/share/examples/startslip 1995-09-14 23:57:58 +00:00
ache
6453afb3c4 Add example scripts 1995-09-14 22:37:50 +00:00
ache
356853fa47 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
ache
86a84c2b06 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
9cb8de8984 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
dg
3367be73d6 Fixed error in maxcontig calculation that caused it to default to "1". 1995-09-08 13:52:55 +00:00
joerg
566ee332c0 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
2eb61626f7 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
gpalmer
d1234eaa5a 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
ache
b49d8d3e4a Remove -O2 from COPTS, known rogue 1995-08-29 14:04:39 +00:00
dg
af42ac5fa4 Document the -a option, and mention ``noauto''. 1995-08-26 06:06:15 +00:00
dg
ef1b2c7aa4 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
jkh
8861c6a11f Sigh. This isn't my night. I forgot the manpage updates too!
Thanks, Andrey.
1995-08-23 14:14:32 +00:00
jkh
ca10bb107e 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
gpalmer
5350875f41 Add $Id$ 1995-08-22 00:38:02 +00:00
joerg
4dbda07ff7 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
8cda7e312a Add (apparently) Larry McVoy's warning.... 1995-08-12 15:49:12 +00:00
mpp
b8ba6867b8 Fix init to correctly detect processes that are exiting multiple
times per second.
1995-08-08 06:49:59 +00:00
ache
289e8636c8 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
wollman
01cdce9796 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
wpaul
cefe517cb0 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