Commit graph

2560 commits

Author SHA1 Message Date
Peter Wemm 95cddebbe5 - update MNT_* flags to match lite2 properly. get rid of old #if 0 flags
that are gone, add new missing ones.
- don't dereference kernel relative pointers in user space for() loops, it
doesn't work real well.
1997-03-25 15:48:14 +00:00
Jordan K. Hubbard 38abfbea7d YAMF22 1997-03-25 03:12:59 +00:00
Andrey A. Chernov aab4ac4dad Print negative values only for two cases used
in config for iobase: -1 (auto) and -2 (none)
Other values are printed as big port numbers
1997-03-25 02:54:34 +00:00
Andrey A. Chernov 3be1497f41 Fix iobase printing for autodetect and none cases
(negative numbers was printed as very big ports)
1997-03-25 02:35:12 +00:00
Andrey A. Chernov 6a95b13d8d Use srandomdev() to initialize RNG 1997-03-24 16:01:46 +00:00
Andrey A. Chernov a200d18a76 Initialize RNG only once
Use srandomdev() now
1997-03-24 15:09:41 +00:00
Warner Losh 94cf2e751d Fix small race window when creating portal socket.
Obtained from: OpenBSD
1997-03-24 05:53:12 +00:00
Joerg Wunsch 3f5323eb71 Make the argument handling for select() less bogus. Also, move the
amq service from UDP to TCP for better reliability.
1997-03-22 23:12:08 +00:00
Jordan K. Hubbard 4f09c5ae25 YAMF22 1997-03-22 15:20:51 +00:00
Jordan K. Hubbard 63cf099d1c Add Iceland. 1997-03-21 05:18:20 +00:00
David Nugent dc7eb240ea Fix possible (not stack) overflow from -d <dir> commandline option. 1997-03-20 03:35:06 +00:00
Jordan K. Hubbard ee49f49829 YAMF22 1997-03-19 10:09:46 +00:00
Jordan K. Hubbard eefc5acdc5 Some of my pending merge changes, Paul Traina's more flexible config
file loading code.
Submitted by:	pst
1997-03-19 10:09:28 +00:00
Bruce Evans ac89160a93 Removed old bogus prerequisite <sys/select.h>. Cleaned up #include mess. 1997-03-19 04:44:07 +00:00
Bruce Evans 3ce29386aa Fixed missing function types in synopsis. 1997-03-19 00:32:42 +00:00
Mike Pritchard 862e2d600b Be consistent with the handbook and the release notes and specify all
mailing list addresses as freebsd-*@FreeBSD.org.

Pointed out by: Kenneth R. Westback <krw@tcn.net>
1997-03-18 07:02:32 +00:00
Andrey A. Chernov 7b50678a36 Convert srandom() arg cast to Lite2 style 1997-03-17 14:47:56 +00:00
Mike Pritchard 4b0eb76dc9 Typo police.
Partially obtained from: NetBSD PR# 3333
1997-03-16 07:12:20 +00:00
Jordan K. Hubbard c67ba61175 YAMF22 1997-03-15 18:01:45 +00:00
Jordan K. Hubbard fd27ec2d05 Increase the size of the email address field.
Requested-By: joerg
1997-03-15 16:24:32 +00:00
Peter Wemm 9efe2eccdd Tone down the paranoia a bit in from the previous commit. setusercontext()
automatically Does The Right Thing when lc == NULL, which just happens to
be what the extra code in cron was trying to do.  Simplify.
1997-03-14 14:45:30 +00:00
Peter Wemm 39da5de262 Activate HASSETUSERCONTEXT to set resource limits while delivering
to pipes in .forward files, but with a slight bugfix to the code.
1997-03-14 14:26:35 +00:00
Peter Wemm c00d650f25 For some reason, the old login class code didn't seem to be working here.
I suspect it was because the child exec code's parent was doing the
initial lookups, then forking, then doing other things (possibly trashing
the static data in the getpw*() buffer), then attempting to dereference
*pwd and *lc.  Also, no error checking appeared to be done - I've allowed
it to fall back to the old "become user" code on critical failure rather than
risk running a user's cron jobs as root.
1997-03-14 13:48:04 +00:00
Jordan K. Hubbard 6ebe9a26f2 o Remove obsolete references in XFree86 menu
o Add version information to registration (suggested by David)
1997-03-14 05:17:12 +00:00
Joerg Wunsch d086327d14 Save and restore the state of the variable Initialized inside die().
Otherwise, the shutdown message will print out with 15 NUL bytes in
front, due to a missing timestamp.
1997-03-14 01:27:02 +00:00
Brian Somers 9163ee5e9d Oops - forgot to document the new -HUP action.
This should make 2.2 if the HUP stuff (earlier today) does.
1997-03-13 21:39:41 +00:00
Brian Somers 6e4959f072 Closes pr 2711
Fix -background option.  Parent returns after the line is established
(or not established).
Definitely a candidate for 2.2
1997-03-13 21:22:09 +00:00
Bruce Evans 45d1562d43 Remove old output file, if any, before creating the output file, in
case the file is a stale link.

