Commit Graph

2887 Commits

Author SHA1 Message Date
pst
173a3e2bb3 Back out the fancy directory sorting, it's more pain that its worth,
and it's there in the CVS repository in case someone things that this
idea is superkeen.
1997-08-13 06:23:54 +00:00
pst
0742607c97 Incorporate some ideas that came up during discussion with msmith. 1997-08-13 06:02:18 +00:00
pst
b1f3c13cfa Enable periodic 1997-08-13 00:58:49 +00:00
pst
e99989d54f This commit was generated by cvs2svn to compensate for changes in r28112,
which included commits to RCS files with non-trunk default branches.
1997-08-12 17:48:49 +00:00
pst
2b36cb62ca Initial import of periodic executable control program. 1997-08-12 17:48:49 +00:00
brian
7df0e33632 Use libalias.so.2.3. 1997-08-11 22:07:57 +00:00
jkh
ef21597f1e Add a SEE ALSO for install.cfg sample script. 1997-08-11 13:20:38 +00:00
jkh
577e091a3e Make some changes to the way the label editor reads script variables
so you don't need to re-enter it for each and every filesystem. Heads up!
This change is incompatible with the previous scripting format,
so those folks (all 2 of you) using config files should take a look
at the changes to the sample install.cfg file for the diskLabelEditor's
new calling syntax.

