Commit graph

2322 commits

Author SHA1 Message Date
Joerg Wunsch f0b48d9876 Round #1 of cleaning up the config(8) mess. This is only the more
conservative part of the tidyup, like fixing potential buffer overflow
conditions.  It is believed to be safe to go into 2.2.

Pointed out by:	lozenko@cc.acnit.ac.ru (Evgeny A. Lozenko)
1996-12-14 19:44:13 +00:00
Jordan K. Hubbard d17f0c47d4 Fix some very minor cosmetic cruft I couldn't help tweaking when
I went over the code.

Add shortcuts for addUser and addGroup, documenting same.

Add a password field for adduser and use no-echo string field for it.
This requires my latest libdialog changes (in RELENG_2_2 or -current) to work.
1996-12-14 16:24:01 +00:00
Stefan Eßer 2640db5095 Remove reference to unused variable ncr.ns_async. 1996-12-14 12:53:30 +00:00
Bruce Evans c08d58eade Moved nonstandard compiler profiling options out of config. Just print
the profiling level in config and decide what to do in makefiles.

Makefile.i386:
Align functions to 16-byte boundaries if profiling is enabled.  This
will allow a fourfold reduction in the size of the profiling buffers.
1996-12-13 12:46:28 +00:00
Jordan K. Hubbard af3bab3687 700 now. :) 1996-12-12 23:12:44 +00:00
Jordan K. Hubbard 177baf1802 Fix trunctation of domainname. 1996-12-12 22:44:22 +00:00
Jordan K. Hubbard 3cd31ab739 Add some additional smarts for XFree86 configuration.
Fix a bogon I thought I fixed in the last commit.
1996-12-12 22:38:41 +00:00
Jordan K. Hubbard 40e60c63b3 Update these docs to more closely reflect reality. 1996-12-12 20:03:35 +00:00
Jordan K. Hubbard 6258ab4afc smart-alec error checking. 1996-12-12 16:55:37 +00:00
Jordan K. Hubbard a9f484e520 The infamous IP aliasing code for ppp, modified to work as a runtime option
(otherwise ppp's behavior remains unchanged) and documented by myself,
Steve Sims, Nate Williams, Martin Renters and god-only-knows who else. :-)
Submitted by:	nate
Obtained from:	Charles Mott <cmott@srv.net>
1996-12-12 14:39:47 +00:00
Jordan K. Hubbard a674766556 Whups, remove relic from close method going away. 1996-12-12 08:36:25 +00:00
Jordan K. Hubbard 0da9521b5a Undo one of my memory optimization hacks - it actually made things more
complicated.
1996-12-12 08:33:38 +00:00
Jordan K. Hubbard d62f165304 Fix some bogons in my close() handling. 1996-12-12 08:23:51 +00:00
Jordan K. Hubbard 0a0e709620 Cosmetic tweaks, initialize a few variables, fix a reversed conditional. 1996-12-11 19:35:26 +00:00
Jordan K. Hubbard 86767547be Be more efficient in how we use memory (stumbled across while looking for
something else) for attributes and variables.

Remove stack-stomper in sstrncpy().
1996-12-11 18:23:19 +00:00
Joerg Wunsch 669d204645 Update from David, reflecting Wolfram's wishes regarding limitation of
the allowable character set.

Submitted by:	David Nugent
1996-12-11 15:10:47 +00:00
Jordan K. Hubbard 0fd6d431cf Do a few things I've been threatening to do for a long time:
1. Don't use the MSDOSFS code for accessing FreeBSD distribution data.
   Use Robert Nordier's stand-alone DOS I/O library for the purpose.
   It this works as well as Robert says it does, it should drastically reduce
   (or even eliminate) our "I can't install from my DOS partition!" calls.

2. As a result of the above, go to stdio file descriptors for all
   media types.

3. Taking advantage of #2, start using libftpio for FTP transfers instead
   of maintaining our own parallel version of the FTP transfer code.
   Yay!  I ripped something out for a change!

#1 Submitted-By: Robert Nordier <rnordier@iafrica.com>
1996-12-11 09:35:06 +00:00
Joerg Wunsch db34a7105c Merg-o-matic. 1996-12-11 00:07:19 +00:00
Joerg Wunsch ad7cf975be Copyright update by the author, to be more in line with our sample
copyright.

Submitted by:	David Nugent
1996-12-10 23:59:04 +00:00
Peter Wemm 5bb4699e9c Revert part of the previous change. syslogd (when logging to ttys)
has always held an open file descriptor.  This allowed logging to
spare virtual consoles and being able to switch to them.

My previous change removed this since all writes were done with ttymsg()
which opens it's own fd, and hence syslogd didn't need it's own fd to
send messages on... but this caused an unexpected behavior change.

This should close PR#2176
1996-12-10 17:52:23 +00:00
Garrett Wollman 628d2ac1b0 Fix up programs which expect <net/if.h> to include <sys/time.h> to instead
do it themselves.  (Some of these programs actually depended on this
beyond compiling the definition of struct ifinfo!)  Also fix up some
other #include messes while we're at it.
1996-12-10 17:11:53 +00:00
Joerg Wunsch c381383f32 Update to benefit from David's recent changes to pw(8). The most
obvious effects are that most of the automagically chosen defaults
will now be displayed while going through the menu, and an improved
error handling thanks to the more detailed error status reporting.

2.2 fodder, but i'll leave it to Jordan's review.
1996-12-10 02:16:06 +00:00
Joerg Wunsch 9fd0dafc15 Merge from the vendor-branch. 1996-12-10 00:21:28 +00:00
Joerg Wunsch 48aee7f33a Upgrade from the author, reflecting all my wishes resulting out of the
sysinstall use of this tool (plus some bug fixes).

2.2 candidate...

Submitted by:	David Nugent <davidn@nserver.usn.blaze.net.au>
1996-12-09 23:55:27 +00:00
Mike Pritchard 053375e81b Minor spelling/mdoc/style fixes. 1996-12-09 16:44:13 +00:00
Jordan K. Hubbard a4ba0988d9 Set timeout interval to 0 in ppp so connections don't hang up while
we're doing something lengthy with the disk.
1996-12-09 15:16:36 +00:00
Jordan K. Hubbard 1b62258da5 Add pw to build list - I need it now. :) 1996-12-09 14:53:36 +00:00
Joerg Wunsch b0b4f32a68 Slightly improve the wording of a ``not yet there'' message. 1996-12-09 14:08:26 +00:00
Joerg Wunsch d6f907dc7a pw(8) -- a backend utility to manage the user and group databases.
sysinstall's new User&group menu will use it, hence it's a 2.2
candidate despite of providing new functionality.

Submitted by:	David L. Nugent, <davidn@blaze.net.au>
1996-12-09 14:05:35 +00:00
Jordan K. Hubbard 00b69db338 As Paul has just pointed out, much of my strncpy() usage was either
bogus or overly complex and really needed to be done more consistently
and sanely throughout - no question about it.  Done.

Suggested-By: Paul Traina <pst@Shockwave.COM>
1996-12-09 08:22:19 +00:00
Mike Pritchard 256835f230 Minor formatting/style fixes.
Submitted by:	Sandro Sigala <sandro@cat.local.net> as part of PR# 2134
1996-12-09 08:04:55 +00:00
Mike Pritchard 9e9e968a54 Convert to mdoc format.
Submitted by:	Sandro Sigala <sandro@cat.local.net> as part of PR# 2134
1996-12-09 07:20:41 +00:00
Jordan K. Hubbard 3f266859a3 Whups, missed two strcpy()s. 1996-12-09 06:45:03 +00:00
Jordan K. Hubbard 5153026dfc Eliminate great evil in the networking code. That's all I'm gonna say. 1996-12-09 06:37:46 +00:00
Jordan K. Hubbard 325403f959 Add Joerg's user management screen for David Nugent's pw(8) program, something
which will also need to be brought in before this screen will work.

Add some commentary about how the slip startup code is bogus.