Reviewed by:	wollman
1997-03-13 18:56:18 +00:00
Brian Somers c6c740be8b Requested by: Harlan Stenn <Harlan.Stenn@pfcs.com>
Accept SIGHUP as a "re-open logfile" signal.  As ppp
doesn't set it's serial line to it's controlling terminal,
we can use HUP :)

This is a candidate for 2.2.  The log.[ch] changes won't
conflict, but the main.c changes will.  We just want to change the
kill(...,SIGHUP) to a SIGTERM and change the signal(SIGHUP,Hangup)
to a pending_signal(SIGHUP,LogReOpen).
1997-03-13 14:53:55 +00:00
Brian Somers f5ff0f7c99 Reviewed by: ache@freebsd.org
These changes should fix the signal "problems" in ppp.
The signal changes should really be put into 2.2 too !
The following patches should do it.  There were some other
changes made by Andrey recently that havn't been brought
into 2.2, it may be worth doing them now.
1997-03-13 12:45:35 +00:00
Ollivier Robert 2bb69a4847 1. change tty handling from sgttyb to termios,
2. fix a potential buffer oflow,
3. makes watch(8) conform to sysexits(3).

Not a strong 2.2 candidate even if it would be nice.

Reviewed by:	joerg, imp
1997-03-13 08:35:45 +00:00
David Nugent 3875dc8d63 Submitted by: Greg Ungerer <gerg@stallion.oz.au>
Add manpages for stl, stli drivers.
Add manpages for stlload, stlstats.
Update stli bootcode.
Update stlload, stlstats to revision 1.0.0 from author.
1997-03-13 04:21:44 +00:00
Mike Pritchard 42deda5d1a Add cvs Id. 1997-03-12 15:08:06 +00:00
Peter Wemm 9bdaf328ef Make amd actually work instead of just compiling. The new Lite2 code
was not setting the version number in the nfs_args data to mount(2), so it
was returning EFAULT.  Perhaps the nfs_args version number was something
we added at some point?
1997-03-12 08:29:44 +00:00
Jordan K. Hubbard db9fff5761 Tidy up generated fstab 1997-03-12 02:31:28 +00:00
Jordan K. Hubbard 7d98f8beea Fix a long-standing bug with the label editor I just found (you could
mount two dos partitions with the same name).