Finally write a man page for this thing, documenting all of the above
and more.  I can't drive a stake through this thing's heart without
properly documenting it first, so please consider this step #1 in that
process (to be honest, sysinstall will also live on for some time in
the 2.2. branch since it's unlikely that the new install tools will ever
make it over there - they're strictly 3.0 material).
1997-08-11 13:08:29 +00:00
brian
efd2e57820 Correct default log file name.
PR:		4065
Prompted by:	Steve Price <sprice@hiwaay.net>
Submitted by:	sjr1@flash.net
1997-08-10 22:03:20 +00:00
brian
a7a4ee2e82 - Buffer space problem found by Sergio Lenzi <lenzi@bsi.com.br>
fixed. Natd now waits with select(2) for buffer space
  to become available if write fails.
- Packet aliasing library upgraded to 2.2.

Submitted by:	Ari Suutari <suutari@iki.fi>
1997-08-10 21:55:52 +00:00
wpaul
0cc6a9e3e1 Don't initialize structures from other variables; gcc -ansi -pedantic
doesn't allow it. Use proper constants instead.
1997-08-10 20:37:48 +00:00
rgrimes
02326bbc5f Add #if __FreeBSD__ >= 3 around #include <net/if_var.h> so that this
can compile under both FreeBSD 2.x and 3.x.
1997-08-06 00:45:23 +00:00
peter
8cb152219b Merge sendmail-8.8.7 changes from vendor branch 1997-08-04 05:07:46 +00:00
peter
b5427c8dbd Merge sendmail 8.8.7 changes from vendor branch 1997-08-04 05:06:42 +00:00
peter
5a1a3c54a3 This commit was generated by cvs2svn to compensate for changes in r27876,
which included commits to RCS files with non-trunk default branches.
1997-08-04 05:00:07 +00:00
peter
0c24c755eb Import sendmail-8.8.7 onto vendor branch.
Obtained from: ftp.sendmail.org
1997-08-04 05:00:07 +00:00
brian
6db25c59fd Use libalias.so.2.2 1997-08-03 20:21:22 +00:00
peter
323fad76e0 Zap antique #ifndef NEWVM code. This should be redone to use libkvm
someday.
1997-08-03 09:53:04 +00:00
bde
97f7b12133 config.new/config.8 seems to be new in Lite2. Remove it like the rest of
config.new.
1997-08-03 06:40:01 +00:00
bde
e6b13e1573 README is for Lite2. We don't want it. 1997-08-03 06:38:27 +00:00
bde
ffd2e860dd This commit was generated by cvs2svn to compensate for changes in r27850,
which included commits to RCS files with non-trunk default branches.
1997-08-02 19:36:03 +00:00
bde
39900ae557 Import Lite2's src/usr.sbin, except for timed. All changed files
except one unimportant one have already left the vendor branch.
1997-08-02 19:36:03 +00:00
davidn
eb14663e40 Fix -p switch. 1997-08-01 15:06:21 +00:00
jkh
21501b44ab Back out the changes to set the resolver timeout. All they seem to do
is _break_ dns lookups entirely, and since reading the relevant docs and
source code does not enlighten for now, I'll remove this until more
basic research has been done into controlling the resolver's timeout
values.
1997-08-01 04:41:38 +00:00
msmith
155adaf3a5 Update wlconfig to match new Wavelan (wl) driver.
Submitted by:	Jim Binkley <jrb@cs.pdx.edu>
1997-08-01 03:50:23 +00:00
brian
565b456d4a Remove extraneous prototypes. 1997-08-01 02:02:28 +00:00
pst
1a98ab08a4 Nologin is also a valid 'invalid' shell 1997-07-31 15:25:35 +00:00
jkh
5c7b47c68c Fiddle with DNS options so that queries are also controlled by
the MEDIA_TIMEOUT variable.  Just -current for now on this one as
I'm still wanting to play with this a bit and see what the ramifications
of doing this are.
Requested by:	pst
1997-07-31 11:28:58 +00:00
jkh
9dd764cdac Make serial console based installs actually work by:
1. Detecting the split /dev/ttyv0 / /dev/console case, e.g. you've
   booted with the -h flag and you have a VGA card also.

2. Adding an extra "menu" for selecting terminal type and adding ANSI
   to the list of compiled-in terms.

3. Opening the proper file descriptors before disowning ourselves.
Requested by:	pst
1997-07-31 11:08:47 +00:00
brian
abdd6d5f8c Set up the alias address before executing
the contents of ppp.linkup.
1997-07-29 22:37:04 +00:00
wpaul
9b19ad6316 Modify rpc.yppasswdd to use the new AF_LOCAL transport in the RPC library
instead of its own kludged up version. This makes the special 'superuser-only'
update procedure work just like a real RPC service.
1997-07-29 15:43:21 +00:00
imp
423c106063 Two minor, pedantic fixes from bde for my last pedantic fixes, plus
the following from recent OpenBSD changes.  These changes (and all
I've made) should be merged back into 2.2 when they are vetted in
-current.

common.c:
OpenBSD 1.7: mickey: #if __STDC__ --> #ifdef __STDC__

displayq.c:
OpenBSD 1.8: deraadt: 1 byte oflows; millert

rmjob.c:
OpenBSD 1.8: deraadt: 1 byte oflows; millert

cmds.c:
OpenBSD 1.9: grr: restore traditional "all" keyword option - see lpc(8)
[[ This makes lpc status all work again -- imp ]]

printjob.c:
OpenBSD 1.17: deraadt: use sendmail -t
OpenBSD 1.16: mickey: #if __STDC__ --> #ifdef __STDC__
OpenBSD 1.15: deraadt: 1 byte oflow; Don.Lewis@tsc.tdk.com

recvjob.c:
OpenBSD 1.11: mickey: #if __STDC__ --> #ifdef __STDC__

lpr.c:
OpenBSD 1.19: mickey: #if __STDC__ --> #ifdef __STDC__

Obtained from: OpenBSD
1997-07-29 13:24:01 +00:00
imp
e2c9ba9896 Fix boatloads of buffer overflows from the OpenBSD tree.
Be pedantic about always using sizeof(blah) vs sizeof (blah) or sizeof blah.
Obtained from:OpenBSD
1997-07-29 04:17:19 +00:00
brian
cc780ba0db Allow hosts specified by IP number (avoiding
a DNS lookup)
Update doc including the [host:]port syntax.
1997-07-28 22:17:48 +00:00
se
cbaed83f99 Make compile with rev. 1.101 of ncr.c, which added support for
loading of the SCIPTS microcode into the NCR on-chip RAM.
1997-07-28 21:33:45 +00:00
wpaul
e5c834ca3e Fix for PR #4147: apparently BIND now returns a status of NO_RECOVERY
at the end of gethostanswer()/getanswer()/whatever where it used to
return TRY_AGAIN. This breaks the domain list traversal in ypserv's
async DNS lookup module: it would only retry using the domain(s) from
the 'domain' or 'search' lines in /etc/resolv.conf if __dns_getanswer()
returned TRY_AGAIN.

Changed the test so that either TRY_AGAIN or NO_RECOVERY will work.
This seemed to me the best solution in the event somebody tries to
compile this code on an older system with a different version of BIND.
(You shouldn't do that of course, but then there's a lot of things
in the world that you shouldn't do and people do them anyway.)
1997-07-28 14:13:57 +00:00
brian
a53cd7c4b3 Fix file descriptor leaks. 1997-07-28 01:02:27 +00:00
brian
d38db54c97 Count the "proto" arg after a single address,
Check correctly for "deny" packets.
Submitted by:	Dave Bodenstab <imdave@mcs.net>
1997-07-27 23:26:23 +00:00
wosch
4b7876d67b Add a simple example section. 1997-07-27 23:10:33 +00:00
wpaul
3318071e9f Fix a bug in the async DNS resolver that can crash ypserv. yp_prune_dnsq()
is not sane: if the TTL on a pending but unanswered query hits 0 and the
circular queue entry is removed and free()d, the for() loop may still try
to use the entry pointer (which now points at no longer valid memory).
usually, deleting only the last entry off the end of the queue worked, but
if more than one was deleted, the server would crash. I changed things a
bit so this shouldn't happen anymore.

Also arranged to call the prune routine a bit more often.
1997-07-27 03:41:53 +00:00
se
be9530d5a8 Adjust for changes in data structures brought into ncr.c rev. 1.100. 1997-07-25 20:46:39 +00:00
wosch
f1fb0a53e1 Add ref to sysmouse(4). 1997-07-25 13:21:35 +00:00
wosch
cdee06494c Add ref to vidcontrol(1). 1997-07-24 23:49:28 +00:00
wosch
4ca2ea1c6c Add ref to moused(8). 1997-07-24 23:46:35 +00:00
wosch
75ad5c06a6 Delete dead test code. 1997-07-24 17:44:46 +00:00
brian
fbbc7e6dde Don't try to ioctl(,TIOCOUTQ,) on a closed
descriptor.
Reported by:	Stephane Raimbault <stephane@cybersurf.net>
1997-07-24 02:42:34 +00:00
imp
86d5a728a6 index -> strchr and rindex -> strrchr to reduce the number of gratuitous
diffes with NetBSD/OpenBSD.  These changes seem to predate the NetBSD/OpenBSD
split, so it is hard to give proper credit for them.
Obtained from: OpenBSD.
1997-07-23 20:53:41 +00:00
jkh
4a6261e486 YAMF22 - /boot.foo fixups.
Also close PR#4151 by running newaliases (forgot to mention this
in my RELENG_2_2 commit, but it's there).
1997-07-23 15:13:18 +00:00
imp
2913fa1bd3 Use setuid/seteuid around dangerous operations. Also a few buffer
overflow patches that were "near" to where these operations are taking
place.  The buffer overflows are from OpenBSD.  The setuid/seteuid patches
are from NetBSD by way of OpenBSD (they changed them a little), at least from
my read of the tree.

This is the first of a series of OpenBSD lpr/et al merges.  It (and them)
should be merged back into 2.2 and/or 2.1 (if requested) branches when they
have been shaken out in -current.
Obtained from: OpenBSD
1997-07-23 00:49:46 +00:00
fsmp
d0693bfcc9 Removed the SMP_TIMER_NC suggestion.
This is (almost) defunct, start to phase it out...
1997-07-22 18:52:20 +00:00
brian
761c9a9ce7 Output name of duplicate spool dir.
Submitted by:	Wayne Scott <wscott@ichips.intel.com>
1997-07-21 22:40:04 +00:00
wpaul
3fded6bbe8 Fix a very stupid heap corruption bug: in ypproc_match_2_svc(), when
we decide to do a DNS lookup, we NUL terminate the key string provided
by the client before passing it into the DNS lookup module. This is
actually wrong. Assume the key is 'foo.com'. In this case, key.keydat_val
will be "foo.com" and key.keydat_len will be 7 (seven characters; the
string is not NUL-terminated so it is not 8 as you might expect).
The string "foo.com" is actually allocated by the XDR routines when the
RPC request is decoded; exactly 7 bytes are allocated. By adding a NUL,
the string becomes "foo.com\0", but the '\0' goes into an 8th byte which
was never allocated for this string and which could be anywhere. The result
is that while the initial request may succeed, we could trash other
dynamically allocated structures (like, oh, I dunno, the circular map
cache queue?) and SEGV later. This is in fact what happens.

The fix is to copy the string into a larger local buffer and NUL-terminate
that buffer instead.

Crash first reported by: Ricky Chan <ricky@come.net.uk>
Bug finally located with: Electric Fence 2.0.5
1997-07-21 17:39:39 +00:00
imp
e37fd90875 Add code to make sure that we don't overflow the buffer that we copy
the hostname into.  In theory the bind library should do this, but
in practice the limites between system defines and bind defines make
an attack using this vector possible.  These patches have been in
use on my systems for three months now, so I am fairly confident about
them.  I plan on commiting this to 2.2 and 2.1 in the near future,
as well as many other patches of this nature.
1997-07-18 18:52:53 +00:00
imp
21a58d0a06 Fix a problem where remote files could be removed by exploiting race
conditions similar to those reported in CERT's CA-91:10a advisory.
Obtained from: Hiroshi NAKANO <nakano@rins.ryukoku.ac.jp> by way of CERT.
1997-07-18 18:33:15 +00:00
wosch
d50297d050 cp -r' -> cp -R'
Option -r is obsolete and buggy.
1997-07-18 12:05:43 +00:00
davidn
c42f9f595d getuid() -> geteuid(). 1997-07-17 08:37:47 +00:00
jkh
f034b5f116 Repair missing quote. 1997-07-16 15:22:18 +00:00
jkh
01f808a119 ln /compat to /usr/compat on initial installation; this will
prevent the later addition of compat libs from overflowing /
1997-07-16 11:45:48 +00:00
phk
bf781358d0 Increase size of tmp hostname buffer.
PR:		3889
Reviewed by:	phk
Submitted by:	Yujiro MIYATA <miyata@bioele.nuee.nagoya-u.ac.jp>
1997-07-16 11:22:57 +00:00
dfr
33cbb19d52 Merge WebNFS support from NetBSD.
Obtained from:	NetBSD
1997-07-16 09:27:53 +00:00
jkh
98e00f126d Eliminate Samba configuration. Sorry, but this was another one of
those ideas that, like the Apache server setup, was well-intentioned
but doomed to fail in the face of change.  That and the fact that it
shouldn't be part of the installation tool, it should be part of the
post-installation setup tool (which we need to write).  Combining the
two utilities into one utility was my first conceptual mistake.

Apologies also to Coranth Gryphon, who worked hard on the Apache
and Samba server setup code.  These features were quite useful
for awhile, if that's any consolation, I just simply had the wrong
ideas about where to put them. :-(
1997-07-16 05:22:42 +00:00
peter
c837b57568 Previous commit to remove -I/sys broke 'make world', miscfs/union/*.h is
not (yet?) installed in /usr/include.
1997-07-15 07:03:00 +00:00
wpaul
99f1e691a1 Unbreak this file some more:
CFLAGS=+-I${.CURDIR}/../../sys -> CFLAGS+= -I${.CURDIR}/../../sys

Asked about on BSDnet:#FreeBSD by: philw@dream.webmaster.com (Phillip White)
1997-07-14 19:57:50 +00:00
guido
4f63020d0e Unbreak it. Apparently I forgot to do a make clean when testing :-(
Unfortunately, Makefile is not included in .depend.
1997-07-14 15:10:34 +00:00
brian
db2c429706 Allow a "hangup" capability.
You can now "ATZ" your modem when it's closed.

Submitted by:	peter@citylink.dinoex.sub.org (Peter Much)
1997-07-14 01:41:35 +00:00
peter
1a608ac729 kill the undead 1997-07-13 14:26:00 +00:00
guido
5d0f6e11e4 Remove -I/sys 1997-07-13 11:51:42 +00:00
guido
2ab999d709 Remove -I/sys and add -I${.CURDIR}/../../sys 1997-07-13 11:51:28 +00:00
brian
c28aef6462 Support "host:port" as first arg. 1997-07-12 19:26:49 +00:00
brian
e9b75437bd Allow service names in "set server" 1997-07-12 19:22:34 +00:00
dima
72047e7b1d Fixed buffer overflow.
Reviewed by:	Warner
1997-07-08 21:03:16 +00:00
jhay
82157587f3 Major IPXrouted rework.
In rt_change() remember to update the interface pointer otherwise we will
send the RIP packets to the wrong interface(s) in future.

Update the hash generator and increase the size of the hash tables.

Only use the network and host parts when comparing IPX interface addresses.

Immediately broadscast RIP and SAP changes.

Change the alarm code to use the setitimer() call and only set a flag in
the alarm signal handler. This gets rid of possible race conditions.

Remove the host routing table. IPX RIP cannot do host routes, only net routes.

Make the delay between broadcast packets 50ms. It seems that some Netware
4.x servers is very slow and don't have much input buffering.

Handle received messages about networks and services that go down, better.

Add tracing of RIP and SAP changes. It gets sysloged with a level of
LOG_DEBUG.
1997-07-06 07:38:36 +00:00
pst
0e3f5aa6ce Remove addgroup/rmgroup -- they are completely replaced by pw(1).
Adduser/rmuser stay for now until we get a good user-friendly front-end
for pw.
1997-07-05 19:12:45 +00:00
jkh
f4cb476ed1 Add proper md5 comments to ports-installed packages also by
masticating it through the same routine used by pkg_create.
Submitted by:	se
1997-07-04 04:48:02 +00:00
jkh
9048f9c72f YAMF22 1997-07-04 04:46:29 +00:00
phk
3b6320e19b Reset all LQR variables when we start over. 1997-07-02 19:18:42 +00:00
brian
a7bb67c30d Make HUP cause an exit (as it used to), and make
INT cause a hangup - not exiting for -ddial & -auto.

HUP must exit because init sends this at system shutdown
time (why, I don't know), and we don't want to end up
redialing after the HUP (due to another dfilter packet).

Pointed out by and discussed with: ache
1997-07-01 21:31:28 +00:00
jkh
4bf37eba3c Change the naming conventions for preserve'd files and also document
the option in pkg_create.  Now preserved files start with a . and are
named .<filename>.<pkgname>.backup so that their purpose is more clear.

Note that just using the preserve option without proper pkg_deps
is also foolish since packages being deleted in the incorrect order with
preserve on can generate some odd results.
1997-07-01 06:13:51 +00:00
jkh
d35baebb04 Allow distSetByName() to process all the relevant entries.
Submitted by: msmith
1997-07-01 03:50:58 +00:00
bde
28da1cd106 Don't depend on <machine/cpufunc.h> including <sys/types.h>. In fact,
don't include this kernel-only header at all, since we don't need it.
1997-07-01 00:33:42 +00:00
ache
959eed0f42 Add LC_TIME=C to date 1997-06-30 10:59:25 +00:00
jkh
15f6351c22 YAMF22 - deletes and preserve option fixes. 1997-06-30 03:15:40 +00:00
brian
ce12228bbe Allow specification of a umask for local socket
creation in "set server" command.
1997-06-30 03:03:38 +00:00
jkh
b1268608f7 Whoops, only attempt to back up the file if it exists. :-} 1997-06-30 02:57:40 +00:00
brian
993a6e3ba9 Fix HUP handling while dialing.
Pointed out by:	ache
1997-06-29 13:54:31 +00:00
jkh
d7c9ca45eb Add support for @option preserve - moves existing files out of the way
before replacing them (using pkgname to make this hopefully unique).
Delete also moves them back, if they exist, resulting in a package
which can be "backed out" with reasonable safety.
1997-06-29 10:41:49 +00:00
pst
c22f14d51d NOSHARED takes a yes/YES no/NO value, not "true, false, hey mon!".
NOPIC is used to not generate a shared library, not NOSHARED.
Make NOSHARED advisory where appropriate.
Remove bogus NOSHARED (kbdio).
1997-06-29 06:03:42 +00:00
brian
9392d3b919 Deal with HISADDR/MYADDR in filter rules.
Mostly submitted by: kfurge@worldnet.att.net

Allow MYADDR in add/delete commands to facilitate
dynamic additions of a loopback route to MYADDR.
1997-06-28 01:34:03 +00:00
brian
76ee5991cc Allow command line control of ppp through both
TCP and AF_LOCAL sockets.
1997-06-28 01:04:54 +00:00
peter
b4a560b497 Revive this file, it's come back from the dead in the 8.8.x dists. 1997-06-27 15:55:33 +00:00
peter
b183f2c3d0 Merge in sendmail-8.8.5 -> 8.8.6 changes to those files that have left the
vendor branch.
1997-06-27 15:17:19 +00:00
peter
c33541969a Import sendmail-8.8.6
Obtained from: ftp.sendmail.org
1997-06-27 14:53:01 +00:00
peter
6ebb04e9b6 This commit was generated by cvs2svn to compensate for changes in r26986,
which included commits to RCS files with non-trunk default branches.
1997-06-27 14:53:01 +00:00
brian
2b53697d54 Add "set server" to control the server socket.
Catch SIGUSR1 to re-init listening socket.
Document signal behaviour.

Add missing '\n's to LogPrintf(LogWARN,...)
Main() returns int not void.

AF_LOCAL ideal suggested a long time ago by: joerg
1997-06-25 19:30:05 +00:00
brian
7f767a4b7f Allow shell commands (still run as original user)
unless defined out - including while a telnet
session with a -auto ppp is in effect.  If you
don't create ppp.secrets, you deserve what you
get.

telnet connection capabilities will be configurable
per system soon.

Suggested by: Terry Dwyer <tdwyer@omen.net.au>
1997-06-25 02:04:35 +00:00
brian
56eb1f5b5f Fix ~? output in "term" mode.
Spotted by: Harry Starr <starr@gccs.com.au>
1997-06-24 21:25:06 +00:00
jhay
efca0f8123 Display tickadj in struct clockinfo. 1997-06-24 18:23:32 +00:00
brian
740b1a6ce4 Suggest using /etc/services entry rather than a
number in the "ipfw add divert" example.
1997-06-24 10:49:44 +00:00
stark
5dee8cb395 Submitted by: Gene Stark, Steve Passe, and Robert Sexton (robert@kudra.com)
Updated README file with additional helpful information from Steve Passe
and added patches from Robert Sexton to eliminate case sensitivity of
the xten command.
1997-06-24 03:21:47 +00:00
brian
c89c2d9d60 o Fix uptime for direct connections.
o Style police
o Make hangup abort the current connection, not
  necessarily exiting (-auto/-ddial).
o Trap HUP and INT during DoChat and abort the
  connection attempt.  This means you can now
  type "dial" and change your mind with ^C, or
  HUP the process to stop it dialing.

Slapped into doing it by: Chuck Robey <chuckr@glue.umd.edu>
1997-06-23 23:10:13 +00:00