Commit Graph

1992 Commits

Author SHA1 Message Date
Bill Fenner 7dae516d85 Release setuid immediately after initializing; this minimizes the
possibility of security holes allowing root penetration.

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

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

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

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

[Note: I fixed one bug in LOAD_CONFIG_FILE code, but it's still not perfect.]
1996-09-26 21:03:35 +00:00
Bruce Evans 4523edce8b Really eliminated includes of the "temporary" backwards compatibility
header <sys/dir.h> in applications.  My previous sweep didn't find the
places that included it without needing it.
1996-09-24 08:43:04 +00:00
Bruce Evans 0c8ea4d48c Eliminated includes of the "temporary" backwards compatibility header
<sys/dir.h> in applications.  Maintained existing (inadequate) ifdefs
for dir.h vs dirent.h in libdialog, amd and rarpd, but didn't add any
new ones.
1996-09-24 08:08:11 +00:00
Wolfram Schneider e0e5145ce6 add missing comma(s) in .Xr macros 1996-09-23 22:24:39 +00:00
Andrey A. Chernov a59b44944e Fix one byte buffer overflow
Submitted by: Eric Allman <eric@sendmail.org>
1996-09-22 14:57:00 +00:00
Jordan K. Hubbard 3e8947d7aa Remove some gratutious screen saves. 1996-09-22 00:48:55 +00:00
Andrey A. Chernov c0eb19c55f 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
Wolfram Schneider 374fc79d70 fix .Xr macro 1996-09-21 15:08:10 +00:00
Nate Williams 2514dd6975 ts_sec -> tv_sec
ts_nsec -> tv_nsec

Pointed out by:	bde
1996-09-20 04:13:44 +00:00
Peter Wemm 1aa04dd1f3 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 Wemm 4a55d8c7ca Merge import conflicts 1996-09-19 03:12:11 +00:00
Peter Wemm 5160fa301b Import of sendmail-8.7.6 1996-09-19 03:01:32 +00:00
Peter Wemm e700373f31 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
Jordan K. Hubbard 932fd2b2c2 Don't call copySelf() when upgrading. 1996-09-18 18:40:37 +00:00
Wolfram Schneider d45496e5c4 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
Garrett Wollman 1c7ee7bf52 Delete old routed(8). 1996-09-16 16:56:00 +00:00
Garrett Wollman 322bab890f Disable build of old routed. 1996-09-16 16:53:54 +00:00
Jordan K. Hubbard 4f68a706f2 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
Bill Paul 616b87f978 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
Wolfram Schneider 896f207c80 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
Bruce Evans eaa86f9d7f 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
Jordan K. Hubbard 79b69435d9 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 Wemm a77d162973 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 Wemm 13379e47c1 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 Wemm 73b2606378 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
Bill Fenner 83fa788e4d 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
Søren Schmidt a41cbc45be 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
Jordan K. Hubbard 2252262f79 Doh! Actually read the patch I applied and see what it was *trying* to do,
then make it do that.
Error-of-my-ways-pointed-out-by: Bob Willcox <bob@luke.pmr.com>
1996-09-09 15:32:26 +00:00
Paul Traina 30aaae26c6 Fix some buffer overflow problems... 1996-09-08 23:50:23 +00:00
Jordan K. Hubbard 60b522b0a6 Various minor improvements. 1996-09-08 01:39:25 +00:00
Peter Wemm 0c5936ed24 Add dequeue script for the record. 1996-09-07 21:09:41 +00:00
Peter Wemm 6dd18c1490 make it slightly less verbose while creating queue entries.. 1996-09-07 21:06:19 +00:00
Peter Wemm a64c504c01 make the "-l logfile" option actually do something.. 1996-09-07 20:41:09 +00:00
Peter Wemm 0ef88e5a1f After queueing deltas, send out an initial two mails since that will cover
99.9% of the cases at with out delay as before.
1996-09-07 19:50:48 +00:00
Peter Wemm 955892a940 fts_children() returns NULL if there are no files. If there was a failure
then errno != 0.
1996-09-07 19:46:29 +00:00
Peter Wemm 47a5bd3f21 - resync with configs running on freefall
- add ctm_conf.gnats from freefall
- add support for doing both the immediate mailout and the queued mailout.
- use "sendmail -odq -t" rather than "sendamil -t" to make it queue to
  the mailqueue rather than immediately begin transmission. This allows
  us to take advantage of our ordered dequeueing system without blowing
  WC's T1 to hell with a 50 part mailout in parallel.
- bump the max ctm size from 3MB to 10MB....  This is mainly for the fast
  list.
1996-09-07 18:48:52 +00:00
Peter Wemm 90ff799227 When looking for "group daemon" (since that's what's in mtree), make sure
we actually look for the *group* and not the user's gid.  user daemon
has traditionally been group 31 (guest).

Also clear out the groups vector so that it doesn't inherit the groups
of the invoking user (ever run rwhod by hand before?)  Unfortunately, we
can't empty the supplemental groups list because the !&@^#! egid is stored
in there! :-(
1996-09-07 01:43:08 +00:00
Poul-Henning Kamp cb3c44d787 remove devconf tools from make tree. 1996-09-06 23:07:35 +00:00
Poul-Henning Kamp 716768e73c Remove lsdev. Devconf never grew up. 1996-09-06 23:05:22 +00:00
Peter Wemm 95de3496b4 Turn on SO_KEEPALIVE on network connections. Since we limit the number
of connections, we cannot afford to allow "disappeared" client to cause
us to leave one of the 14 connections open and hanging in a read() forever.

(SO_KEEPALIVE causes probe packets to be sent after a few hours of IDLE
time where no data has been transferred.  Sup should NEVER do this, so the
only time it will have an effect is if it looses the remote machine)
1996-09-06 16:08:32 +00:00
Peter Wemm 40c20cfcd6 Rewrite part of the compression support so that it does not leave
files in /var/tmp.  Sup needs to send the file size, so that
prevents running gzip in a pipeline (sigh).

It now opens a temporary file, and immediately unlinks it.  It sends
gzip's output to the temp file, and when gzip is done, it rewinds the
file and sends it. When the last fd is closed, the file storage is
reclaimed.  With luck, this will stop those 15MB
gzip < emacs-19.30.tgz > /var/tmp/tmp.xxxx files from being left behind
and blowing out /var on freefall.

While I have the platform, let me quote a fortune entry which sup reminds
me of:  "It is a crock of sh!t, and it stinks!"
1996-09-06 15:40:08 +00:00
Jordan K. Hubbard 8e1d470afc PR#2724 in NetBSD notes that newsyslog save log files even if the number
of copies to save is zero.  Incorporate suggested fix with some stylistic
cleanup to make the resulting code more readable.
Submitted-By: Kenneth Stailey <kstailey@dol-esa.gov>
1996-09-06 06:36:07 +00:00
Jordan K. Hubbard 1b455eeb3f Close a security hole in anonymous ftp setup.
Submitted-By: Jason Garman <garman@phs.k12.ar.us>
1996-09-06 05:58:27 +00:00
Bruce Evans 5b963fa12e Fixed DPADD. 1996-09-05 17:16:10 +00:00
Bill Paul ff92a7a182 When updating a password via the standard RPC handler, reset the password
change time (pw_change) to zero.
1996-09-05 15:53:42 +00:00
Adam David 587a9ccb56 typo 1996-09-05 11:18:27 +00:00
Bruce Evans cb77de2327 Removed bogus unused `-I..' and unnecessary override of BINDIR. Didn't
clean up.
1996-09-04 22:43:20 +00:00
Bruce Evans 3335a25f21 Removed another unused `-I.' and cleaned up. 1996-09-04 22:31:32 +00:00
Bruce Evans 680b396b51 Removed unused `-I.'s from CFLAGS.
"." means the object directory, so it is just confusing to use it
when nothing is included from the object directory unless the object
directory is also the source directory.  It is confusing for "."
not to mean the source directory anyway, so used `-I.'s should be
replaced by `-I${.OBJDIR}'.
1996-09-04 22:25:35 +00:00
Peter Wemm 96169cfebd Set ${DPADD}, use +=, add $Id$ 1996-09-02 23:38:58 +00:00
Jordan K. Hubbard dc8b2dd7d1 Simplify some dialogs on the basis of my changes to ui_objects.c in libdialog.
Also update copyright notices.
1996-09-01 08:17:14 +00:00
Andrey A. Chernov 0fc122088b Unlocalize date 1996-09-01 00:48:29 +00:00
Poul-Henning Kamp d09e8179fa Some new options, useful for restoring single files or subtrees from the
deltas.

Submitted by:	A JOSEPH KOSHY <koshy@fakir.india.hp.com>
1996-08-30 10:21:00 +00:00
Peter Wemm 53a25106cd Use a variable to prevent multiple inclusion from duplicating CFLAGS args. 1996-08-30 03:03:21 +00:00
Peter Wemm 22ac97e25c Delete temporary man page rules 1996-08-30 03:01:34 +00:00
Peter Wemm f1c72c4c70 Hmm, well, whaddya know? ypserv was making calls to the undocumented
private internal _gethostbydnsname() resolver functions..
1996-08-30 01:17:47 +00:00
Peter Wemm 7e3456fb69 delete bind, add named named.reload named.restart ndc 1996-08-29 22:20:58 +00:00
Peter Wemm b8f4387390 kill these, they were declared a bad idea. 1996-08-29 22:19:21 +00:00
Peter Wemm cfc2eae116 build bind-4.9.4-P1 named.restart in it's own directory 1996-08-29 21:48:19 +00:00
Peter Wemm 353e0183c3 build bind-4.9.4-P1 named.reload in it's own directory 1996-08-29 21:47:33 +00:00
Peter Wemm 0acc06b17e build bind-4.9.4-P1 ndc in it's own directory 1996-08-29 21:46:46 +00:00
Peter Wemm bee5504dbe Build bind-4.9.4-P1 nslookup 1996-08-29 21:40:09 +00:00
Peter Wemm 0be1da2627 Revert back to building bind-4.9.4-P1 in seperate directories... 1996-08-29 21:38:16 +00:00
Peter Wemm 9e639d7d7b Swing the SUBDIR entry across for the new bind-4.9.4-p1 dir.. 1996-08-29 20:15:11 +00:00
Peter Wemm 1355933456 This commit was generated by cvs2svn to compensate for changes in r17897,
which included commits to RCS files with non-trunk default branches.
1996-08-29 19:43:00 +00:00
Peter Wemm 8fedc449da Import some bmake glue for bind-4.9.4-p1.
This is based on Paul Vixie's makefiles, but some of it doesn't look much
like it now.
1996-08-29 19:43:00 +00:00
Wolfram Schneider b8923d4cc0 [HISTORY] command appeared in Version 1 AT&T UNIX
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
1996-08-29 18:06:19 +00:00
Bill Paul 273804e22c Add one line fix to stop my old 'don't barf if you see the same
hostname/IP twice on same line in /etc/exports' fix from dumping core
due to bogus /etc/exports entries.

Submitted by: Toshihiro Kanda <candy@fct.kgc.co.jp>
1996-08-29 14:20:57 +00:00
Adam David 718737f0fb typo police
I couldn't make any sense of the sentence "Eval variables in this file." so I
left it alone.

also allow creation of new local group when NIS groups are used.
this can probably be done more elegantly, and needs more thought.
1996-08-28 17:54:14 +00:00
Wolfram Schneider 5a80fb277e sync copyright with /usr/share/examples/etc/bsd-style-copyright 1996-08-27 20:04:45 +00:00
Garrett Wollman 95aa1d06a2 Merge new routed from vendor branch. 1996-08-27 16:22:05 +00:00
Garrett Wollman 776589ccad Initial revision 1996-08-27 16:12:46 +00:00
Paul Traina 30959c76e0 Run as daemon.daemon, not nobody.daemon 1996-08-26 17:01:58 +00:00
Paul Traina 28f0ced1ee Fix buffer overrun, and run as nobody 1996-08-25 21:37:11 +00:00
Bill Paul 81ff470f7a It appears that with FreeBSD-current, we need to set the ethernet
frame type in network byte order. The htons() that wasn't needed in
2.1 is now required in 2.2.

Ultimately, this rarpd should be replaced with the more recent one
supplied with the new BPF distribution.
1996-08-24 23:05:08 +00:00
Mike Pritchard 1f8be615ce Convert to mdoc format. 1996-08-24 16:34:23 +00:00
Mike Pritchard c0b0bcf4d3 Use the .Bx macro where appropriate. 1996-08-23 20:36:11 +00:00
Jordan K. Hubbard fc8cb16597 Conditionalize some annoying debug statements, update the docs. 1996-08-23 07:56:06 +00:00
Mike Pritchard 85cf659a76 Use the .Fx macro where appropriate. 1996-08-23 00:57:08 +00:00
Wolfram Schneider aa7e9146d7 bye, bye 1996-08-22 17:41:22 +00:00
Paul Traina 6ea43f98e3 Fix typo in last commit...sigh 1996-08-21 21:39:44 +00:00
Mike Pritchard c200bf2b82 Add the -o option to the usage line. 1996-08-21 20:54:38 +00:00
cvs2svn f93cd6c4f3 This commit was manufactured by cvs2svn to create branch 'SENDMAIL'. 1996-08-21 20:47:59 +00:00
Mike Pritchard c993b63599 Oops, forgot to actually add the new man page. 1996-08-21 20:47:58 +00:00
Mike Pritchard 96d93606b9 Add a man page for mailstats(8).
Obtained from:  NetBSD
1996-08-21 20:45:20 +00:00
Paul Traina 768bb613dd Change DISTDIR to TCPDUMP_DISTDIR 1996-08-21 17:11:41 +00:00
Andrey A. Chernov 17c2b3452d Bugfix: all device counts >= 256 was broken, they truncated by % 255
because of u_char count field size. It hits when device
header file already present.
1996-08-21 17:00:54 +00:00
Paul Traina 9f6ca50ce7 Uniquely name the distribution directory variable so that it can be overridden
for multiple packages at the same time.
1996-08-21 16:50:15 +00:00
Peter Wemm 3f22340731 Decode ICMP_UNREACH_FILTER_PROHIB responses as !F, from RFC1812.
Suggested by: Bill Fenner <fenner@parc.xerox.com>

Additionally, print unrecognised ICMP_UNREACH codes numerically. eg, code
15 would show up as !<15>.
1996-08-21 05:59:19 +00:00
Peter Wemm e86f5a4cd3 Back out part of my previous commit. The bug was fixed over 12 months
ago in FreeBSD more cleanly.
1996-08-21 04:31:28 +00:00
Gary Palmer 2f425539d6 Pickup VERSION from the tcpdump sources in contrib/tcpdump. Allows
`make world' to work again.
1996-08-21 04:14:36 +00:00
Wolfram Schneider 7e0b7d4a87 add pathnames.h, -Wall cleanup 1996-08-20 23:51:20 +00:00
Jordan K. Hubbard d17e19f475 Clean up the english a little, having made the mistake of reading it. 1996-08-20 21:27:18 +00:00
Wolfram Schneider f99f7b462b run pwd_mkdb with new check option [-c] to verify correctness
of /etc/master.passwd
1996-08-20 19:57:23 +00:00
Paul Traina 9f3816ea5d Fix up path 1996-08-20 05:44:01 +00:00
Paul Traina 3629a694ff Grab tcpdump out of src/contrib/tcpdump 1996-08-19 21:57:10 +00:00
Wolfram Schneider e2ab8bac10 New option: [-c]
Check if the password file is in the correct format. Do not
        change, add, or remove any files.
1996-08-19 16:03:15 +00:00
Peter Wemm c3944f3dd1 Fix a bug, it was returning a pointer to a variable on the stack, instead
of the specially strdup()'ed version.
1996-08-19 14:28:48 +00:00
Peter Wemm 1340e5b6fe Define ETHERS_SERVICE, since our OS provides it. Otherwise, you
can't do a "tcpdump 'gateway foo'" unless it's in /etc/ethers - it wasn't
reading the NIS tables.
1996-08-19 14:27:14 +00:00
Wolfram Schneider 4b2b2ee3e1 ``make install'' should not install the symlink /usr/sbin/rmt -> /etc/rmt
Only ``make distribution'' in src/etc/Makefile overrides things in /etc

Pointed out by: joerg
1996-08-18 11:05:08 +00:00
Peter Wemm b011f9fd8f Fixes from NetBSD:
- inet_ntoa() returns a pointer to a static buffer, dont use it twice
   in the same printf().
 - prevent the possibility of never timing out
 - Report two more ICMP error types (prohibited nets etc)
And some (commented out) enhancements that I use, but some don't like.
1996-08-17 10:37:28 +00:00
Wolfram Schneider b4356447c7 New options
-K      Run as command kbdmap(1).
    -V      Run as command vidfont(1).
    -p, -print
            Print description  of available keymaps or fonts to
            stdout and exit.

Document that users should not choose MSDOS codepage keymaps or fonts.
1996-08-16 13:26:44 +00:00
Andrey A. Chernov 0d9bb52dbb Remove -p from SYNOPSIS 1996-08-16 12:34:47 +00:00
Andrey A. Chernov de1fd44033 Remove -p option from getopt string, all corresponding code
already deleted
1996-08-16 12:12:53 +00:00
Peter Wemm 28c28b06ed rpc.rstatd -> rpc.lockd typo
Noticed by: tholo@sigmasoft.com (Thorsten Lockert)
1996-08-16 09:44:40 +00:00
Wolfram Schneider 8a368b34b0 Do not add an user to a group if the group is also the login group. 1996-08-14 19:06:04 +00:00
Adam David 7ba57172c1 chown(8) and chgrp(1) directories once only 1996-08-14 18:13:58 +00:00
Wolfram Schneider 2e8b782306 Do not send "welcome mail" as default. If you want this feature
you can still enable it. Better, use mail client like elm or pine.

Requested by: Jordan
1996-08-13 21:50:51 +00:00
Bill Fenner aba3a4ce1b Fix last commit (and PR bin/1489) by creating both sockets before
setuid().
1996-08-13 16:28:59 +00:00
Peter Wemm 403b820b67 Fix a few minor type problems that turned up with gcc-2.7.2 1996-08-13 09:21:38 +00:00
Peter Wemm 2db86e5b74 Add RTF_STATIC to default route's flags in the hope that routed will no
longer remove it while it is running.
1996-08-13 09:19:45 +00:00
Peter Wemm b49090e691 Add RTF_STATIC to flags when creating a default route. Hopefully this
will stop routed from removing it if it is also running.
1996-08-13 09:16:49 +00:00
Paul Traina 7e31b4b1be Previously, if the dial script had any problems, pppd would simply
bomb out.  Unfortunately, FreeBSD's sio driver and certain internal
modems don't get along very well, which can cause the serial port to
wedge until it is closed and reopened.

Add new variable, connect-max-attempts, default = 1 (to mimic previous
behavior).  If > 1, will try up to "n" times to dial remote site before
aborting.
1996-08-11 17:29:37 +00:00
Julian Elischer 7356460fe3 Reviewed by: various
Submitted by:	archie@whistle.com

changes to allow inetd to bind to a single interface
for more complicated options see xinetd in ports.

Obtained from: whistle.com
1996-08-09 22:20:24 +00:00
Adam David d91013b58d was missing @ 1996-08-09 17:55:18 +00:00
Bill Fenner f1284d7a51 Drop setuid ASAP, to minimize code executed as root.
Reviewed by:	pst
1996-08-09 06:00:53 +00:00
Poul-Henning Kamp 4b7d97414e Make broadcast clients work. 1996-08-06 11:32:25 +00:00
Paul Traina 18fb104c5a Gratuitous whitespace change so that I can commit the source of the recent
buffer overflow patch.
Reviewed by:	pst
Submitted by:	Dave Andersen <angio@aros.net>
1996-08-05 00:50:02 +00:00
Paul Traina b04b7cf55d Fix up some more buffer overflow problems. 1996-08-05 00:31:27 +00:00
Bill Paul d2c75ac3d8 Fix a couple of bogons. The first two were brought to my attention
by Peter Wemm:

- In yppasswdproc_update_1_svc(), I wasn't paying attention and put
  a couple of lines of code _after_ a return() instead of before.
  (*blush*)

- The removal of certain temp files didn't always work (this showed
  up mostly if you were using /etc/master.passwd as your NIS passwd
  template instead of /var/yp/master.passwd). This is because the
  whole temp file creation mechanism I was using was tragically
  broken (you can't rename across filesystems).

This problem I found myself:

- If you have a very large password database (30,000 or more entries),
  there can be a delay of several seconds while pw_copy() copies the
  ASCII template file and subsitutes in the modified/new entry. During
  this time, the clnt_udp() code in the RPC library may get impatient
  and retry its request. This will get queued at the server and be
  treated as a second request. By then the password change will have
  been completed and the second request will fail (the old password is
  no longer valid). To attempt to fix this, we save the IP address and
  port of each request and ignore any subsequent requests from the
  same IP and same port that arrive within five minutes of each other.
1996-08-04 22:13:05 +00:00
Poul-Henning Kamp 154fd6a990 Enhance crunchgens understanding of our new /usr/obj/`pwd` strategy. 1996-08-04 20:38:53 +00:00
Jordan K. Hubbard 96a9d7fb41 Try to make screen update more efficient (less flickering) by more
judicious use of dialog_clear_norefresh().
1996-08-03 10:11:56 +00:00
Jordan K. Hubbard 9a8104ec99 Make the same fix to the disk partition editor screen. 1996-08-03 05:29:24 +00:00
Jordan K. Hubbard f48bd9cf9e Fix an embarassing bogon in the key input code. I'll roll another snap
boot floppy for this one..
1996-08-03 05:25:56 +00:00
Nate Williams a076b72573 Use the defines and macros defined in /sys/pccard/cis.h to make the code
easier to understand.  LOTS more work needed in this area.

Inspired by:	The Nomad code
1996-08-01 15:45:46 +00:00
Jordan K. Hubbard fa05dcb5ee Whoops! VTYs return zero values for TIOCGSIZE! Work around this. 1996-08-01 13:47:03 +00:00
Jordan K. Hubbard a0779fbe20 Don't query DNS if we haven't got it configured. 1996-08-01 12:59:54 +00:00
Jordan K. Hubbard caa8175236 Handle SIGPIPE in a couple of crucial places. 1996-08-01 12:35:51 +00:00
Jordan K. Hubbard 7204896f94 Put verbosity in the right place. 1996-08-01 12:13:20 +00:00
Jordan K. Hubbard 4bd2df3a33 Purely cosmetic tweaks. 1996-08-01 12:02:26 +00:00
Jordan K. Hubbard 137a1bde43 Clean up the results from getch(). 1996-08-01 11:39:49 +00:00
Jordan K. Hubbard a19596c5a8 Close PR#1542. Don't just assume 24 lines, get the tty size.
Some things may still display text on the 24th line, but that's because
they've always been screens designed to fit into a minimal real-estate
and have hardwired assumptions about the dimensions.  They'll be a little
harder to make dynamic.
1996-08-01 10:58:54 +00:00
Jordan K. Hubbard 21c7f0d4d7 Make -force work for pkg_add. 1996-07-31 21:52:33 +00:00