Commit graph

2508 commits

Author SHA1 Message Date
Jordan K. Hubbard 1d90be277e Don't just unset FTP_PATH unilaterally, it might have been a timeout
in which case we should simply log in again.
1997-02-18 01:35:37 +00:00
Jordan K. Hubbard a5ff41a0e2 Properly check status of menu return. 1997-02-17 22:08:19 +00:00
Jordan K. Hubbard 96a6cda5d6 Compensate for an underpopulated MFS. 1997-02-17 13:42:21 +00:00
Jordan K. Hubbard 70f8c15560 Finally DTRT with tcpOpenDialog(); it should have never diddled
mediaDevice directly.
1997-02-17 13:29:47 +00:00
Jordan K. Hubbard 15cde219d1 Always load DIST_COMPAT21 when loading X. This used to be the default
then it got taken out when the COMPAT21 distribution got dangerous.
Now that it's safe (we hope), it comes back.
1997-02-17 04:56:22 +00:00
Bruce Evans ff51e85069 Oops, get the name of the new manpage right. 1997-02-17 04:38:05 +00:00
Jordan K. Hubbard ea9a505d0c Don't nuke localtime and timezone files so aggressively now.
This is tzsetup's job (and only if you don't cancel out, which
is why having sysinstall remove them was so bogus).
1997-02-16 23:54:58 +00:00
Jordan K. Hubbard b94679130c Ask about local or UTC here, like we used to. 1997-02-16 23:51:03 +00:00
Jordan K. Hubbard 80beefc082 1. Always write out /etc/hosts.
2. Back out my change to ask about UTC/Localtime here.  This *really* needs
   to be done in tzsetup instead since putting it here only handles about
   1/4 of the places where it needs to be.
1997-02-16 23:35:05 +00:00
Jordan K. Hubbard c92de5fe1d Replace bogus strncmp() with strcmp(). 1997-02-16 10:20:05 +00:00
Jordan K. Hubbard 6e0a4251e7 Prevent potential argument buffer overflow. 1997-02-15 16:34:47 +00:00
Jordan K. Hubbard 3937aa2158 Make configSysconfig() less chatty.
Now that this is becoming (dare I even say it?) more useful for
post-configuration, no longer leave sysinstall.debug files around
by default.  Only do this if environment variable SYSINSTALL_DEBUG
is set.
1997-02-15 15:40:37 +00:00
Jordan K. Hubbard e33c24a2d2 Read /etc/resolv.conf information as well as /etc/sysconfig info, making
this a little more robust.
1997-02-15 15:24:14 +00:00
Jordan K. Hubbard 2df00d4c64 Fix a bogon with playpen size calculation for pkg of "-". It's amazing
this ever worked, actually.
1997-02-15 14:17:28 +00:00
Jordan K. Hubbard 9f5472632c Correct bogus msg dialog.
Update to Lynx 2.7 (need to build 2.1/2.2 versions of this package).
1997-02-15 13:18:19 +00:00
Jordan K. Hubbard 136b318913 Only add interface lines if they're not there already. 1997-02-15 12:24:02 +00:00
Jordan K. Hubbard fb8327b7c3 Add a safety belt to configSysconfig() that should have been in there
from the beginning.
1997-02-15 11:20:54 +00:00
Joerg Wunsch d41229fcaa Plug a security hole involving $ENV forwarding over telnet. Sigh, i
thought i've long since done this.
1997-02-15 10:15:49 +00:00
John-Mark Gurney c8ab81b886 mdoc'ify man page 1997-02-15 03:35:55 +00:00
Jordan K. Hubbard 3a28079136 Don't bogotify pkg_add's stderr. 1997-02-14 23:00:01 +00:00
Jordan K. Hubbard a85842ff23 Revert some of the previous change - on second thought... 1997-02-14 21:59:26 +00:00
Jordan K. Hubbard ea7c446076 Add better quote elimination (and fix a bug). 1997-02-14 21:17:00 +00:00
Jordan K. Hubbard c5566bcff7 o Try to be more aggressive about reading in old configuration data
so that we're more useful in multi-user mode.  This is still not
  100%, but it pulls in a lot more than it used to.  Some of the "composite"
  variables in /etc/sysconfig are going to take more work.

o Always write /etc/resolv.conf and /etc/hosts if it makes sense to do
  so.

o Reset media properly when reselecting.  Longstanding bogon.

o Pull SIGPIPE handling out of package.c; I'm actually hoping to handle
  this differently shortly.

o Fix bug where cancel in TCP setup dialog still checked data fields.
  I think this closes a PR, but I will have to go look.
1997-02-14 20:59:07 +00:00
Andrey A. Chernov c5d50e135a Replace my EOF fix with better one from sendmail-bugs discussion
Should go into 2.2
1997-02-14 13:57:37 +00:00
Jordan K. Hubbard 6858c47aeb It's not an error to call configResolv() early. 1997-02-14 02:55:25 +00:00
Andrey A. Chernov 8ae5bda5aa Back out clearerr fix after discussion in sendmail-bugs,
it gains nothing
1997-02-14 02:44:45 +00:00
Jordan K. Hubbard 06b547f87f Put back @owner/@group/@mode behavior I took out way back when.
Submitted-By: pst
1997-02-14 01:52:38 +00:00
Andrey A. Chernov 85456c29cc clearerr() clears both EOF and error flags, so do it only for
error and not for EOF or loop test becomes while(1)

Should go into 2.2
Submitted by: Gregory Neil Shapiro <gshapiro@WPI.EDU>
1997-02-13 21:45:20 +00:00
Mike Pritchard d79e37a33e Xref the new vn(4) man page. 1997-02-13 18:50:52 +00:00
Andrey A. Chernov 9be55567d0 Under some circumstanes sendmail can loop forever collecting input.
Fix uninitialized character to prevent it.