Steal Joerg's loop for more properly closing all files and graft it into
the EHS startup.  My loop was functional but more bogus.
1996-12-09 06:02:36 +00:00
Jordan K. Hubbard ba5555f0e6 Several areas of improvement:
o Incorporate some of Tatsumi's bug fixes.
	o Remove the xperimnt and commerce distribution items; they haven't
	  been actual distributions for awhile.
	o Try to sanitize the device checking code a little more.
	o Cosmetic work on the network code.
1996-12-08 12:27:58 +00:00
Andrey A. Chernov 2f71230e78 Expand username limit to 16 1996-12-07 21:25:12 +00:00
Peter Wemm e8fce182a6 Update this to what freefall's been running for a day or so. 1996-12-06 11:29:15 +00:00
Nate Williams 680026d67a Added my 'ddial' patches to user-PPP. The new mode tries it's darndest
to keep the link up, so it re-dials whenever it detects the link go
down.  This is useful for 'dedicated' links who use PPP.

It's been used for over a year w/out problems at different sites.
1996-12-03 21:38:52 +00:00
Peter Wemm 691ca30fca Remove file that we don't have any way of using. We don't have the other
Makefiles for other OS's in our tree that this uses when not using bmake.
1996-12-03 06:21:49 +00:00
Peter Wemm 5d72136fb8 Remove file no longer shipped with sendmail 1996-12-03 06:20:18 +00:00
Peter Wemm 91e5dab34f Remove defunct files that are no longer shipped (and don't work with this
version of sendmail any more)
1996-12-03 06:19:51 +00:00
Peter Wemm dc5a26cc5c Back out rev 1.6, it's in the official source now (a few lines up) 1996-12-03 06:18:11 +00:00
Peter Wemm 589790e627 Merge 8.8.3->8.8.4 changes onto our mainline where we've edited the
file at some point in the past.

Obtained from: Eric Allman <eric@sendmail.org>
1996-12-03 06:15:52 +00:00
Peter Wemm 33cdb0aebd Import sendmail 8.8.4. See RELEASE_NOTES for changes. 1996-12-03 06:07:35 +00:00
Peter Wemm b4165e3a49 This commit was generated by cvs2svn to compensate for changes in r20103,
which included commits to RCS files with non-trunk default branches.
1996-12-03 06:07:35 +00:00
Bill Paul 4c69e7b9d5 Back out the non-forking YPPROC_ALL stuff. Whatever drugs I was doing
when I came up with this idea weren't strong enough to help me see it
through. If this was a self-contained application and I had complete
control over what data got sent through what socket and when, I might
be able to get everything to work right without blocking, but instead
I have RPC/XDR in between me and the socket layer, and they have their
own ideas about what to do.

Maybe one day I'll go totally mad and figure out the right way to do
this; in the meantime this mess goes on the back burner.
1996-12-03 02:37:39 +00:00
Bill Fenner 7c0ac9472b Fix a typo in the man page (the "-n" flag was added to the synopsis in
a comment).
1996-12-02 16:21:20 +00:00
Jordan K. Hubbard 5009d1be3c I have added a '-n' flag to the watch(8) command. This option
disables the ability to interactively select a new tty.  I have also
removed a check for uid == 0 because it gets in the way of using suid
mode based access control.  Watch (8)is only runnable by root, so this
does not really change things much.

Closes PR#2131

Submitted-By: adrian@virginia.edu
1996-12-02 12:32:46 +00:00
Jordan K. Hubbard b4a24ca1f0 Don't run routed by default.
Virtually-Demanded-At-Gunpoint-By: joerg
1996-12-02 05:01:02 +00:00
Jordan K. Hubbard a2a3d9f413 Move configResolv() to *after* the chroot(). This is what was causing
NFS installation to fail the first time.  This will go into 2.2.
1996-12-01 12:27:36 +00:00
Bill Paul faf215c7ad This commit changes the YPPROC_ALL procecdure so that it handles requests
_without_ using fork().

The problem with YPPROC_ALL is that it transmits an entire map through
a TCP pipe as the result of a single RPC call. First of all, this requires
certain hackery in the XDR filter. Second, if the map being sent is
large, the server can end up spending lots of time in the XDR filter
sending to just the one client, while requests for other clients will
go unanswered.

My original solution for this was to fork() the request into a child
process which terminates after the map has been transmitted (or the
transfer is interrupted due to an error). This leaves the parent free
to handle other requests. But this solution is kind of lame: fork()
is relatively expensive, and we have to keep a cap on the number of
child processes to keep from swamping the system.

What we do now is grab control of the service transport handle and XDR
handle from the RPC library and send the records one at a time ourselves
instead of letting the RPC library do it. We send a record, then go
back to the svc_run() loop and select() on the socket. If select() says
we can still write data, we send the next record. Then we call
svc_getreqset() and handle other RPCs and loop around again. This way,
we can handle other RPCs between records.

We manage multiple YPPROC_ALL requests using a circular queue. When a
request is done, we dequeue it and destroy the handle. We also tag
each request with a ttl which is decremented whevever we run the queue
and a handle isn't serviced. This lets us nuke requests that have sat
idle for too long (if we didn't do this, we might run out of socket
descriptors.)

Now all I have to do is come up with an async resolver, and ypserv
won't need to fork() at all. :)