Neaten up a dialog box that was encroaching on the right edge.
1997-03-11 17:51:01 +00:00
Jordan K. Hubbard 06ffcdb202 YAMF22 1997-03-11 16:44:00 +00:00
Joerg Wunsch 4b3d276343 YAMF22 (rev 1.70.2.10, added blurb to explanations) 1997-03-11 16:27:25 +00:00
Peter Wemm 9136d11989 Update to work under Lite2 includes 1997-03-11 15:57:44 +00:00
Peter Wemm fe15802099 I feel sick. :-( There is some really, truely, shameful stuff in here
to try and work around the nfsv3 headers in the post-lite2-kernel era.
This program somehow manages to make just about every #include conflict
with everything else. :-(
1997-03-11 15:51:36 +00:00
Peter Wemm b7ecd01cb0 Update to compile under Lite2 fs include layout 1997-03-11 14:26:52 +00:00
Peter Wemm ca54d4017a Update to compile under Lite2 includes 1997-03-11 14:25:31 +00:00
Andrey A. Chernov f2a6c90b00 Fix srandom arg according to Lite2 1997-03-11 14:11:43 +00:00
Peter Wemm 464701bbdc Merge from Lite2 (use special dbopen flags) 1997-03-11 13:01:42 +00:00
Peter Wemm 9c5cdfe0af Merge Lite2 changes 1997-03-11 13:00:41 +00:00
Peter Wemm 08966bd5fd Merge from Lite2 (use new getvfsbyname() interface) 1997-03-11 12:51:00 +00:00
Peter Wemm 87564113d7 Merge from Lite2 (use new getvfsbyname() and mount(2) interface, cleanup) 1997-03-11 12:43:45 +00:00
Peter Wemm 4a4c52857e Merge from Lite2 (use new getvfsbyname() and mount(2) interface) 1997-03-11 12:40:45 +00:00
Peter Wemm f7c9eeddef Kill sup from the main sources now that the ports version is updated.
This puts it on the same footing as cvsup.  It's been suggested on
numerous occasions that I shouldn't have imported it in the first place,
and now that sup has outlived it's usefulness.....  Boom!
1997-03-11 10:52:21 +00:00
Jordan K. Hubbard 9a598d6b3f Merge all my sysinstall changes over to the 2.1 branch.
I just have this feeling... :)
1997-03-11 09:29:42 +00:00
Jordan K. Hubbard e7a132b4e1 YAMF22 1997-03-11 06:40:38 +00:00
Jordan K. Hubbard 628febdfb7 Sync with 2.2. 1997-03-10 21:11:57 +00:00
Jordan K. Hubbard d5867457a2 Update russian mirrors. 1997-03-10 19:38:14 +00:00
Andrey A. Chernov 359ceb95ec Do not re-initialize random numbers generator several times.
Use ^ getpid() to produce better initial state.
1997-03-10 08:04:15 +00:00
Andrey A. Chernov 87e63218ab Detect failure open condition for direct mode now
Don't assume that modem descriptor must be >=3 in CloseModem,
just assume it is any valid descriptor >=0
1997-03-10 06:54:58 +00:00
Andrey A. Chernov 780700e5ed Don't waste time scanning tun_in+10 descriptors, scan exactly what
we need now.
Don't assume that file descriptor can't be 0 (many places)
Protect FD_* macros from being used with negative descriptors
Shorten MS EXT show help to fit 80 cols
1997-03-10 06:21:02 +00:00
Jordan K. Hubbard 5279ffe115 Add registration help screen. 1997-03-09 22:35:12 +00:00
Jordan K. Hubbard 7c8f98f5b7 Add a registration screen so we can finally start counting our little user
puppies.
1997-03-09 22:25:49 +00:00
Andrey A. Chernov 8ea7f0577b cdefs cleanup 1997-03-09 20:09:17 +00:00
Andrey A. Chernov bbea88d05d I remove pending signals completely, they are not useless, they are
dangerous! Signal handlers themself must be fixed to not call malloc,
but no pended handlers, it will be correct fix. In finite case each signal
handler can set some variable which will be analized later, but calling
handler functions manually is too dangerous (f.e. signals not blocked while
the handler or handlers switch executed in this case). Of course this
code can be fixed instead of removing, but it not worth fixing in any case.

Should go into 2.2

In addition sig.c code shows following dangerous fragments (there can be more,
but I stop after two):

This fragment

    if (fn == SIG_DFL || fn == SIG_IGN) {
	handler[sig-1] = (sig_type)0;
	<------------- here
        signal(sig,fn);
    } else {

cause NULL pointer reference when signal comes
"here", but more worse fragment is below:

void handle_signals() {
    int sig;

    if (caused)
       for (sig=0; sig<__MAXSIG; sig++, caused>>=1)
           if (caused&1)
               (*handler[sig])(sig+1);
}

caused is bitmask which set corresponding bit on each signal coming.
And now imagine, what happens when some signal comes (bit sets) while loop
is executed (see caused>>=1 !!!)

In this light carrier drop situation was (as gdb shows)
1. SIGSEGV in handle_signals because some junk called as *handler reference.
2. Since SIGSEGV was pended too (== never happens),
it can cause various range of disasters.
1997-03-09 20:03:51 +00:00
Wolfram Schneider eac4b079c7 Support comments in password database (/etc/master.passwd).
Comments in group database (/etc/group) are currently not
supported - adduser silently delete blank lines and comments.
1997-03-09 12:21:45 +00:00
Wolfram Schneider 1e85e4dbb0 Cleaned up some messages, added a check to remove a leftover popd file
from /var/mail, added a routine to delete the removed user's files
from /tmp, /var/tmp, & /var/tmp/vi.recover, and added code to kill any
running processes owned by the removed user).  I've also added a flag
for non-interactive execution, cleaned up the man page, and adjusted
my address.

Submitted by: ghelmer@cs.iastate.edu (Guy Helmer)
1997-03-08 18:04:45 +00:00
Jordan K. Hubbard 15d8c5b5a3 YAMF22 1997-03-08 16:17:49 +00:00
Wolfram Schneider eb0abfcc18 Allow comments in password database. The comments are copied from
the password file into /etc/master.passwd and optional (-p) into
/etc/passwd. Enable this feature with the compile
option -DPASSWD_IGNORE_COMMENTS.

The character `#' introduces a comment. Leading spaces and tabs are
ignored: '^[ \t]*#.*\n$'

Count an empty line - only spaces, tabs or newline - also as a comment.
An empty line at the bottom of /etc/master.passwd is a common
novice error and increased my mail load: '^[ \t]*\n$'
1997-03-08 14:09:24 +00:00
Jordan K. Hubbard c29c9ac418 YAMF22 1997-03-08 12:58:29 +00:00
Andrey A. Chernov 0b6828d14d Unpend all signals before execv, it not makes any sense to pend them here
Should go into 2.2
1997-03-08 12:15:58 +00:00
Andrey A. Chernov d7f5ee41e8 Unpend fault signals like SIGSEGV, etc
It is too dangerous to continue with them in any case

Should go into 2.2
1997-03-08 12:11:26 +00:00
Jordan K. Hubbard 0232e09f50 Add a missing docfile (whoops! Overlooked). 1997-03-08 11:34:25 +00:00
Jordan K. Hubbard af1353594f YAMF22 1997-03-08 11:06:50 +00:00
Andrey A. Chernov 06257ca4f4 Unpend all killing signals to shut down this thing immediately,
or it is impossible to kill it in some situations.
Unpend yet one SIGARLM (see timer.c commit)

Should go into 2.2
1997-03-08 10:04:21 +00:00
Andrey A. Chernov ee5f208d63 Don't pend SIGALRM (Timer Service) due to
1) When carrier dropped, old variant often forget to detect it cause
unkillable loop forever (because SIGTERM pended too, but it will be
separate commit)
2) Time intervals accuracy reasons

Should go into 2.2
1997-03-08 09:55:42 +00:00
Jordan K. Hubbard 2efff52162 YAMF22 1997-03-07 16:39:32 +00:00
Mike Pritchard c75354732f Oops, had a couple of extra parens in a couple of lines. 1997-03-07 07:45:17 +00:00
Mike Pritchard 4f09442be6 Clean this man page up. Don't use hardcoded font escape codes.
Other mdoc cleanup.
1997-03-07 07:43:19 +00:00
Brian Somers bfc214e329 Add a -s option for setting the current vty. This should make
life easier if a PS/2 mouse locks up the keyboard (frequent-ish,
but not repeatable).
Tidy up code (a bit) and make it -Wall

Is this a 2.2 candidate ? (although it doesn't -Wall in 2.2 because
of the lack of sys/sysproto.h
1997-03-07 01:34:47 +00:00
Jordan K. Hubbard 8375be7ed6 Protect against missing initial @cwd. Closes PR#2893
Submitted-By: pius@iago.ienet.com
1997-03-06 10:21:57 +00:00
Daniel O'Callaghan 3a7e707703 Typo fix 'and' -> 'an'.
This is a 2.2 candidate.
1997-03-04 07:55:43 +00:00
Andrey A. Chernov 08a77c42e1 Back out MAXLOGNAME fix, Bruce points that copyinstr require NUL 1997-03-03 07:59:54 +00:00
Mike Pritchard 940783df47 An odd merge from 2.2 to -current. Somehow that 2.2 nologin.5
man page was in better shape than the 3.0-current version,
so I'm committing the 2.2 version to 3.0.  Whatever happened,
it was my fault :-).
1997-03-03 06:47:27 +00:00
Andrey A. Chernov 431efa59e3 Fix MAXLOGNAME usage, the code has wrong assumption that
it must be NUL terminated
1997-03-02 21:36:17 +00:00
Mike Pritchard c26d7157df Add a missing period so that the -n option is display properly
in the man page output.  Closes PR# 2831.

Submitted by:	 Marc Slemko <marcs@znep.com>
1997-02-28 07:33:37 +00:00
Nate Williams b93ad2ea7c The pccard daemon doesn't support the 'class' parameter as stated in the
documentation, so remove any hints of it.

Submitted by:	"Brent J. Nordquist" <bjn@visi.com>
1997-02-26 15:55:10 +00:00
Mike Pritchard 156de774e2 Fix an off by one error when determing the default job name for
the banner page.

Closes PR# 1986.

Submitted by:	Mark Valentine <mark@linus.demon.co.uk>
1997-02-26 02:22:45 +00:00
Brian Somers c3b6ad6667 osreldate.h stuff suggested by: Eivind Eklund
Remove #include's from sig.h and get dependant modules to include them
themselves.  Make inclusion of if_var.h depend on __FreeBSD_version so
that the -current version of ppp can be used with 2.1.*

2.2 Candidate ?
1997-02-25 14:05:17 +00:00
Jordan K. Hubbard b421849f2f Close PR#2459 1997-02-25 07:22:23 +00:00
Brian Somers f51673c34f Requested by: Elvind Eklund
Remove usage of __sighandler_t as it's not available in 2.1*
1997-02-23 20:01:20 +00:00
Brian Somers 2d7b9963c4 Pointed out by: Joerg
Fix broken signal.h include
1997-02-23 19:28:56 +00:00
Mike Pritchard 7fa793cc91 Typo police. 1997-02-22 18:57:36 +00:00
Peter Wemm 476602a9d0 Revert $FreeBSD$ to $Id$ 1997-02-22 16:15:28 +00:00
Peter Wemm c0ec1f37ef Revert $FreeBSD$ to $Id$ 1997-02-22 14:40:44 +00:00
Peter Wemm b97fa2ef50 Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
Peter Wemm e25aeca937 Revert $FreeBSD$ back to $Id$ 1997-02-22 13:26:29 +00:00
Joerg Wunsch 5fadfc4ce7 The "burn-in" phase has finished: this set of patches seems to run
stable now at a customer's site.

Finally add the ability to syslogd to pipe particular messages through
an arbitrary filtering command.  Idea stolen from IRIX.

This code is courtesy of the interface business GmbH, Dresden.

Comment about whether to also merge this into 2.2 or not, please.

Reviewed by:	(long ago) peter
1997-02-22 12:59:36 +00:00
Poul-Henning Kamp 017a5a7f59 Make it possible to substitute INTERFACE when executing commands. 1997-02-22 09:12:36 +00:00
Mike Pritchard 90ac6cd46a #include <string.h> to help silence -Wall. 1997-02-20 23:11:22 +00:00
Jordan K. Hubbard 46da72bdf7 Change handling of bad signals; there are reasons why this is actually
not such a great idea.
1997-02-20 16:29:12 +00:00
Jordan K. Hubbard 0495a9d2d7 ARGH!! Fix obligatory 12th hour fumble. :-( 1997-02-19 16:57:30 +00:00
Brian Somers 52cc0880db Tidy up signal handling.
All signal() calls have been changed to pending_signal() calls.
pending_signal() is defined in the new sig.c file.  It remembers
the handler and traps the signal with a function that will remember
the signal.

main.c now calls handle_signals() to actually call the required
handlers (if the above handler was called).

If this doesn't close PR2662 (was PR2347), I'll cry.

Joerg, I think this should go into 2.2, but I havn't done anything
about it because I'm bound to botch it with the new sig.[ch] files.

I've just "cvs add"'d sig.[ch] so far.... can you update to 2.2 and
tell me what you did ?  Thanks.
1997-02-19 01:14:41 +00:00
Jordan K. Hubbard 164f690853 Argh! Last-minute typo fix (having this be broken in -current sucks). 1997-02-18 16:19:29 +00:00
Jordan K. Hubbard 2b76b18065 Add Label & Partition to configuration menu so you don't have to
go to one of the installs for that (now that it works multi-user).
1997-02-18 04:38:33 +00:00
Jordan K. Hubbard fcbdb5526d Don't use /mnt in multi-user mode if we're installing a new filesystem. 1997-02-18 04:36:16 +00:00
Jordan K. Hubbard 9a1717b2df Don't initialize homedir value. When called this early, pw(8) has no
reasonable data for it.
1997-02-18 01:50:51 +00:00
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