Should go into 2.2
1997-02-13 15:48:35 +00:00
Mike Pritchard 043c578eb4 crontab(5) incorrectly documented the dom/month arguments.
They have valid ranges of 1-31 and 1-12, not 0-31 and 0-12.
1997-02-13 07:16:12 +00:00
Bruce Evans 469321d858 Actually install the new manpage. 1997-02-12 03:36:10 +00:00
Stefan Eßer da4e00105e Man page for the pciconf utility. There really should be some
documentation on the ioctl() interface provided by /dev/pci ...

Reviewed by:	wollman
1997-02-11 22:08:22 +00:00
Jordan K. Hubbard d2595c8454 Don't unilaterally decide to skip network configuration if running multi-user;
ask politely.
1997-02-11 02:33:33 +00:00
Jordan K. Hubbard 9aaa1e853f -#include <ufs/ufs/ufsmount.h>
This was a temporary measure I took to deal with John's 4.4L2 changes
which should not have crept in.
1997-02-11 02:13:06 +00:00
Jordan K. Hubbard 152ae47983 Save /etc/sysconfig data at the very very end, so that it can be
used post-install time as a configuration tool as well.

Update comments about a kernel recompile being necessary for PS/2 mice.
1997-02-10 19:44:08 +00:00
Jordan K. Hubbard 97daf05001 Don't stomp wall_cmos_clock file. 1997-02-10 10:23:53 +00:00
Jordan K. Hubbard 3de899a11e Allow the user to choose UTC or local time. 1997-02-10 10:21:07 +00:00
Bill Fenner b5b04da46d Another fix related to pr#bin/2585 . That'll teach me to
grep h_length *.c ...
1997-02-10 06:46:37 +00:00
Bill Fenner de5ae7f25a Fix possible gethostbyname-related overflows as pointed out in
PR#bin/2585 .
1997-02-09 22:32:04 +00:00
Joerg Wunsch c64075d5dd Fix some xrefs.
Submitted by:	John-Mark Gurney <jmg@nike.efn.org>
1997-02-09 20:39:00 +00:00
Bill Paul 157f101972 Check for, warn about and reject lines with empty keys. You can't have
a database entry with a null key. These are often caused by spurious
blank lines in the map source file.
1997-02-09 19:34:53 +00:00
Bill Paul aca49be34f Two small tweaks:
- servers should be the first target listed in 'all:' in order for slave
  servers to be updated correctly: yppush reads the ypservers map to figure
  out where all the slaves are, so it needs to be loaded onto the master
  ASAP.

- Fixed small bogon in publickey target which nobody has noticed since
  we're not using the publickey.byname map yet.
1997-02-09 19:19:14 +00:00
Brian Somers 7c3658d84c Connections are timed and the call duration is logged
via syslog.
Submitted by:	 Lars Fredriksen <fredriks@mcs.com>
Obtained from:	 Lars Fredriksen <fredriks@mcs.com>
1997-02-09 18:34:25 +00:00
Warner Losh d583a7c3cb Buffer overflow from OpenBSD:
Rev 1.4 deraadt: (partial from full commit, other files not done yet)
	proactive bounds checking; help from millert
Rev 1.5 millert:
	Possible buf oflow.

Plus minor style nits to keep the style police happy (I hope)
Obtained from: OpenBSD
1997-02-09 05:19:03 +00:00
Warner Losh c50189d7ba Buffer overflow from OpenBSD:
Rev 1.3 millert:
	Fix potential buf oflow wrt strerror and sprintf.
Obtained from: OpenBSD
1997-02-09 05:09:05 +00:00
Warner Losh 87751a8467 Buffer overflow from OpenBSD:
Rev 1.7 millert:
	possible oflow
Obtained from: OpenBSD
1997-02-09 05:04:17 +00:00
Warner Losh a3d9131308 buffer overflow from OpenBSD:
1.3 bitblit:
	Fixed potential buffer overflow