Note: these changes should not go into 2.2 unless they get a very
throrough shakedown before the final cutoff date.
1996-11-30 22:38:44 +00:00
Jordan K. Hubbard ab9a6af1c4 Change boolean nature of "router" variable since it's not a boolean
anymore.
Noticed-By: joerg
1996-11-29 23:52:20 +00:00
Poul-Henning Kamp f8d8dfe86e Try to impreve DD mode.
Try to make 4Mb floppies work again.
1996-11-27 22:52:34 +00:00
Andrey A. Chernov 28c5126cfb Don't show on the screen just securely entered password
(in /etc/adduser.message text)
Sending password by E-mail on local machine is joke in any case
1996-11-27 22:04:55 +00:00
Bill Fenner a9695b96ac Add -s flag to always supply mapping if known, ignoring the
presence or absence of files in /tftpboot.
1996-11-27 20:45:10 +00:00
Bill Fenner b60287db00 Make the man page reflect reality. Add BUGS section about DNS.
Logging cleanups (including logging the requestor's MAC address instead
 of the server's).
1996-11-27 20:42:09 +00:00
Stephen McKay 735fa92ade Simplified. Some fts related bugs removed. Made less verbose. The default
number of mail messages sent per run was lowered from 2 to 1.  Why?  Well,
some numbers just give you the warm fuzzies, like zero and one.  Zero isn't
much use here, so I picked my all time favourite, one.
1996-11-27 13:06:51 +00:00
Stephen McKay 37b2250f56 Removed unnecessary locking. Simplified. Tidied. 1996-11-27 12:58:44 +00:00
Jordan K. Hubbard d8c4fd0c82 Correct some typos relating to PC98 server selection.
Submitted-By: HOSOKAWA Tatsumi <hosokawa@mt.cs.keio.ac.jp>
1996-11-27 12:44:43 +00:00
Joerg Wunsch 4b8d17f492 Open devices read-only to test whether they are available. This
allows to use write-protected tapes...
1996-11-27 01:01:52 +00:00
Andrey A. Chernov ae2c6adddd Use LC_TIME=C 1996-11-26 08:53:48 +00:00
Andrey A. Chernov ba0163f6d8 Use LC_TIME=C 1996-11-26 03:41:39 +00:00
Andrey A. Chernov e11ba3694e Use LC_TIME=C instead of LC_TIME= 1996-11-26 03:31:26 +00:00
Peter Wemm a66a1e11cf Don't close f->f_file on F_TTY types on error returns from ttymsg() since
it wasn't open in the first place..
1996-11-26 02:35:08 +00:00
Peter Wemm d486bc8fb9 Make the handling of the /dev/ prefix for tty names more consistant.
ttymsg() insists on them not being there.

Also, since ttymsg() opens the tty "on demand", don't keep an fd open
ourselves.  This would interfere with HUPCL etc.

This should close PR#2103 from <xaa@stack.nl>
1996-11-26 02:24:42 +00:00
Poul-Henning Kamp bbf432c0d6 bin/1974: core dump from amd when phkmalloc is set to AJ. 1996-11-25 19:36:26 +00:00
Mike Smith c1abba55d6 Correct the syntax of the example to reflect reality, and note that the
'host:' element is mandatory.
A better fix would involve reworking bootparamd not to require a ':'
in the response string.
1996-11-25 01:52:28 +00:00
John Hay dbba40ddb7 Slow down the RIP and SAP broadcasts. At least some NW4.x machines can't
handle them back-to-back. (We couldn't either without my ipx receive buffer
enlargement.)
1996-11-24 08:35:23 +00:00
Poul-Henning Kamp da18dc1a65 Don't dump core on zero-size files. 1996-11-21 15:17:04 +00:00
Poul-Henning Kamp 83c7762d77 Latest reality. 1996-11-20 08:21:27 +00:00
Jordan K. Hubbard 0bf57c683e Got the bugger. Eric's now passing in a hint structure to dbopen()
but forgot to zero the structure first, leaving hinfo.bsize undefined
and causing a loop in __log2().
1996-11-20 07:53:42 +00:00
Wolfram Schneider 42eacfd392 do not print 'illegal shell' for pseudo users news and xten
Submitted by:	 kuku
1996-11-20 01:07:46 +00:00
Bill Paul 7632575be6 Although I got rarpd to work, it was largely through kludgery. Bill
Fenner was kind enough to point out the error of my ways. This incorporates
diffs from him which:

- Keep everything in network order.
- Log the booted ether & ip address, instead of my address on that net
- change several exit()'s to return()'s, so that rarpd continues running
  even if it thinks it's in a weird state.

One small tweak by me: in rarp_bootable(), we have to make sure to
construct 'ipname' in host byte order (if we don't, we have to
specify /tftpboot/<remote IP in hex> with <remote IP in hex> in
network byte order, which is confusing).

Also restored use of <dirent.h> rather than <sys/dir.h> as pointed
out by bde.

Also updated the man page so that the -v flag is documented.

With any luck, I won't have to touch this thing again.
1996-11-19 23:57:06 +00:00
Joerg Wunsch b0fa330d5f Remove two uninitialized and unused variables that used to cause a
segfault before.
1996-11-19 23:21:52 +00:00
Garrett Wollman 037def9693 Completely re-vamped `tzsetup':
- It no longer attempts to fiddle wall-vs-UTC-in-RTC.  The results
  were just confusing most of the time.

- The program no longer contains a pre-compiled list of timezones
  (compiled by groveling through the tzdata source files for comments
  starting with `ZONE-DESCR').  Now it uses the new `zone.tab' file
  supplied with current versions of the timezone data files, to determine
  the list at run time.  (It also requires the ISO 3166 table  I
  committed some months ago.)

AS A RESULT, this program will NOT work until the new timezone data files
are committed (should happen sometime soon).
1996-11-19 18:09:41 +00:00
Poul-Henning Kamp fe6aa2730a typo 1996-11-19 11:08:27 +00:00
Bill Paul 5a0da0a5bc Dohw! Left out one important htonl() in update_arptab().
Pointed out by: Bill Fenner
1996-11-18 23:32:55 +00:00
Bill Paul 867de4336b Fix up new rarpd.
This includes the following changes:

- Support for poking ARP entries into the local table is now built
  in, so the arptab.c module I hacked together is no longer needed.

- rarp_process() and rarp_reply() now accept a len argument which is
  passed down from rarp_loop() which tells rarp_reply() exactly how
  long the original RARP frame was. (Usually, it's 60 bytes, which is
  the minimum.) Previously, the length was calculated using the sum
  of sizeof(struct ether_header) + sizeof(struct ether_arp) (plus the
  ethernet frame header, I think). The result was a total packet
  length of 42 bytes. Now, rarp_reply() sends out packets that are
  the same size as those it recieves (60 bytes). This agrees with the
  behavior of rarpd on SunOS (as observed with tcpdump). The unused
  extra bytes are zeroed.
1996-11-18 22:07:41 +00:00
Bill Paul 557201898b This commit was generated by cvs2svn to compensate for changes in r19855,
which included commits to RCS files with non-trunk default branches.
1996-11-18 21:53:21 +00:00
Bill Paul 4bef56e86c Import new version of rarpd from the BPF 1.1 distribution from LBL.
Obtained from: LBL, BPF 1.1 distribution
1996-11-18 21:53:21 +00:00
Peter Wemm a30a31bb3f put on my flame resistant suit and tempt fate by attempting to fix some of
the races in my previous commits here, and fix some other problems with
syslogd as well.

- if the child process exited early (eg: could not bind to the socket),
  the boot process would hang for 30 seconds.  The parent was not noticing
  that the child had exited.  (my fault)
- when writing to tty devices, instead of treating them like files that
  need \r\n instead of \n, actually use ttymsg() which has specific code
  intended to write to potentially blocking ttys safely.  I had a machine
  lock up last night because /dev/console on a serial port got flow control
  blocked.  Setting comcontrol drainwait fixed everything but syslogd which
  was going into a spin trying to write to the console and completely
  ignoreing everything else.
- fix a couple of nonsensical bits of code while here..  eg: wait3 takes
  a pointer to an int.  There is no sense in declaring it as 'union wait',
  then casting the pointer to (int *), then forgetting about it.
1996-11-18 21:48:29 +00:00
Peter Wemm 39c2b03943 Merge conflicts from 8.8.3 import onto mainline. 1996-11-18 02:34:34 +00:00
Peter Wemm fcf445de96 Import sendmail-8.8.3 - this contains the official fix to replace the
previous workaround patch that I used.

Obtained from: Eric Allman <eric@sendmail.org>
1996-11-18 02:26:51 +00:00
Peter Wemm dfae3a83bb This commit was generated by cvs2svn to compensate for changes in r19841,
which included commits to RCS files with non-trunk default branches.
1996-11-18 02:26:51 +00:00
Bill Fenner 31a322801a Update wording of the one message that was in the DIAGNOSTICS section.
Add three other common messages.

This should be in 2.2 to go with the netinet/if_ether.c rewording.
1996-11-17 23:25:17 +00:00
Poul-Henning Kamp a5c57c4040 Make the case where there is no changes look less fatal. 1996-11-17 08:11:18 +00:00
Wolfram Schneider 901c028ed7 install rmuser, addgroup, rmgroup in /usr/sbin 1996-11-17 03:51:33 +00:00
Joerg Wunsch eb14881596 Initialize memory obtained by malloc().
Detected by: phkmalloc -AJ
1996-11-16 22:49:02 +00:00
Joerg Wunsch 7ef22d9129 Provide a symlink for /bin/sh when the fixit floppy is mounted, so
scripts using #!/bin/sh (like /mnt2/dev/MAKEDEV) will work.

Observed by:	andreas
1996-11-16 22:42:13 +00:00
Stefan Eßer b1427fd412 Fix core dump after printing usage message (pointed out by BDE).
Add printing of PCI header type register. (This makes the output
80 columns wide. Ughh. I'm looking for a better way to put the
information on one line ...)
1996-11-16 22:05:52 +00:00
Poul-Henning Kamp e534982b63 Check bogus and ignore against the relative name, not the absolute. 1996-11-16 22:05:46 +00:00
Poul-Henning Kamp 9c0f44a5b3 Improve mkctm.c so we can use it, and start using it.
This should help quite a bit on the load.  Notice that
some minor changes in config files will be needed.
Contact me for details.
1996-11-16 19:30:14 +00:00
Peter Wemm bf8919163f Disallow non-root users to start in daemon mode.
Obtained from: Eric Allman <eric@sendmail.org>
1996-11-16 16:41:17 +00:00
Jordan K. Hubbard 532c723611 Add vx to list of devices. 1996-11-15 19:53:08 +00:00
Bill Paul 58dc15740f Eek! When I added the YP_INTERDOMAIN and YP_SECURE support, I documented
and set the B and S variables here, but I forgot to actually add them to
the master.passwd and hosts.* targets. In other words, they weren't being
passed to yp_mkdb as needed.

This needs to go into 2.2; it doesn't break things a lot, but it leaves
your master.passwd maps available to unprivileged users without you
realizing it.
1996-11-15 18:01:59 +00:00
Peter Wemm a2c9113628 oops, forgot to commit this. the sockaddr_un init code was missing
initialisers for sun_len and not accounting for it in the sizeof
calculation.  Ie: it was potentially sending an unterminated string into
the kernel.
1996-11-15 15:56:45 +00:00
Peter Wemm d21fb5dc4c Fix harmless bugs found while hunting for chpass nis failure 1996-11-15 14:13:51 +00:00
Peter Wemm 8ada212ae6 Uninitialised length variable passed to accept(), causing random accept()
failures due to EFAULT.

This is screaming out to go into 2.2
1996-11-15 14:12:21 +00:00
Andrey A. Chernov 5e8809d7b9 Use new ftpGetURL interface, as result, report FTP error
via ftpErrString or net error via hstrerror(h_errno)
1996-11-14 07:30:17 +00:00
Jordan K. Hubbard 5c3507a872 "over 600 packages" (geeze, this has been sitting uncommitted in my
source tree for 5 days! :-( ).
1996-11-14 05:46:22 +00:00
Jordan K. Hubbard 01f8d17065 Bring forward doc changes from 2.2. Much will need changing for 3.0,
which is where this is headed, but it's better than the 2.2-SNAP
docs.
1996-11-13 12:35:17 +00:00
Paul Traina e4b7080586 Back out freebsd local change which always forced SMTP to assume an 8-bit
clear channel.  This change was originally put in for freefall, and is
completely irrelevant given that freefaill defines the generic SMTP
service to use the smtp8 mailer (which is standard mechanism.)

[The original patch violated RFC-821.]

Apply to: 2.2 (please)
1996-11-13 08:06:26 +00:00
Paul Traina c47bd2576f Manage UTMP entry if we're doing username/password PAP logins 1996-11-13 01:33:10 +00:00
Jordan K. Hubbard 9378cb736f Only save userconfig changes if the boot floppy version and the
installed version match.

Pointed-out-by: hosokawa@mt.cs.keio.ac.jp (HOSOKAWA Tatsumi)
1996-11-12 18:39:35 +00:00
Poul-Henning Kamp 7132822bb1 doc/1987, table heading in error.
Submitted by:	Mark Valentine Mark Valentine <mark@linus.demon.co.uk>
1996-11-12 13:37:51 +00:00
Bill Fenner f014b7e69b Update to the unreleased mrouted 3.8a . This includes a minor
endian-ness fix, Router Alert options on IGMP messages, and a
new keyword, "advert_metric", for fine-tuning tunnel metrics.

This also includes a new mtrace, which is also unreleased but
builds significantly on the experiences of users' troubles with
using and understanding mtrace in release 3.8 .

(unreleased does not, of course, mean untested!)

This is a candidate for both 2.2 and 2.1.6 .
1996-11-11 03:50:15 +00:00
Julian Elischer 0661be0b5d Reviewed by: Bill fenner
Submitted by:	Archie Cobbs (Archie@whistle.com)

Changes to allow inted to control the number of servers to
start on each service. This is a defence against a denial of service attack
in which the system is made unusable by
an external party. It also allows the behaviour of
small memory systems to be more accuratly predicted, by
bounding the extent to which processes can multiply.
1996-11-10 21:12:44 +00:00
Julian Elischer 6467602bb5 Reviewed by: Bill fenner
Submitted by:	 Archie Cobbs (archie@whistle.com)

changes to make inetd compile cleaner under -Wall
1996-11-10 21:07:27 +00:00
Wolfram Schneider 970402c71b Add sendmail option '-oi'
-oi	Do not take dots on a line by themselves as a
		message terminator.

Now this crontab entry works:
* * * *	*	echo foo; echo .; echo blah
1996-11-10 04:46:58 +00:00
Jordan K. Hubbard d3400928da Disgusting kludge to make depend rule work again in the fact of
Joerg's keymap.[ch] changes.  If there's a better way, I'd like to know.
1996-11-09 20:50:23 +00:00
Jordan K. Hubbard 27fc704092 Whups, we need the VGA16 server by default too. 1996-11-09 19:47:24 +00:00
Jordan K. Hubbard d5d267d104 1. Saner ldconfig path.
2. Choose DIST_XF86_CFG in defaults; XF86Setup isn't happy otherwise.
1996-11-09 19:26:01 +00:00
Jordan K. Hubbard 2ce9c19184 1. Take out console setup in options now that Joerg has moved it into
the main menu.
2. Conditionalized a few small things which needed it.
3. Put PC98 X servers in their own menu, there are so many of them now.
4. Rampaged on the menus.c file in general, reformatting and cleaning up.
1996-11-09 18:12:17 +00:00
Joerg Wunsch 9b23ef93f3 Sysinstall now offers the installation of a keymap early in the game!
Not all mappings are supported, most languages come only with one
encoding since this should be sufficient to get up & running in using
sysinstall, and we are already pretty tight on space.  (My previous
commit has already bumped the boot MFS size by another 50 KB for
this.)

This feature requires the `kbdcontrol -L' i've just committed.  Plain
text keymaps and the entire scanner are overkill for sysinstall.

Also updated the list of available keymaps while i was at it.

Reviewed by:	jkh
1996-11-09 16:47:08 +00:00
Joerg Wunsch 518c7f2a9a Several improvements to the `fixit' configuration:
. Don't gzip the crunched binary by now; it just fits, and execution is
  a lot faster this way (it's truly demand-paged again).

. Add more(1), ft(8), protocols(5), a stripped down services(5).

. Improve the .profile, and make sysinstall actually use it again.

Still no go for a 4 MB configuration though. :-(
1996-11-09 16:25:47 +00:00
Joerg Wunsch 501d86efdd Implement a -L option that dumps the compiled keymap (as C code) to
stdout.  The next commit to sysinstall will use this...
1996-11-09 16:16:19 +00:00
Joerg Wunsch 1553b61593 If mounting the fixit floppy fails in the first place, warn the user
but make a second attempt using MNT_FORCE, just in case it has been
unclean from a previous crash.  That's dangerous, but far better than
keeping the despaired user standing in the rain...

(Experienced admins can still fsck it then, and remount.  Others will
either totally crash, or incidentally succeed, without much further
help possible...)

Btw., mount(2) misses the description of MNT_FORCE for the mount
syscall.
1996-11-09 11:57:40 +00:00
Jordan K. Hubbard 0108501f0f 1. Eliminate the sendmail.cw bogon again. Peter fixed it correctly.
2. Preload the ldconfig cache before calling X setup.
1996-11-08 05:38:27 +00:00
Peter Wemm c3bfbfc0aa make the /etc/sendmail.cw file optional by default.
Definately should go into 2.2..

Requested by: lots of people
1996-11-08 05:22:50 +00:00
Jordan K. Hubbard eee8f917c7 More cosmetic tweaks, get the prefixes adjusted properly to XFree86 3.2's
new packaging scheme.
1996-11-07 18:30:59 +00:00
Jordan K. Hubbard 8882073d4a Make sure current_chunk is 0 each time we enter the editor. 1996-11-07 16:40:10 +00:00
Jordan K. Hubbard fddc8f18c1 This warning is too annoying now. Kill it. 1996-11-07 16:34:12 +00:00
Jordan K. Hubbard f283407434 Install an evil work-around for /etc/sendmail.cw
[same as from 2.2]
1996-11-07 15:45:59 +00:00
Jordan K. Hubbard 4cb0381943 Complete switch-over to XF86 3.2. 1996-11-07 15:35:48 +00:00
Jordan K. Hubbard f038904906 Properly clear FTP site selection info when network init fails; the
site name may have been wrong, or need to be specified by IP.
1996-11-07 14:17:09 +00:00
Jordan K. Hubbard 663b45cb90 Joerg's changes to add screen font and screenmap setting.
Some changes of my own to make screen saver configuration a little
more sane, and also make it easier to get to the keyboard/screen
setup from the options menu.
1996-11-07 08:03:29 +00:00
Paul Traina bdfaa56a86 The standard .mc files shipped with the new sendmail have an extra divert(0)
at the top.  Make our freebsd-supplied files match the standard files.

Apply-to: 2.2
1996-11-06 22:30:29 +00:00
Poul-Henning Kamp d469fb7bda when you try to run iostat is fails with invalid dk_ndrive 0
Reviewed by:	 phk
Submitted by:	John-Mark Gurney <jmg@nike.efn.org>
1996-11-06 19:43:10 +00:00
Jordan K. Hubbard 46a414ffbb Update to XFree86 3.2 1996-11-06 19:15:30 +00:00
Joerg Wunsch 91fe9e81d3 Update the man page: the Philips CDD2000 is now supported.
2.2 candidate, iff the driver update has been merged.
1996-11-06 13:35:27 +00:00
Poul-Henning Kamp 01961df54d Remove a bogon from version 1.69. Just because we say "use all disk"
doesn't mean that our geometry can be flushed down the drain.
1996-11-05 19:53:20 +00:00
Wolfram Schneider f078c9c9bc export PATH variable 1996-11-04 23:57:40 +00:00
Wolfram Schneider f2cebac5c9 add PATH variable, use it 1996-11-04 23:54:01 +00:00
Wolfram Schneider ea4da3a878 export PATH variable 1996-11-04 23:50:58 +00:00
Jordan K. Hubbard d57b472224 Placate Joerg some more by making screen savers get a reasonable default
timeout.
2.2-RELEASE candidate, like all the work here in release/sysinstall.
1996-11-04 17:42:22 +00:00
Wolfram Schneider bb0d295728 manpages for rmgroup(8) and addgroup(8) 1996-11-04 17:21:11 +00:00
Bruce Evans 5020b5df96 Fixed recently-introduced bugs:
- `slstat' with no args dumped core.
- `slstat unit' always failed with a "sysctl linkspecific" error.
- the usage message was nonstandard.

Fixed old bugs:
- missing prototypes, Wformat errors, and other lint.
1996-11-04 17:14:43 +00:00
Bruce Evans 878152249a The interface number hasn't been a _single_ digit since prehistoric times. 1996-11-04 17:13:46 +00:00
Jordan K. Hubbard 5def50038a Use macros for package names so it's easier to update them in one
place (sysinstall.h) when packages change rev.

Change the way that the routing daemon is configured entirely, to
placate Joerg.  Also auto-load gated if it's specified, while we're at it.
1996-11-04 12:56:33 +00:00
Jordan K. Hubbard 3c669c7ea7 Make it clearer that DNS has succeeded for your host choice. 1996-11-04 02:12:49 +00:00
Adam David 5a0722857d typo 1996-11-03 12:25:21 +00:00
Jordan K. Hubbard 232c762e37 Fix a bogus decent into the network setup screen when running
multi-user.

Don't clear media on dist failure - this was one of those "seemed like a good
idea at the time" sorts of features.
1996-11-02 19:50:32 +00:00
Warner Losh 471595b02c Fix minor buffer problems:
Off by one in verify allowed one to march one byte off the end of
	wd.wd_hostname if wd.wd_hostname had no NUL characters in it.

	strncpy of myname into mywd used the source buffer's length, rather
	than the dest.
1996-11-01 06:29:34 +00:00
Alexander Langer 9e375707a5 Fix incorrect length argument to memset() function. Closes PR#1937.
Submitted by:	Archie Cobbs <archie@whistle.com>
1996-11-01 01:42:08 +00:00
Joerg Wunsch eea6c03c51 Improve the sample login script now that our sh(1) understands -p.
Closes PR # docs/1383: ppp(8) man page suggests using shell script...
1996-10-31 19:55:05 +00:00
Andrey A. Chernov 7860637efd Fix base64->8bit conversion
Submitted by: Eric Allman <eric@sendmail.org>
1996-10-31 00:45:43 +00:00
Andrey A. Chernov f5887b6bad Oops, don't suppress initial output header (from previous commit),
it is superfluous
1996-10-31 00:03:14 +00:00
Andrey A. Chernov a4ac83ea2c 1) print only errors if -v not given, it allows non-verbose
crontab runnig
2) use full path /usr/bin/mail for security reasons
3) Use time_t instead of long for time (in one place)
1996-10-30 23:58:08 +00:00
Wolfram Schneider eb651d9f73 rmgroup - delete a Unix group
usage: rmgroup group
1996-10-30 20:58:47 +00:00
Wolfram Schneider 627199df42 addgroup - add a group or add users to a group
addgroup [-g gid] group [user[,user,...]]
1996-10-29 20:31:43 +00:00
Stefan Eßer fbe5d89ffe Correct indentation of multi-LUN device info. (Slightly different fix
than suggested by Bruce Evans).

Submitted by:	bde
1996-10-29 19:32:31 +00:00
Peter Wemm ac01991ab7 Integrate our changes from bin/rmail. Mainly it causes immediate
delivery rather than queueing it and forgetting it.

(and some -Wall fixes where gcc is too dumb to see it's a "cant happen")
1996-10-29 11:32:22 +00:00
Peter Wemm aedbf2687d Convert the DONT_FSYNC compile time option to a runtime option (like
nobiff).  The options to turn these on are specified in the
LOCAL_MAILER_ARGS define the the sendmail.mc that you build from.
1996-10-29 05:35:24 +00:00
Peter Wemm b0591e84e9 Merge in our changes from src/libexec/mail.local. This version doesn't
violate disk quotas, has more robust locking, is still being developed,
etc.  The main changes merged in were the ability to not fsync() the
mailbox, not do biff/comsat broadcasts, man page fixes.
1996-10-29 05:22:52 +00:00
Joerg Wunsch d4788da623 Do not modify a malloc()ed pointer; instead, use memmove().
Detected by: phkmalloc - AJ :)
1996-10-28 23:02:38 +00:00
Joerg Wunsch 1c0899bbb0 Back out the entire change from rev 1.11 of syslogd.c. It was bogus.
Correct the man page to reflect the new reality.
1996-10-28 08:25:13 +00:00
Alexander Langer c2dc07c8eb Fix a typo, putput --> output.
Submitted by:	Philippe Charnier <charnier@xp11.frmug.org>
1996-10-27 23:12:48 +00:00
Warner Losh bc407914f9 lpc/cmds.c:
From NetBSD via OpenBSD to fix NetBSD PR #506
	More descriptive message for printer status
	(OpenBSD: 1.2)

	Various warnings cleaned up (OpenBSD: 1.4)

lpc/lpc.c:
	Various warnings cleaned up (OpenBSD: 1.3)

lpd/lpd.c:
	Remove trailing blank lines (OpenBSD: 1.2)

	Potential umask problem with creating /dev/printer
	(OpenBSD: 1.4 and 1.5)

	Ftp bounce attack (untested on FreeBSD)
	(OpenBSD: 1.6, 1.8, 1.9)
	Fencepost in strncpy
	(OpenBSD: 1.6)

lpd/printjob.c:
	Fix from freebsd for waiting for an exiting filter, that
	appears not in the FreeBSD CVS tree.
	(OpenBSD: 1.6)

lpd/recvjob.c:
	Buffer overflow protection: use strncpy rather than strcpy.
	(OpenBSD: 1.3)

lpr/lpr.c:
	NetBSD change of return type for main()
	(OpenBSD: 1.2)

	Restrict time running as root
	(OpenBSD: 1.7)

	Use getcwd rather than getwd (from NetBSD)

	Use snprintf rather than sprintf
	(OpenBSD: 1.8)

	Minor tweak to end of loop and buffer overflow sanity.  card()
	overflow already in FreeBSD
	(OpenBSD: 1.9)

lptest/lptest.c:
	void -> int return type of main, from NetBSD via OpenBSD
	(OpenBSD: 1.2)

pac/pac.c:
	void -> int return type of main, from NetBSD via OpenBSD
	(OpenBSD: 1.3)

Obtained from: OpenBSD
1996-10-27 03:06:52 +00:00
Warner Losh d1f8ff8c2e Fix transcription error I introduced in last patch. This created a
fencepost error that would run one off the end of the buffer.

Noticed by: Bruce Evans
1996-10-26 00:46:34 +00:00
Warner Losh 4f6653b930 Fix a problem where the command line could be used to overflow a stack
buffer which could be made to lead to a root shell.  This patch is
OpenBSD's solution to the problem, and will silently truncate the
output rather than overflow the buffer.

Obtained from: OpenBSD
1996-10-25 18:14:48 +00:00
Bruce Evans 378817d2ee Made this work for non-root again. The security fixes in rev.1.11
were equivalent to disabling its setgid'ness, since the default
kernel was not distinguished from a user-specified kernel.
1996-10-25 15:36:42 +00:00
Bill Paul 4451976029 Add support for handling the YP_SECURE and YP_INTERDOMAIN keys from
any maps that may have them. If the YP_SECURE key is present, ypserv
will only allow access to the map from clients on reserved ports.
If the YP_INTERDOMAIN key is present, the server will do DNS lookups
for hostnames that it can't find in hosts.byname or hosts.byaddr.
This is the same as the -d flag (which is retained for backwards
compatibility) but it can be set on a per-map/per-domain basis.

Also modified /var/yp/Makefile to add YP_INTERDOMAIN to the hosts.*
maps and YP_SECURE to master.passwd.* maps by default.
1996-10-24 18:58:26 +00:00
Bill Paul 21c2d66cd6 Add -b and -s flags for adding YP_INTERDOMAIN and YP_SECURE entries to
map databases. Also document said flags in the man page.

Adding YP_INTERDOMAIN to a map causes ypserv(8) to do a DNS lookup
when a yp_match() on the map fails. (This affects only the hosts.by*
maps; for all other maps it's ignored.) The YP_SECURE entry causes
ypserv(8) to restrict access to the map so that only clients making
requests from reserved ports can get at it.

Our ypserv doesn't currently support these features so they're silently
ignored for the moment, but this will change. :)
1996-10-24 14:52:50 +00:00
Peter Wemm 0ee48eaae9 Untangle NEWDB/NDBM options.
Enable praliases.c to not use NDBM.
1996-10-24 14:04:03 +00:00
Peter Wemm 42e9eb2671 missed this praliases.8 <-> praliases.0 change 1996-10-24 05:20:52 +00:00
Peter Wemm 82c2534fd0 Fold sendmail-8.8.2 changes into files that have been touched.
(^!&@$#&^! delete !!@^@^ trailing !@^&#$!& whitespace!!!)
1996-10-24 05:07:25 +00:00
Peter Wemm 606a993469 Import sendmail-8.8.2 onto the vendor branch
Obtained from: Eric Allman <eric@sendmail.org>
1996-10-24 04:51:14 +00:00
Peter Wemm 3b50ea913d This commit was generated by cvs2svn to compensate for changes in r19146,
which included commits to RCS files with non-trunk default branches.
1996-10-24 04:51:14 +00:00
Wolfram Schneider 88f04d6fce fix FAQ URL. Note for Jordan: don't merge this change into 2.1.6! 1996-10-23 22:28:56 +00:00
Bill Paul 323a8537ab Add extra sanity checking to the in-place update routine. Sometimes you
find two users with the same UID (i.e. root and toor), but yp_mkdb(8)
forbits duplicate keys, so only one of them will end up in the *.byuid
maps (probably toor, since it comes after root in the template file).
If I asked rpc.yppasswdd(8) to change toor's password, it would update
the *.byname maps correctly, but incorrectly modify root's entry in
the *.byuid maps since the only matching record with UID=0 in those
maps belongs to root.

To fix this, we check that both the name and UID are correct before trying
to write new entries to the maps.
1996-10-23 21:46:17 +00:00
Julian Elischer 36be1f6be9 Reviewed by: various (mailing list feedback)
Submitted by:	whistle communications

move the socket from /dev to /var/run by default
TRANSITIONALLY make syslog add a symlink..
I PROMISE I'll remove that as soon as I have the makefiles etc fixed as well.
1996-10-23 20:17:57 +00:00
Bill Paul 746c49fb53 In ypxfr_callback(), the failure to create an RPC CLIENT * handle for
the callback is a fatal error for this function; return immediatlely if
this happens. Also make the "failed to establish callback handle" error
mesaage print the IP address of the target callback host.
1996-10-23 15:49:22 +00:00
Bill Paul 511db384cf Make error messages more informative. 1996-10-23 15:42:37 +00:00
Marc G. Fournier 334dac624a Fixes:
>Description:
        pppd failes to set control terminal if -detach option is given.

Submitted by: enami@ba2.so-net.or.jp
1996-10-22 21:41:43 +00:00
Stefan Eßer eca55dceed Add pciconf. 1996-10-22 20:58:14 +00:00
Stefan Eßer d5ee39ef58 Initial version of the user land code for the PCI config register
access functions. Written by Garrett Wollman and modified by me to
better match my view of the (PCI) world.

Submitted by:	wollman
1996-10-22 20:27:47 +00:00
Bill Paul df4ddde70b Two small changes that were in my development sources at home
but never made it here for some reason:

- 'u' option was missing from getopt string
- Use daemon() to become daemonic.
1996-10-22 14:58:10 +00:00
Marc G. Fournier 8c78c8f41c Fixes:
If timed is running when system clock is changed by date command,
improper wtmp entry is made.  According to wtmp(5), two entries, one
with "|" as ut_line field and one with "{" for ut_line, should be
recorded, but, one with "|" and one with "}" are made.

Closes: PR#bin/1182

Submitted by:	 Masafumi NAKANE <masafumi@tky007.tth.expo96.ad.jp>
1996-10-22 05:13:42 +00:00
Bill Paul b87efe4572 Since rpc.yppasswdd(8) also supports adding entries to the
/var/yp/master.passwd template file and it uses the same kind of code
as chpass(1), it may also be vulnerable to the bug from PR #1519.
May as well deal with it since I'm in the area. (yppasswdd in -stable
doesn't do additions, therefore it shouldn't be have this problem.)
1996-10-22 03:53:06 +00:00
Bill Paul 8839484b47 Begin closing out PR #1519 (this requires a change to chpass too,
and both changes need to be pulled into the stable branch). The
problem here is that when pwd_mkdb creates /etc/passwd, it turns
empty UID and GID fields into zeroes. To fix this, we check the
_PWF_UID and _PWF_GID bits in the pw_fields flag: if the bits
are not set, we print an empty field instead of a zero. This way,
you don't get zeroes in the UID or GID fields unless you explicit
want them.
1996-10-22 03:18:11 +00:00
Paul Traina 7903651566 Fix a YTK bug. 1996-10-20 17:55:36 +00:00
Joerg Wunsch 64e529ea5f Make pstat -s (aka. sswapinfo) print ``[NFS]'' as opposed to
``/dev/??'' for NFS swap.

