Commit Graph

1954 Commits

Author SHA1 Message Date
jkh
c6021119ac Fixes and a place-holder for future work. 1996-10-02 08:25:11 +00:00
jkh
a2280f0852 Catch a clear() I missed. 1996-10-02 02:19:35 +00:00
jkh
a95e669575 Don't annoyingly reconfigure the network when you don't have to. 1996-10-02 02:02:18 +00:00
jkh
1c9dc45051 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
jkh
e6cd3de485 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
jkh
d8c3b41479 Make FTP site reselection work the way it always should have. 1996-10-02 00:41:40 +00:00
fenner
f1ee54ac06 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
jkh
1e10a42711 Round 2.5 1996-10-01 14:08:28 +00:00
jkh
6fc0c31c3f Installation cleanup, round II. 1996-10-01 12:13:29 +00:00
jkh
9e5972340b Saner screen refresh changes, part I. 1996-10-01 04:56:34 +00:00
pst
00ee70b963 Fix potential buffer overrun 1996-10-01 03:41:28 +00:00
wpaul
85b07485a6 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
fenner
03b35d3baf Grab traceroute out of src/contrib/traceroute 1996-09-30 19:49:54 +00:00
jkh
aebf677369 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
bde
f6b36255b3 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
bde
80424911e2 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
jkh
e38dfc28b6 Correct a minor misspelling.
Noticed-by: der
1996-09-29 10:03:30 +00:00
bde
84ed9156c5 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
bde
118ffee3d0 Moved getdtablesize() out of a loop. 1996-09-28 11:25:47 +00:00
pst
463283127b Add info field.
Closes pr docs/1679.
1996-09-27 20:31:26 +00:00
pst
62d70d7bef 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
pst
c48d91002b 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
pst
b8c760157a 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
pst
b67d08af4a 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
bde
cbced3178f 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
bde
0350140145 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
wosch
e7eeae0eba add missing comma(s) in .Xr macros 1996-09-23 22:24:39 +00:00
ache
6f734afc2b Fix one byte buffer overflow
Submitted by: Eric Allman <eric@sendmail.org>
1996-09-22 14:57:00 +00:00
jkh
4416080b40 Remove some gratutious screen saves. 1996-09-22 00:48:55 +00:00
ache
c01f7b9616 Fix & expansion (from pw_gecos field), sizeof buf used when
buf is pointer, not array, buflen must be used instead.
Charlie & from root name was expanded to junk as result.
1996-09-21 23:37:35 +00:00
wosch
68a6efc16b fix .Xr macro 1996-09-21 15:08:10 +00:00
nate
7bfae28671 ts_sec -> tv_sec
ts_nsec -> tv_nsec

Pointed out by:	bde
1996-09-20 04:13:44 +00:00
peter
14969b2bf5 aarghh! what is it with this CVSROOT/val-tags regexp anyway? how
many times do I have to do this to get it right? :-]
1996-09-19 08:41:49 +00:00
peter
851f9c28cd Merge import conflicts 1996-09-19 03:12:11 +00:00
peter
a5031cd76a This commit was generated by cvs2svn to compensate for changes in r18366,
which included commits to RCS files with non-trunk default branches.
1996-09-19 03:01:32 +00:00
peter
334d0ceea3 Import of sendmail-8.7.6 1996-09-19 03:01:32 +00:00
jkh
fc55866b21 Don't call copySelf() when upgrading. 1996-09-18 18:40:37 +00:00
wosch
60a3a5d25a warn if reach group line limit (>200 users, >1024 bytes per line)
close PR#1595

suggested by: Seppo Kallio <kallio@beeblebrox.cc.jyu.fi
1996-09-17 19:34:56 +00:00
wollman
7f3a408ee0 Delete old routed(8). 1996-09-16 16:56:00 +00:00
wollman
beec13a871 Disable build of old routed. 1996-09-16 16:53:54 +00:00
jkh
2b662b3cee Remove some bogosities I introduced with the init file hack (not serious,
just bogus).  Also turn off by default - whoops!
1996-09-15 23:55:23 +00:00
wpaul
29dec7db05 Toss the mkaliases script into the attic and remove its install
target from the Makefile. We don't need it anymore, and it was
broken anyway.
1996-09-15 00:39:20 +00:00
wosch
9baf6ec809 Do not backup master.passwd if pwd_mkdb returned an error. This
was to paranoid, pwd_mkdb(8) is carefully enough to not
corrupt master.passwd on failure.

Submitted by: joerg
1996-09-14 23:22:23 +00:00
bde
071f2afd3e Don't use __dead or __pure in user code. They were obfuscations
for gcc >= 2.5 and no-ops for gcc >= 2.6.  Converted to use __dead2
or __pure2 where it wasn't already done, except in math.h where use
of __pure was mostly wrong.
1996-09-14 03:00:32 +00:00
jkh
1220c18e7a Make passwords no longer echo or display. Because of this, we now also
ask for matching confirmation.  I'm sure there is a clever direct-from-perl
ioctl way of putting the terminal into noecho mode, but I don't feel like
learning perl so I just used system.  [yes, I'll put stty on the installation
boot floppy as necessary]
1996-09-11 08:36:54 +00:00
peter
8d77f94ff4 Argh! there's no need for moused to be setuid-root! Now that it
works from startup, and works with XFree86 via /dev/sysmouse, it should
be started at boot and left running.

Pointed out by: Sujal Patel <smpatel@umiacs.umd.edu>
1996-09-10 19:17:25 +00:00
peter
f3a7064d80 gut and overhaul moused, it was simply not working for me on any mouse
I could find.  This change does the following:
  - s/usage()/break;/ in handling the -s switch.
  - use err/warn instead of fprintf(stderr, ... strerror()); exit(1);
  - implement Hitachi PUMA HitTablet support from the XFree86 code,
    whatever the hell that is. :-)
  - correctly implement baud rate setting, too much was cut from the
    XFree86 code, the critical parts were a sweep over all likely
    mouse powerup baud rates to switch it to the reqested rate.
  - logitech support was busted (at least on mine, which is autosensing
    and runs in either mmseries or logitech mode depending on the handshake
    code at startup.  Among other things, you talk to it at 1200, then
    switch to the target baud later.

Some remaining problems..  samplerate setting is missing, but I've not
found where this is meant to be set yet.  I presume this is resolution
setting of some kind.
1996-09-10 18:20:46 +00:00
peter
1d6bf6c00c personal (ie: with the crontab command) cron tabs were broken by the
last change. :-(
ie: /var/cron/log would report: .. cron[206]: (usage) CAN'T OPEN (%s/%s)
1996-09-10 03:38:20 +00:00
fenner
2c923f47da Change strcpy() to strncpy() in several places, and give gethostname()
the real buffer size.  Note that the strncpy(domain, ...) doesn't need to
be a strncpy(), since it is copying from itself to itself, but belts
and suspenders don't hurt and this is not time-critical code.

Fixes the half of PR bin/1581 that wasn't fixed in rev 1.7

Submitted by:	Karl <karl@codebase.mcs.net>
1996-09-10 00:50:13 +00:00
sos
d3115d7869 Fix for the problem that moused hangs if it is started from /etc/rc
Introduces the /dev/consolectl device for controlling various
console related things (given syscons is used).
1996-09-09 18:47:47 +00:00