Obtained from: OpenBSD
1997-02-09 04:52:11 +00:00
David Nugent e56644ad0e Yet another formatting consistency check. 1997-02-07 11:31:42 +00:00
David Nugent e57b5686c6 Fix useage of MAXLOGNAME to include terminating NUL, by using
max(MAXLOGNAME-1,UT_NAMESIZE).
Tidy up "pretty" printing format for longer usernames.
1997-02-07 10:58:13 +00:00
Jordan K. Hubbard 8055777430 It's easier to go forwards than backwards with this, and the RELENG_2_1_0
sysinstall was already broken (I think there's a PR for this somewhere).
This will require some additional changes elsewhere, like bringing in pw.
1997-02-07 04:27:24 +00:00
Joerg Wunsch 5ecb59ef0b Update to the new open() semantics, need O_NONBLOCK now. 1997-02-06 22:24:35 +00:00
Bill Paul c6c5d97511 Close PR# 2645: add curly braces where my fevered brain in collusion
with my frantic fingers forgot to put them.
1997-02-06 05:28:52 +00:00
Wolfram Schneider 9a42683b3a /sbin -> ${BINDIR} 1997-02-06 01:24:43 +00:00
Julian Elischer fb42516541 The "-a" option for inetd specifies a specific IP address for the
server to bind to. This works until you send it a SIGHUP with a
new service defined ... the new service is bound to INADDR_ANY.

This patch fixes this bug (in both RELENG_2_2 and -current).

This is a 2.2 candidate..(i.e. pure bug fix)

Submitted by:	Archie Cobbs (archie@whistle.com)
1997-02-05 19:50:04 +00:00
Thomas Gellekum 767c0e7bdc Typos. 1997-02-05 07:36:51 +00:00
Thomas Gellekum 350a9f017e Typo. 1997-02-04 07:06:14 +00:00
Joerg Wunsch 47b213b1ba Fix a benign typo (benign by now, since sizeof(VarLoginScript) ==
sizeof(VarDialScript)).

Submitted by:	Arjan.deVet@adv.IAEhv.nl (Arjan de Vet) -- or actually by imp?
1997-02-02 19:13:25 +00:00
Mike Pritchard 4568d55cd5 Update some path references to reflect reality.
Submitted by:	max
1997-02-02 00:59:49 +00:00
John Hay 3e70cf1f94 At the end it was much simpler than I thought. 26 * 26 = 676 and not 576.
South Africa and a few other countries exists again. This fix pr 2595.
This should go into 2.2.
1997-02-01 17:03:10 +00:00
Jordan K. Hubbard 6bc6b19ae5 Sync with RELENG_2_2 changes. 1997-01-30 06:38:19 +00:00
Brian Somers 534fe5414f Check the timer request flag irrespective of wheter select() came back with
EINTR - it's possible that it happened at some other point in the loop.
1997-01-30 00:49:50 +00:00
Jordan K. Hubbard 89972e50e4 Allow user to delete as well as install packages from the package
installer menu.

Fix status line code so informationals show up properly again.
1997-01-29 22:35:05 +00:00
Jordan K. Hubbard 4c5f552d9a Cosmetic tweaks.
Also redirect stderr to Debug when running multiuser.
1997-01-29 21:45:30 +00:00
Jordan K. Hubbard 431285ea2b Fix broken layout help (this is what broke the TCP help screen).
Allow DITEM_NO_ECHO to be encoded in layout field types and make
user.c use it for the password item.
1997-01-29 21:16:07 +00:00
Jordan K. Hubbard 1c5237db6f Make media re-init a user choice. 1997-01-29 03:30:24 +00:00
Brian Somers 6b0b88d812 Move the call to TimerService() into main.c - just after the select()
call.  The SIGALRM just sets a flag now, preventing the possibility of
any nasty recursivness in the handler itself.
1997-01-29 01:27:58 +00:00
Jordan K. Hubbard ad26f87d59 Do media initialization at correct time for upgrade too.
Update /stand.
1997-01-29 01:23:05 +00:00
Jordan K. Hubbard 18a4cf7400 Update Russian FTP sites according to Mikhail A. Sokolov's current
configuration.
1997-01-29 01:13:27 +00:00
Jordan K. Hubbard b2b2fe4577 Death to another bad idea: Don't auto-mount CDROM on startup. 1997-01-29 00:14:17 +00:00
Jordan K. Hubbard aa5b6f64ea DTRT with a release string of "none" and use the correct (updated)
mountpoint name for fixit.
Submitted-By: joerg
1997-01-27 09:51:56 +00:00
Peter Wemm 32340ccd9e Merge 8.8.4 -> 8.8.5 changes onto mainline 1997-01-27 07:43:29 +00:00
Peter Wemm 559b5e3e06 This commit was generated by cvs2svn to compensate for changes in r22028,
which included commits to RCS files with non-trunk default branches.
1997-01-27 07:37:00 +00:00
Peter Wemm 52c4d6f5d6 Import sendmail 8.8.5. See RELEASE_NOTES for changes.
Obtained from: ftp.sendmail.org:/pub/sendmail
1997-01-27 07:37:00 +00:00
Jordan K. Hubbard 6a484ce557 Add new Portugal mirror. 1997-01-27 00:16:15 +00:00
Jordan K. Hubbard 7ce6b270fd Allow both types of XFree86 setup script to be run at user choice. 1997-01-24 20:20:12 +00:00
Jordan K. Hubbard d733b8a9fb I need to learn to read man pages more closely. readlink() does NOT null
append the return string (bleah!) so you need to do it yourself.  This
explains why Bus and PS/2 meece weren't displayed in the Mouse selection
menu.
1997-01-24 19:31:53 +00:00
Jordan K. Hubbard 5214787fd5 OK, I've got two ideas to file in the "really seemed like a good idea
at the time, but on further reflection..." bucket with these changes.

1. Checking the media before frobbing the disks was a fine idea, and
   I wish it could have worked, but that leads to a rather difficult
   situation when you need to mount the media someplace and you're about
   to:

	a) Chroot away from your present root.
	b) Newfs the root to be.

   You're basically screwed since there's no place to stick the mount
   point where it will be found following the newfs/chroot (and eliminating
   the chroot in favor of just using the "root bias" feature would work
   great for the distributions but not the pkg_add calls done by the
   package installer).

2. Automatic timeout handling.  I don't know why, but alarm() frequently
   returns no residual even when the alarm didn't go off, which defies
   the man page but hey, since when was that so unusual?  Take out timeouts
   but retain the code which temporarily replaces the SIGINT handler in
   favor of a more media-specific handler.  This way, at least, if it's hanging
   you can at least whap it.  I think the timeout code would have been losing
   over *really slow* links anyway, so it's probably best that it go.

This should fix NFS, tape & CDROM installs again (serves me right for getting
complacent and using just the FTP installs in my testing).
1997-01-24 19:24:51 +00:00
Jordan K. Hubbard 76d01c999a This is a patch that makes some of the "partitions" --> "slice" to be
more consistant in our use of the terms for differentiation between PC
partitions and traditional BSD partitions.