I had a hard time to figure out whether it's possible to print the
actual mounted swap file, but i failed to get any information.  If
anybody knows how to get ``192.168.0.1:/swap.192.168.0.3'' instead,
please step forward!
1996-10-20 12:54:55 +00:00
Jordan K. Hubbard 07eece26e8 Make changes suggested in PR#1825, closing it. Removes default local
hack behavior better than previous commit.
Submitted-By: Peter Childs <pjchilds@imforei.apana.org.au>
1996-10-18 03:47:53 +00:00
Jordan K. Hubbard 1d3a9347a0 Turn LOCALHACK off by default (whoops!)
Noticed-By: Atsushi Murai <amurai@spec.co.jp>
1996-10-18 01:44:45 +00:00
Jordan K. Hubbard 11fcd0ba76 Don't casually blow away FTP site settings now that it's easy for user
to override them.
1996-10-14 21:50:38 +00:00
Jordan K. Hubbard e738250b89 Remove the now-unusable ports configuration code. Swapping CDs is bogus. 1996-10-14 21:32:39 +00:00
Jordan K. Hubbard 82d4f7288d Fix PR#1557 - chained package dependencies using URLs didn't work. 1996-10-14 19:41:44 +00:00
Søren Schmidt b08563169e Fixed the security leek I introduced the other day, now
shell command is only executabel from command files, not
from the commandline.
1996-10-13 15:05:14 +00:00
Jordan K. Hubbard d2322fc6ac Be less draconian about distribution extraction errors - still write
/etc file changes out.
1996-10-12 23:48:33 +00:00
Eric L. Hernes b14765b3ed Get the pysical address for id_maddr when opening an -incore kernel.
This fixes the kernel panic when propagating userconfig changes to
arbitrary kernels.