Submitted-By: obrien@cs.ucdavis.edu (David O'Brien)
1997-01-24 07:47:17 +00:00
Jordan K. Hubbard 63eb3ecd42 Update russian mirrors. 1997-01-24 07:03:15 +00:00
David E. O'Brien ae462d03db Change from using chunk_n to slice_type_name().
Reviewed by:	jkh
1997-01-24 02:26:42 +00:00
Jordan K. Hubbard 7e698f84f0 *groan*. I broke tape extraction with the same optimization.
Fix that too.
1997-01-22 00:27:22 +00:00
Jordan K. Hubbard 898f607a63 Argh! Moving the media initialization to before the disk scribbling
section was a good thing, since it made it possible to detect media problems
*before* the installation started, but it also caused various things to
be mounted BEFORE the chroot() call, which definitely messes things up.

Fix this by detecting the pre-chroot() case and mounting into a subdir.
1997-01-22 00:15:51 +00:00
Stefan Eßer b755685be8 Add PCI LKM support:New -a option checks whether a driver has been assigned to a device. 1997-01-21 23:29:15 +00:00
Jordan K. Hubbard 202b8e214b Add ckdist. 1997-01-21 12:59:34 +00:00
Jordan K. Hubbard dcf118f17c ckdist - a handy utility for verifying the sanity of a distribution.
This will probably need to go away again someday when distributions get
folded into packages and there are no more dist files to check, but knowing
how long we've been waiting on THAT, this will be a welcome tool for the
interim.
Submitted by:	Robert Nordier <rnordier@iafrica.com>
1997-01-21 12:58:53 +00:00
Jordan K. Hubbard c9af0102c6 Make some of the less necessary user feedback #ifdef VERBOSE.
We could also make this stuff only come out when getpid() != 1
and thus avoid the install case (where it really is just too verbose,
and people have complained), but this seems less messy and no one
complained when tzsetup didn't print the final "things went fine!"
messages (which sort of contravene the UNIX spirit of only yelling
when you need to anyway).
1997-01-21 10:53:38 +00:00
David Nugent efc4a83cd0 Fix compile breakage: link against libutil. 1997-01-21 05:56:38 +00:00
Jordan K. Hubbard 6dfa1330e5 A couple of cosmetic tweaks to tape install method and fstab file format.
Submitted-By: Flemming Jacobsen <fj@schizo.dk.tfs.com>
1997-01-20 19:36:31 +00:00
Jordan K. Hubbard 2e59a10476 Rearrange the timeout code and also (whoops) provide for timeouts during
file opens, not just during file reads.
1997-01-20 19:26:44 +00:00
Jordan K. Hubbard 0f18f7f84e Add extra variables for the configuration of all packages, not just
the lynx browser.

Submitted-By: David O'Brien <obrien@cs.ucdavis.edu>
1997-01-20 16:13:43 +00:00
David Nugent b25b7bc1be Make cron login class savvy.
Use setusercontext() rather than setuid()/setgid()/setlogin()/initgroups()
which is all handled. Login environment is NOT set by this call as crontab
provides its own means of doing so.
1997-01-20 15:31:33 +00:00
Søren Schmidt 20a2630b11 Modified moused to use select rather than read. This fixes using
the PS/2 mouse (psm device).
Submitted by:	Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
1997-01-20 08:09:20 +00:00
Bill Paul 559605f1ec Fix bug that slipped through last big round of changes: sometimes
yp_next_record() is called without a key (from xdr_my_ypresp_all()),
in which case it returns the first key in the map. When doing this,
it also needs to update the key index in the map queue entry. Without
this, ypproc_all_2_svc() (and hence ypcat) don't work correctly.

Noticed by: Michael L. Hench <hench@watt.cae.uwm.edu>
1997-01-20 03:33:36 +00:00
Wolfram Schneider bfd34a4a60 Sort cross references. 1997-01-20 00:03:00 +00:00
Jordan K. Hubbard b4045b65fe Correct a real brain-o in my check for when a "fixup" should be run.
Don't recreate parent menus just for submenus - it's irritating.
1997-01-19 10:27:12 +00:00
Jordan K. Hubbard 0ebf0addab Use alarm's return status to more properly denote timeout rather than keeping
an icky global around.
1997-01-19 09:55:37 +00:00
Jordan K. Hubbard a0e47058d0 Fix a variety of problems with my timeout handling, make it more
configurable (you can now set the timeout interval), fix a crash-bug
when no network device was attached.
1997-01-18 19:18:26 +00:00
Jordan K. Hubbard 740e9a8981 Implement compiled-in config file handling a little better - now
that there's no filesystem on the boot.flp image we need to prompt
for the configuration floppy.
1997-01-18 16:37:15 +00:00
Poul-Henning Kamp 5f2d7aa755 Add the trickery to power the "Conrad" DCF77 receiver. 1997-01-18 08:43:21 +00:00
Jordan K. Hubbard c7bdc98ef3 Be more aggressive about timeouts. 1997-01-17 19:00:38 +00:00
Jordan K. Hubbard 135c95a582 Add timeout support to sysinstall's general media handling,
allow SIGINT to stand for "time out now!" in certain cases.
1997-01-17 15:58:58 +00:00
Jordan K. Hubbard f8ea17db2b Add device entries and documentation for Intel EtherExpress Pro/10 driver. 1997-01-17 14:18:10 +00:00
Jordan K. Hubbard 79e6e0e3a2 Whoops! Fix an infinite loop I lovingly introduced into this code
with a previous commit.
1997-01-17 14:05:37 +00:00
Jordan K. Hubbard 45680321c0 Pass LOAD_CONFIG_FILE variable through, if set (makes Paul Traina's life
easier).  Only run install.cfg if running as init.  It's something of
a security hole otherwise. :)
1997-01-17 10:57:26 +00:00
Jordan K. Hubbard 3b9b7e6177 Now that I know which parts of the installation really need it (since
there's no menu display bug to work around now), be far more selective
in my use of DITEM_RECREATE (which is slow and involves much screen I/O).
1997-01-17 08:47:13 +00:00
Alexander Langer 8abdc2eb40 Sweep through the tree fixing mmap() usage:
- Use MAP_FAILED instead of the constant -1 to indicate
    failure (required by POSIX).
  - Removed flag arguments of '0' (required by POSIX).
  - Fixed code which expected an error return of 0.
  - Fixed code which thought any address with the high bit set
    was an error.
  - Check for failure where no checks were present.

Discussed with:	bde
1997-01-16 21:58:40 +00:00
Jordan K. Hubbard 306e292622 Fix mishandling of extraction return status in commit. 1997-01-16 15:00:25 +00:00
Jordan K. Hubbard 2974f2c077 Cope with Open_Disk() failure much more gracefully. 1997-01-16 14:42:21 +00:00
Jordan K. Hubbard 78147d1db8 Modification to sliplogin prints desitination's IP address before
going into SLIP mode, useful for scripts that can automatically
	grok IP addresses ala Trumpet Winsock.

Closes PR#2293

Submitted-By: andrew@fortress.org
1997-01-16 11:47:44 +00:00
Jordan K. Hubbard b449e9a83e Damn! Forgot to update lynx also. 1997-01-16 10:51:53 +00:00
Jordan K. Hubbard 2bd4114e2a Minor cleanup, adjust for latest version of apache web server. 1997-01-16 10:48:00 +00:00
Jordan K. Hubbard 37c16c5340 Clean up a long-standing bug in the scripting code. You could set variables,
but you couldn't call functions!  Now you can do both.
Guard against whitespace pollution in variable names.
1997-01-16 10:24:09 +00:00
Jordan K. Hubbard 69bab6f567 Use a better dialog for flagging field validation errors.
Pointed-Out-By: msmith
1997-01-16 09:45:35 +00:00
Jordan K. Hubbard d42e16a0d6 Keep our serial ports distinct so that first device is not found for
all (closes PR#2296).
Print better FTP failure diagnostics
Do better media failure checking in install.
1997-01-15 16:21:10 +00:00
Jordan K. Hubbard c5e12995c6 Put upgraded files in their own directory - using the suffix was a bad idea. 1997-01-15 15:32:04 +00:00
Jordan K. Hubbard 615d72264e Register SLIP/PPP devices properly again.
Make the /etc resurrection more sensible for upgrade.  No longer
quite so annoying.
1997-01-15 13:39:50 +00:00
Jordan K. Hubbard 840c833532 Add some missing parameters to msgConfirm() which produced the effects
noted in PR#2454
1997-01-15 11:48:37 +00:00
Jordan K. Hubbard 6f1cc2d697 Don't call systemShutdown() from signal handler so that the media device
is closed.  The FTP library doesn't expect to be called recursively from
an interrupt. :)
1997-01-15 08:01:10 +00:00
Jordan K. Hubbard 4b5985f238 Make upgrade allow reselection of failed media. 1997-01-15 07:28:25 +00:00
Jordan K. Hubbard 3f0d701c2d Make the bindist-only checks actually work.
Add code which theoretically should let you get a disk up from
start to finish while running multiuser, using your existing /dev
entries.
1997-01-15 07:06:39 +00:00
Jordan K. Hubbard 4a57e2940f Make the FTP installation codepath a lot more defensive. Trap
bogus path and FTP I/O errors much earlier, offer retry possibilities
at steps along the way so you don't have to resume from the very beginning
again on a hard error.
1997-01-15 06:30:50 +00:00
Jordan K. Hubbard 9b1696b002 Fix several problems:
1. Bus mouse selection didn't show up properly in mouse menu.
2. U&G management screen didn't respect cancel properly.
3. Novice not prompted to add users or set root password during installation.
4. Username length changes screw up user management form.
1997-01-15 03:57:50 +00:00
Jordan K. Hubbard 9e5c9c0856 Set defaults more rationally through the item selection loop. 1997-01-15 03:24:44 +00:00
Jordan K. Hubbard 91188fac62 Accept emacs-style editing keys for traversal and ESC as an abort character. 1997-01-15 02:52:00 +00:00
Bruce Evans 48ee759d59 Fixed misapplied patch in rev.1.2. A loop continuation test was outside
the loop.  This usually caused most of the output to be skipped.
1997-01-14 10:30:45 +00:00
Jordan K. Hubbard 1130b656e5 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Jordan K. Hubbard a1fcb52813 Correct a problem which broke +DISPLAY file handling. 1997-01-13 10:14:26 +00:00
Peter Wemm fbc2342cca Implement minimal login class support (ie: does a setusercontext()).
Enabled by defining LOGIN_CAP in Makefile, on by default.
1997-01-13 02:52:30 +00:00
Jordan K. Hubbard 60191fe961 Add more protection when running as init and don't do stupid things.
Fix looping in fixit cdrom selection by adding a missing break.
Move unmount of cdrom down to proper place.
1997-01-12 11:13:43 +00:00
Bill Paul 1f552b61b8 Ack. When I moved the getsockopt() calls, I forgot to move the lines
that initialize the getsockopt() args (type and len) too.
1997-01-12 08:18:17 +00:00
Bill Paul 24ec979b41 - Save parent pid and check current pid against it upon entry to
terminate(). This makes doubly sure we don't trip the SIGTERM handler
  in a child process. Suggested by: phk.

- It's int main(argc, argv), not void main(argc, argv), gosh darn it.
1997-01-12 02:48:09 +00:00
Bill Paul 341460c3b5 Correct two bugs:
- If a child receives a SIGTERM, it will call the terminate() function
  and end up doing the shutdown procedurs that should really only be
  done by the parent. Set the SIGTERM behavior back to SIG_DLT in the
  child after fork()ing.

- If the parent fails to read data back from the child because the
  child has exited, it will call rpc_received() with bogus tdata that
  can cause the parent to SEGV. Make handle_children() detect this
  condition correctly and handle it sanely.

*sigh* Another 2.2 candidate.
1997-01-11 17:16:18 +00:00
Peter Wemm d5c3a37026 This is purely a bandaid to lower the risk of running out of slots
for the local interfaces.  It's not uncommon to have >32 interfaces
these days.  This is a temporary patch until it's fixed to use sysctl
or whatever.
1997-01-11 09:21:29 +00:00
Joshua Peck Macdonald f95f08edb3 Still going. 1997-01-11 05:41:39 +00:00
Nate Williams 11f1a97fce The 2.2-Beta version doesn't have the brackets after the if statement.
This has the effect of making every link a "passthrough" which means the
TCP or UDP port won't be freed after link deletion -- so there could be
eventual port exhaustion if the program were allowed to operate long
enough.

Submitted by:	Charles Mott <cmott@srv.net>
1997-01-10 08:32:05 +00:00
Warner Losh 99c02d39bc Fix many buffer overruns in the code. Specifically, disallow ExpandString
to be used to expand things beyond the size of the buffer passed in.  Also
do a general cleanup of sprintf -> snprintf as well as strcpy and strncat
safety.  Also expand some buffers to allow for the largest possible data
that might be used.

This is a 2.2 candidate.  However, it needs to be vetted on -current
since little testing has been done on this due to my lack of PPP on
this machine.

Reviewed by:	Jordan Hubbard, Peter Wemm, Guido van Rooij
1997-01-10 07:53:28 +00:00
Mike Pritchard 34cf430230 Add a man page for mixer(8). 1997-01-10 06:33:13 +00:00
Bruce Evans 5d2c7b5b1f Fixed DPADD (don't put -L in it). 1997-01-10 05:24:55 +00:00
Bruce Evans 248e6ea0a3 Oops, the last change added an extra ${LIBSCRYPT} to ${DPADD}, but
it should have reordered the existing one (so that ${DPADD} can be
compared with ${LDADD}).

Use ${} consistently.
1997-01-10 05:18:23 +00:00
Bruce Evans 7afeece433 Use ${} consistently. 1997-01-10 05:18:02 +00:00
Mike Pritchard 4fc96a56f5 Fix a couple of typos in a comment and in the usage output. 1997-01-09 07:36:14 +00:00
Mike Pritchard c0d4d042e9 Fix some formatting problems. Closed PR# 2377.
Pointed out by: David O'Brien
1997-01-08 06:42:27 +00:00
Bill Paul 9c171de035 yp_server.c:
- Fail YPPROC_ALL requests when we hit the child process limit. This
  is a little harsh, but it helps prevent the parent from blocking
  and causing other requests to time out.

yp_dnslookup.c:
- Check for duplicate RPC transaction IDs that indicate duplicate
  requests sent due to RPC retransmissions. We don't want to send
  a second DNS request for the same data while an existing request
  is in progress.

- Fix small formatting bogon in snprintf() in yp_async_lookup_addr().
1997-01-07 06:07:21 +00:00
Nate Williams 9c45d91e00 Fix typo I introduced in the DEBUG code last night. 1997-01-06 17:12:00 +00:00
Jordan K. Hubbard fb25893d57 Add extra tweak for -current compilation and some debugging. 1997-01-06 11:32:44 +00:00
Jordan K. Hubbard 29d851f6c2 Do a better job of CDROM detection.
Use consistent spelling throughout.
Remove unmount in fixit_common() since that's bogus in the CDROM case and
properly "shut down" the media device instead.
1997-01-06 11:10:25 +00:00
Nate Williams 16a960917f - A pass at staticizing things.
- Try to have all output go through the routines in util.c [logerr(),
  log_1s(), die()]
- Add *some* code in util.c to allow pccardd to run out of sysinstall.

Submitted by: Mostly me, but some by Tatsumi Hosokawa <hosokawa@jp.FreeBSD.org>
1997-01-06 08:35:06 +00:00
Nate Williams dc9d5eda2a Alphabetize the sources in the Makefile (this will help us to sync with
the Nomad sources in the future).
1997-01-06 08:11:23 +00:00
Bruce Evans 856a02a96f Updated DPADD to match LDADD. 1997-01-06 07:05:08 +00:00
Bill Paul cb73ffc8b7 Eek: the 'check for / in map names' test I added a while back detects
slashes in map names but doesn't return failure if it finds them. Add
missing return(1) to fix this.
1997-01-06 06:27:55 +00:00
Nate Williams 3a9b8d5000 Remove an un-needed static declaration. 1997-01-06 06:09:13 +00:00
Nate Williams e46ea891b4 Re-write the driver to use getopt(), add the new display suspend
function of the kernel, and other assorted misc. cleanups.

Submitted by:	nate & HOSOKAWA, Tatsumi <hosokawa@jp.FreeBSD.org>
1997-01-06 06:04:42 +00:00
David Nugent f1d684fad9 Adds optional NIS passwd file updating and optionally rebuilding
NIS maps.

Suggested by:	Peter Wemm
1997-01-05 07:15:37 +00:00
David Nugent c7fefa0352 Remove duplicated #include. 1997-01-05 04:54:24 +00:00
David Nugent 9d8caa0abd Fix reference /etc/acct/pw.conf -> /etc/pw.conf.
Pointed-Out-By: Peter Wemm.
1997-01-05 04:05:22 +00:00
Stephen McKay e06d6c7b85 Fix a couple of typos.
Safe for 2.2.
1997-01-04 16:12:06 +00:00
Jordan K. Hubbard 719de2bced Clean up device handling WRT slip and ppp devices. An incomplete transition
from one convention to another had things pretty fouled up in here.
1997-01-04 13:29:10 +00:00
Jordan K. Hubbard 6befaa491c Add a few strategic screen clears in network setup.
Disable saving of SCSI device parameters in userconfig saving in hopes
of working around a reported problem in the no-device case; there's no
point in saving this information here anyway.

2nd patch submitted-by:  "Eric L. Hernes" <erich@lodgenet.com>
1997-01-04 12:36:39 +00:00
Garrett Wollman 702a1d0148 Update to match changes in <net/if.h>. 1997-01-03 20:19:50 +00:00
Jordan K. Hubbard e960bb4911 Unlink LogName before attempting to open it. Since we now have a lovely
bug in syslogd which causes it to die after random amounts of time (widely
reported), this at least allows the administrator to easily restart it
without wondering why it simply exits again each time.
1997-01-03 07:13:20 +00:00
Jordan K. Hubbard a686b628ba Adjust the maximum displayed length.
Submitted-By: Tatsumi Hosokawa <hosokawa@mt.cs.keio.ac.jp>
1997-01-03 06:41:41 +00:00
Jordan K. Hubbard e5b09b7d10 Do something I've wanted to do for quite some time - collapse all the
common layout code into some work functions and make all the layout-using
routine adopt them.  Also reorganize includes and generally clean up.
1997-01-03 06:32:39 +00:00
David Nugent f2400d4658 Implemented /home -> /usr/home symlink kludge.
If home basedir would be created in the root partition, create
it under /usr instead, and symlink /basedir -> /usr/basedir.
1997-01-03 04:42:18 +00:00
Jordan K. Hubbard 434a0eeb38 1. Correct bogon in cdromInit when running multi-user which took cdrom offline
if wrong version.
2. Make sure network device is initialized in ftpInit
3. Eliminate bogus size values in the menus.  For now, we'll have to admit
   that nobody's added it up yet.  In the future, these menus should be
   build dynamically anyway, not declared static.
4. Add more debugging to networking code to chase the mystery ppp device
   problem.
1997-01-01 12:36:09 +00:00
Peter Wemm 6c9cfdd2f1 Remove dmalloc here too. 1997-01-01 09:30:13 +00:00
Jordan K. Hubbard 95183e1c42 Include ns_udp.c here too. 1997-01-01 05:17:23 +00:00
Bruce Evans 015a0dc2e4 Use ${COPY} instead of -c for installing non-source files. 1997-01-01 04:22:23 +00:00
David E. O'Brien 1a728844c1 Added the package catagories astro, chinese, mbone, and vietnamese;
along with applicable descriptions.
1996-12-31 14:37:06 +00:00
Peter Wemm fc7f1f8f58 Add two missing links (hoststat/purgestat) 1996-12-31 12:38:57 +00:00
Mike Smith 8c0e9645ab Cosmetic fix for pppd; login() updates both utmp and wtmp, so don't
call logwtmp() again ourselves.  This avoids 'last' showing duplicate
logins.

Submitted by:	Daniel O'Callaghan <danny@hilink.com.au>
1996-12-31 01:17:07 +00:00
Peter Wemm ae5fc38127 Make the select() call work like the others in the system.. ie: don't
assume that the timeval will be preserved.  As the man page says:
".. it is unwise to assume that the timeout value will be unmodified
by the select() call."  This happens on Linux and on my system at least.
1996-12-30 18:51:59 +00:00
Peter Wemm 09dfbc4024 Fix harmless bug found by new pointer-to-function prototypes. 1996-12-30 15:32:43 +00:00
Peter Wemm 08bdf9d1a9 Fix problem caused by new prototypes. Cast object to (caddr_t) as
expected.
1996-12-30 15:31:26 +00:00
David Nugent 39791ab333 1) Base home directory is created if it does not already exist if
useradd -m or useradd -D -b are used.
2)	Hyphen allowed in username if not first character. Fix trivial
	bug in error fmt string.
3)	/etc/skeykeys updating changed to do 'inplace' update, commenting
	out a username rather than removing it completely.
1996-12-30 11:52:34 +00:00
Jordan K. Hubbard 33bdf4c4ae Remove breakage of 1.8.2.2, choose slightly better character for quit. 1996-12-30 09:01:50 +00:00
Wolfram Schneider d26d5268ed Allow dash -' (except for first char) and underscore _' in usernames.
pointed out by: max
1996-12-29 21:56:31 +00:00
Wolfram Schneider 9a43d0d77b remove group limits checks 1996-12-29 15:06:52 +00:00
Wolfram Schneider c84f83e0c2 increase username length limit to 16 1996-12-29 15:05:19 +00:00
Jordan K. Hubbard 18926d84a6 Support the use of the 2nd CDROM as a fixit aid. Also put the EHS
into a submenu in case you need to start it again (or at some other point
in the installation).

Submitted-By: joerg
1996-12-29 05:51:40 +00:00
Jordan K. Hubbard 38597f2be6 Add a "catpages" distribution for the catman stuff.
Submitted-By: joerg
1996-12-29 05:28:41 +00:00
Peter Wemm 619b759747 Allow an optional setting to specify a .cf file to be built and installed
into /etc during the sendmail build.  Not for the feint hearted.
(I have been using something like this for some time since I only ever
 edit my system's .mc file)
1996-12-28 18:11:08 +00:00
Peter Wemm 4a4550eb01 Use the label that Bruce suggested, it seems the src/etc/Makefile "helpers"
are all prefixed with "etc-".
1996-12-28 18:02:06 +00:00
Peter Wemm 9ced612d99 Add a hook for installing the /etc/sendmail.cf file
Submitted by: bde
1996-12-28 17:57:28 +00:00
Poul-Henning Kamp 35c40fc2fa Be a little less fatalistic in case of problems.
Reviewed by:	phk
Submitted by:	wosch
1996-12-28 13:50:34 +00:00
Warner Losh 2519fdb867 Fix various buffer overflow cases in sliplogin. These might have been
able to be exploited, or might not.  However, it is better to be safe
than sorry.

Definitely a 2.2 fix, and a -stable if there is someone to commit it.

Reviewed by:	Jordan Hubbard <jkh@freebsd.org>
Submitted by:	Marc Slemko
1996-12-27 05:49:51 +00:00
Peter Wemm d7b025c3ae Tidy up the generated config.c file. Use #include "opt_config.h", comment
out text after #endif line, add missing \n at end of file, only install new
config.c if it's different to the last one which preserves the timestamp.
1996-12-26 23:40:32 +00:00
Mike Pritchard f52a35b581 Fix some spelling errors.
Jordan, I'll let you merge this into 2.2o that I don't
stomp on you.
1996-12-26 21:53:11 +00:00
Jordan K. Hubbard 9f2e984973 Clean up some calls to close(). 1996-12-26 21:03:04 +00:00
Jordan K. Hubbard 0495d47f7e Fix fixit floppy. 1996-12-26 03:32:50 +00:00
Wolfram Schneider c69a537c8f Sort cross references. 1996-12-26 02:02:31 +00:00
Bill Paul adc4fa336b More async resolver refinements:
- yp_main.c: Always add the resolver socket to the set of fds
  monitored by select(). It can happen that pending == 0 but we
  still have some data in the socket buffer from an old query.
  This way, the data will be flushed in a timely manner.

- yp_extern.h: remove proto for yp_dns_pending() since we don't need
  it anynmore.

- yp_server.c: call yp_async_lookup_name()/yp_async_lookup_addr()
  functions with the svc_req pointer as an arg instead of the xprt.
  (The svc_req struct includes a pointer to the transport handle,
  and it also has the service version number which the async DNS
  code will need. (see below))

- yp_dnslookup.c:

   o Nuke yp_dns_pending() since we don't need it anymore.
   o In yp_run_dnsq(), swallow up and ignore replies if no requests
     are pending or the ID doesn't match any of the IDs in the queue.
   o In yp_send_dns_reply(), we assume that we will always be
     replying to an NIS v2 client. While this will probably always
     be the case, we do support the v1 'match' procedure, and it
     has a different result struct than v2. For completeness,
     support replying to both NIS v1 and v2 clients.
   o Update the queue entry structure to include a member to
     keep track of the NIS version number.
   o Have yp_async_lookup_name/addr() extract the version number
     from the svc_req structure and save it with the queue entry
     for yp_send_dns_reply() to inspect later.
   o Add some comments.
1996-12-25 18:10:35 +00:00
Bill Paul 926f037af9 Fix some bugs:
- Don't dereference a NULL hostent pointer (if T_PTR lookup fails).

- Today I asked myself: "Self, you wrote this nifty async resolver
  that does a great job handling delayed replies to clients using
  the UDP transport, and the yplib code in libc always uses UDP
  (except for yp_all()). But what if some dork makes a DNS lookup using
  TCP?" Being the only dork on hand at the time, I tried it and was
  enlightened. As I suspected, my transaction ID frobbing hacks cause
  fireworks if called on a TCP transport handle (duh: the structures
  are different). Fix: check the type of socket in xprt->xp_sock using
  getsockopt() and don't use svcudp_get_xid() and svcudp_set_xid() for
  anything except SOCK_DGRAM sockets. (Since accept() gives you a
  new socket for each connection, the transaction ID munging isn't
  needed for TCP anyway.)
1996-12-24 02:44:52 +00:00
Wolfram Schneider 13608f6661 comma typos 1996-12-23 23:09:55 +00:00
David Nugent b5cc56ab27 Correct file modes on updated /etc/skeykeys. 1996-12-23 02:27:29 +00:00
Mike Pritchard 4c574b956a Some more man page cleanup. 1996-12-23 02:19:12 +00:00
Mike Pritchard 787a18dba6 Minor internal mdoc usage changes. 1996-12-23 00:57:46 +00:00
Mike Pritchard fefbe220bc Convert to mdoc format. 1996-12-23 00:22:00 +00:00
Mike Pritchard 574d7dc09d Minor style fixes.
I also renamed the adduser "-quit" option to "-quiet", since
it is supposed to be the same as the -s/-silent option,
and -quit must have beena typo.
1996-12-23 00:10:22 +00:00
Bill Paul 180807d214 Big round o changes:
- yp_dblookup.c: Create non-DB specific database access functions.
  Using these allows access to the underlying database functions without
  needing explicit knowledge of Berkeley DB. (These are used only
  when DB_CACHE is #defined. Other programs that use the non-caching
  functions (yp_mkdb, ypxfr, yppush, rpc.yppasswdd) shouldn't notice
  the difference.)

- yp_dnslookup: Implement async DNS lookups. We send our own DNS
  requests using UDP and put the request in a queue. When the response
  arrives, we use the ID in the header to find the corresponsing queue
  entry and then send the response to the client. We can go about our
  business and handle other YP requests in the meantime. This way, we
  can deal with time consuming DNS requests without blocking and without
  forking.

- yp_server.c: Convert to using new non-DB-specific database access
  functions. This simplifies the code a bit and removes the need for
  this module to know anything about Berkeley DB. Also convert the
  ypproc_match_2_svc() function to use the async DNS lookup routines.

- yp_main.c: tweak yp_svc_run() to add the resolver socket to the
  set of descriptors monitored in the select() loop. Also add a
  timeout to select(); we may get stale DNS requests stuck in the
  queue which we want to invalidate after a while. If the timeout
  hits, we decrement the ttl on all pending DNS requests and nuke
  those requests that aren't handled before ttl hits zero.

- yp_extern.h: Add prototypes for new stuff.

- yp_svc_udp.c (new file): The async resolver code needs to be able
  to rummage around inside the RPC UDP transport handle in order to
  work correcty. There's basically one transport handle, and each time
  a request comes in, the transaction ID in the handle is changed.
  This means that if we queue a DNS request, then we handle some other
  unrelated requests, we will be unable to send the DNS response because
  the transaction ID and remote address of the client that made the DNS
  request will have been lost. What we need to do is save the client
  address and transaction ID in the queue entry for the DNS request,
  then put the transaction ID and address back in the transport handle
  when we're ready to reply. (And then we have to undo the change so
  as not to confuse any other part of the server.) The trouble is that
  the transaction ID is hidden in an opaque part of the transport handle,
  and only the code in the svc_udp module in the RPC library knows how
  to handle it. This file contains a couple of functions that let us
  read and set the transaction ID in spite of this. This is really a
  dirty trick and I should be taken out and shot for even thinking about
  it, but there's no other way to get this stuff to work.

- Makefile: add yp_svc_udp.c to SRCS.
1996-12-22 22:30:58 +00:00