Remove obsoleted `#include <tcl.h>' added a few <stdio.h> where
necessary.

Fix getting scsi bus information from an -incore kernel.

Turned on SAVE_USERCONFIG by default.
1996-10-12 20:23:26 +00:00
Jordan K. Hubbard 0383bc6a90 Some cosmetic tweaks, attempt to fix package wait problem by checking
for error return as well (not sure if this is it, but it's one possible
explanation).
1996-10-12 19:30:26 +00:00
Jordan K. Hubbard b0cdb3ce11 1. Room to calculate MD5 for CHAP negotiation is shorter than
required. a core is not dumped at first connecting time and
   dumped at second or third time. (patch I)
2. A routine for "show route" refers out of allocated space.
   Values pointed by "lp" should be read as CHAR, I think.
   there is also no free() for disallocation. (patch II)

Here is also a patch for an improvement: In current imprementation,
even if PPP connection is disconnected by time out, prompt of
interactive mode does not change from "PPP>" to "ppp>" to
indicate the disconnection on a terminal.
So I modified the code to do that. (patch III)

Submitted-By: NAKAMURA Motonori <motonori@econ.kyoto-u.ac.jp>
1996-10-12 16:20:34 +00:00
Garrett Wollman cdee44e4cb De-cruftify.
Use the link MIB interface rather than groveling around in kmem.
(No longer works on dead kernels, big deal.)
1996-10-11 18:47:10 +00:00
Søren Schmidt 45768c728b Allow shell commands in all modes.
Old behavior can be had with define SHELL_ONLY_INTERACTIVELY
1996-10-10 11:27:35 +00:00
Jordan K. Hubbard 04f11c618f Ahem. It might be nice if I included /usr/src/contrib in with the other
src dists.  This alone is a good reason to re-roll the SNAP before putting
it on CD.
1996-10-10 09:22:37 +00:00
Paul Traina 46fc8e68b8 Enable NIS support 1996-10-09 20:34:09 +00:00
Jordan K. Hubbard b11806da8c DTRT if ESC is hit in a Yes/No dialog.
Noticed-by: jfieber
1996-10-09 09:53:41 +00:00
Søren Schmidt 3d451fd3ea Add the feature to use MYADDR & HISADDR macroes as arguments to
a shell escape.
1996-10-07 10:01:17 +00:00
Jordan K. Hubbard 9f202f0cde Properly include prototypes.
Submitted-by: "Daniel O'Callaghan" <danny@panda.hilink.com.au>
1996-10-07 04:21:09 +00:00
Jordan K. Hubbard fa79187367 Add passwdauth to list of vars.
Submitted-by: Peter Childs <pjchilds@imforei.apana.org.au>
1996-10-06 19:39:08 +00:00
Jordan K. Hubbard 7bea4afad3 Sigh. There are still some weird boundry cases (argh!). Turn
off SAVE_USERCONFIG again until Eric comes back from his trip.
1996-10-06 16:31:12 +00:00
Jordan K. Hubbard ae58bac757 Detect the zero-chunks case properly, now that I've reversed the order
of the distribution probes over ftp.

Properly #ifdef the SAVE_USERCONFIG code.
1996-10-06 14:45:57 +00:00
Jordan K. Hubbard d8e55738a0 Add support for the Evil Microsoft ppp extentions. Yes, they did it
on their own without even attempting to get concensus in the IETF, but
there are also lots of Win95/NT boxes out there.

CLoses PR#1494
Submitted-By: Peter Childs <pjchilds@imforei.apana.org.au>
1996-10-06 13:32:37 +00:00
Jordan K. Hubbard b9403756ad Correctly re-adjust current slice # when slices are deleted.
Beautify the code a little.
1996-10-06 11:40:31 +00:00
Jordan K. Hubbard 1f3a0ea7fd Turn SAVE_USERCONFIG on again - I found the bug. 1996-10-06 03:20:12 +00:00
Jordan K. Hubbard 48addbfd79 Better PKG_TMPDIR handling. 1996-10-06 03:18:55 +00:00
Jordan K. Hubbard 60e7f875ed Be more paranoid about clearing the FTP path when we have the slightest
reason to doubt its authenticity.
1996-10-06 02:10:54 +00:00
Wolfram Schneider e83201b43a delete doubled words, e.g.: "the the" -> "the" 1996-10-05 22:27:30 +00:00
Jordan K. Hubbard f5e8e60f1f Make the save_userconfig() stuff conditional and turned off by default
(for now - still a few more wrinkles here).  Add more debugging code
and some cosmetic tweaks.
1996-10-05 16:33:05 +00:00
Peter Wemm 4ed8e95bc0 syslogd has always bugged me with it's async startup at boot time.
For me, more often than not, the backgrounded syslogd daemon is not
yet ready to process log messages before other things (such as named)
want to log a heap of them.  It seems that it's the O_SYNC writes of
the stuff coming in from /dev/klog that's the slowdown.

Anyway, instead of using the libc daemon, roll a modified version.  This
one has a timeout.  The child will wait for either the timeout to expire
or the child process to signal it to let it know that it's "ready" and
the /dev/log socket is set up and active, so it's safe to continue the
boot.  It adds a small fraction of a second pause to the boot time, but on
the other hand the overall boot time is *quicker* since the disk is not
being thrashed while the log messages are getting written out synchronously
one by one while other daemons are loading in parallel.

The timeout is in case the child segfaults or something before becoming
fully operational.
1996-10-05 15:20:51 +00:00
Jordan K. Hubbard e783f4c9a8 Wait for any stray processes we might be sent while running as init.
I have cautious hopes that this will fix the package installer zombie
accumulation problem.
1996-10-05 12:28:36 +00:00
Jordan K. Hubbard 3a781673de Correct check for ensuring that the network configuration isn't fiddled with
when running multi-user.
1996-10-05 12:16:49 +00:00
Jordan K. Hubbard 2ac528a98f 1. Change device probing so that high speed network devices are found before
SLIP/PPP devices, putting them before the others in the network device
   selection menu.

2. Change "Other" to "URL" so as not to conflict with the keyboard accellerator
   for the "OK" button in FTP site selection menu.

3. Detect the NULL last symbol in the name list and initialize the other
   members correctly.
1996-10-05 11:56:50 +00:00
Jordan K. Hubbard d50a30076c Multiple changes stacked as one commit since they all depend on one another.
First, change sysinstall and the Makefile rules to not build the kernel
nlist directly into sysinstall now.  Instead, spit it out as an ascii
file in /stand and parse it from sysinstall later.  This solves the chicken-n-
egg problem of building sysinstall into the fsimage before BOOTMFS is built
and can have its symbols extracted.  Now we generate the symbol file in
release.8.

Second, add Poul-Henning's USERCONFIG_BOOT changes.  These have two
effects:

	1. Userconfig is always entered, rather than only after a -c
	   (don't scream yet, it's not as bad as it sounds).

	2. Userconfig reads a message string which can optionally be
	   written just past the boot blocks.  This string "preloads"
	   the userconfig input buffer and is parsed as user input.
	   If the first command is not "USERCONFIG", userconfig will
	   treat this as an implied "quit" (which is why you don't need
	   to scream - you never even know you went through userconfig
	   and back out again if you don't specifically ask for it),
	   otherwise it will read and execute the following commands
	   until a "quit" is seen or the end is reached, in which case
	   the normal userconfig command prompt will then be presented.

  How to create your own startup sequences, using any boot.flp image
from the next snap forward (not yet, but soon):

	% dd of=/dev/rfd0 seek=1 bs=512 count=1 conv=sync <<WAKKA_WAKKA_DOO
USERCONFIG
irq ed0 10
iomem ed0 0xcc000
disable ed1
quit
WAKKA_WAKKA_DOO


Third, add an intro screen to UserConfig so that users aren't just thrown
into this strange screen if userconfig is auto-launched.  The default
boot.flp startup sequence is now, in fact, this:

	USERCONFIG
	intro
	visual

(Since visual never returns, we don't need a following "quit").

Submitted-By: phk & jkh
1996-10-05 10:44:07 +00:00
Jordan K. Hubbard c358d51efd Add stuff to CLEANFILES. 1996-10-05 06:04:03 +00:00
Jordan K. Hubbard 48a13090be Various cosmetic tweaks. 1996-10-04 14:53:52 +00:00
Jordan K. Hubbard 46a7b8131d Syncronize my tree so Eric can access the latest code. 1996-10-04 13:33:49 +00:00
Jordan K. Hubbard 2705b229fc Temporarily disable userconfig saving until I figure out why uc_open()
loops internally for BOOTMFS (not being able to run gdb on sysinstall
when it's running as init is a real pain!).
1996-10-03 08:54:37 +00:00
Jordan K. Hubbard 7ae3b92f0d Check return values from uc_open() correctly. Note: This seems to work
really well when running the GENERIC kernel but not with the BOOTMFS kernel.
Further work is needed.
1996-10-03 08:17:16 +00:00
Jordan K. Hubbard 11a7f9359b Fix the "missing nameserver value" bug. Simplify some unnecessarily
crufty code, here and there.
1996-10-03 07:50:09 +00:00
Jordan K. Hubbard f4cd25007b First cut at a "copy userconfig changes from installation kernel to installed
kernel" mechanism.  This is just the foundation - more work follows
and will be committed over the next few hours.
Submitted-by: "Eric L. Hernes" <erich@lodgenet.com> & jkh
1996-10-03 06:01:44 +00:00
Jordan K. Hubbard 4bf9c8cd84 One small policy tweak to something I like better. 1996-10-02 10:44:31 +00:00
Jordan K. Hubbard 5c38fa57b2 More strategic screen clears(). 1996-10-02 10:32:28 +00:00
Jordan K. Hubbard e3e0a7a433 Fixes and a place-holder for future work. 1996-10-02 08:25:11 +00:00
Jordan K. Hubbard 4dcc16b986 Catch a clear() I missed. 1996-10-02 02:19:35 +00:00
Jordan K. Hubbard a54f2b1abb Don't annoyingly reconfigure the network when you don't have to. 1996-10-02 02:02:18 +00:00
Jordan K. Hubbard 899469e32a More tweaks to FTP reselection code - allow "none" to stand for
"no specific release - use anything you can find"
1996-10-02 01:30:37 +00:00
Jordan K. Hubbard a1d6d1bcd5 Try to get the info file before the whole file - it eliminates
a gratuitous fetch attempt in most situations.
1996-10-02 00:52:38 +00:00
Jordan K. Hubbard 8b3d07b538 Make FTP site reselection work the way it always should have. 1996-10-02 00:41:40 +00:00
Bill Fenner 7dae516d85 Release setuid immediately after initializing; this minimizes the
possibility of security holes allowing root penetration.

Inspired by:	Mark Handley <M.Handley@cs.ucl.ac.uk> and
		Theo de Raadt <deraadt@theos.com> independently
Submitted by:	Theo de Raadt <deraadt@theos.com>
1996-10-01 23:14:35 +00:00
Jordan K. Hubbard 7972a1c191 Round 2.5 1996-10-01 14:08:28 +00:00
Jordan K. Hubbard 23c0fda959 Installation cleanup, round II. 1996-10-01 12:13:29 +00:00
Jordan K. Hubbard 3e19bb8220 Saner screen refresh changes, part I. 1996-10-01 04:56:34 +00:00
Paul Traina 673e960089 Fix potential buffer overrun 1996-10-01 03:41:28 +00:00
Bill Paul 42c703633d Close a potential security hole: if yp_access() is passed a map name,
have it check to see that it doesn't contain any '/' characters. This
prevents possible silliness like ypcat "../../../kernel". We already
test the domain name for this in yp_validdomain(), and ypserv itself
tests the map name in yp_open_db(), but it doesn't hurt to be paranoid
and test for it in the generic access routine too. rpc.ypxfrd does not
test the map name for slashes, but it does call yp_access() with the
map name, so this removes a potential vulnerability from there.

Also make the tests for IPPORT_RESERVED a little more selective: make
sure it trips when map == master.passwd.*, prog == YPPROC and proc ==
YPPROC_XFR, and prog == YPXFRD_FREEBSD_PROG and proc == YPXFRD_GETMAP.
Also use IPPORT_RESERVED instead of hard-coded value.
1996-09-30 22:27:00 +00:00
Bill Fenner 7b5698c217 Grab traceroute out of src/contrib/traceroute 1996-09-30 19:49:54 +00:00
Jordan K. Hubbard 468892768e Make this more usable from shell scripts and such by adding a non-interactive
flag and some checking to see if it's even reasonable to ask for confirmation
at all.
1996-09-30 03:10:30 +00:00
Bruce Evans 5d98ce7598 Include <fcntl.h> so that this doesn't depend on the KERNEL version
of <sys/file.h> including <sys/fcntl.h>.  Only the !KERNEL version
of <sys/file.h> will do that when I unspam the kernel headers.
1996-09-29 19:25:10 +00:00
Bruce Evans 3b72a1cdd4 Close files up to getdtablesize(), instead of up to NOFILE.
lpd was one of 3 programs in /usr/src that (mis)used NOFILE.
1996-09-29 19:12:55 +00:00
Jordan K. Hubbard 36122d2d57 Correct a minor misspelling.
Noticed-by: der
1996-09-29 10:03:30 +00:00
Bruce Evans 750f8dc963 Removed references to pathconf-related variables that were never handled
by sysctl and never can be in their documented form (kern.name_max would
have to become fs.filesystemname.name_max, etc.).

Added missing references to user.stream_max and user.tzname_max.  These
seem to misnamed.  <sys/sysconf.h> says that they correspond to POSIX2
names, but the sysconf names don't have POSIX2 or "posix2" like all the
other POSIX2 names.
1996-09-28 14:43:03 +00:00
Bruce Evans 552690d2b1 Moved getdtablesize() out of a loop. 1996-09-28 11:25:47 +00:00
Paul Traina 3d08ec926a Add info field.
Closes pr docs/1679.
1996-09-27 20:31:26 +00:00
Paul Traina c8de1e0212 Rate limit the "xxx bytes read from" message to a maximum of one per
chunk or one per second, whichever is less.  Outputting this message once every
couple of K was really crazy on a 9600bps serial console.
1996-09-26 22:12:07 +00:00
Paul Traina 41b018dd0b If we're running through the FTP setup dialog the *first* time, skip
the FTP path if we've already configured one (this allows preconfigured ftp
servers).
1996-09-26 22:07:32 +00:00
Paul Traina 09bef27f97 If we're unable to open /dev/ttyv0, assume that we're on a single tty system
and use /dev/console.

I really think the proper test is to determine which device has been configured
to be the console (remember the RB_SERIAL flag?) and use it instead of always
trying to open /dev/ttyv0 first.
1996-09-26 21:07:11 +00:00
Paul Traina 5319e113eb If /install.cfg exists on the local floppy (or if LOAD_CONFIG_FILE is defined
and the user inserts a floppy), read the config file to pre-define variables
for a custom installation.

[Note: I fixed one bug in LOAD_CONFIG_FILE code, but it's still not perfect.]
1996-09-26 21:03:35 +00:00
Bruce Evans 4523edce8b Really eliminated includes of the "temporary" backwards compatibility
header <sys/dir.h> in applications.  My previous sweep didn't find the
places that included it without needing it.
1996-09-24 08:43:04 +00:00
Bruce Evans 0c8ea4d48c Eliminated includes of the "temporary" backwards compatibility header
<sys/dir.h> in applications.  Maintained existing (inadequate) ifdefs
for dir.h vs dirent.h in libdialog, amd and rarpd, but didn't add any
new ones.
1996-09-24 08:08:11 +00:00