Commit Graph

3284 Commits

Author SHA1 Message Date
Brian Somers
6c9e376dfe Cosmetic: Be specific about using TABs in syslog.conf. 1997-10-05 10:29:32 +00:00
Jordan K. Hubbard
97fe7f477f Changes to support full make parallelism (-j<n>) in the world
target.
Reviewed by:	<many different folks>
Submitted by:	Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
1997-10-05 09:40:24 +00:00
Jordan K. Hubbard
ac492f4554 Whups! Missed a spot in the kerberos src changes. 1997-10-04 15:50:09 +00:00
Peter Wemm
feee4d201e Record the envelope from address in the received: line. This has turned
out to be very useful for spam tracking and other problem debugging.

I first noticed this in one of Paul Vixie's machine's headers a while ago.
1997-10-04 11:10:19 +00:00
Jordan K. Hubbard
c646fc1cfa Un-nuke krb and do what I *meant* to do, darn it. 1997-10-04 09:01:20 +00:00
Jordan K. Hubbard
1de31251a4 Adapt for new crypto source layout. 1997-10-04 08:58:16 +00:00
Brian Somers
57fd05c48b Cosmetic: Log a strerror(errno) when failing to write to
the tun device.
1997-10-04 00:14:39 +00:00
Jordan K. Hubbard
4a0aa46197 Get boot.help from a different place. 1997-10-03 14:14:40 +00:00
Jordan K. Hubbard
7fd698d732 Don't attempt to deref OpenConn after it's been set to NULL. :) 1997-10-03 14:00:09 +00:00
Jordan K. Hubbard
6cf4a83ec5 For people running paranoid ftpds, use the real username to log in
with when running multi-user and we actually have one.
Suggested by:	Joao Carlos Mendes Luis <jonny@coppe.ufrj.br>
1997-10-03 03:32:03 +00:00
Philippe Charnier
2d7a5bff3b Use err(3). 1997-10-02 11:46:53 +00:00
Philippe Charnier
0fc81af12d Use err(3). Change firewall to firewall_enable in man page according to
/etc/rc.conf.
1997-10-02 11:43:33 +00:00
Philippe Charnier
5848fd5f35 According to Bruce, err(-1,..) is bogus. Change it to err(1,..). More commits
to come in this area.
1997-10-01 06:34:09 +00:00
Philippe Charnier
de1ef5eb94 Use err(3) instead of local redefinition. 1997-10-01 06:30:02 +00:00
Philippe Charnier
a89409a2eb Use err(3). -Wall cleaning. 1997-10-01 06:27:34 +00:00
Jordan K. Hubbard
0c795d27ea Keep fingers off /etc files until they're properly backed up.
PR:		4636
Submitted by:	Jack <jack@zeus.xtalwind.net>
1997-10-01 01:30:35 +00:00
Philippe Charnier
6ee8ae607a Use err(3). Add usage(). Rewrote man pages in mdoc format. 1997-09-30 06:15:23 +00:00
Brian Somers
8bfa2d0ed9 If "set mtu" is used, *and* the mtu is less than the
value requested by the peer, NAK using this value
rather than silently just changing the interface
mtu.
1997-09-29 19:40:16 +00:00
Wolfram Schneider
bf5cbf3551 Sort cross refereces in section SEE ALSO. 1997-09-29 19:11:55 +00:00
John Polstra
7a6b5d25b7 Correct the description of the output from the "-s" option. It was
backward.
1997-09-29 17:43:11 +00:00
Wolfram Schneider
2af22b06a4 Endless loop.
$ vipw
[corrupt a line in editor, exit editor]
pwd_mkdb: corrupted entry
pwd_mkdb: at line #2
pwd_mkdb:
/etc/pw.012585: Inappropriate file type or format
re-edit the password file? [y]: n^D^D
[hang]
1997-09-29 13:13:51 +00:00
Philippe Charnier
cd94e9c368 Use err(3). 1997-09-29 06:38:49 +00:00
Jordan K. Hubbard
26a695079e Add ftp4.uk.freebsd.org 1997-09-29 00:15:07 +00:00
Brian Somers
4e556546a8 Test for the existence of ../../secure rather
than /usr/include/des.h before building with MSChap.
support.  Also allow -DNOCRYPT (as well as -DNOSECURE)
as an override
sbin/init example pointed out by: bde
1997-09-28 20:17:59 +00:00
Mark Murray
14710273ac Add (commented out) macros to make compiling with tcpwrappers easier. 1997-09-28 09:31:43 +00:00
Brian Somers
fde958c3d3 Don't depend on time.h including sys/types.h 1997-09-27 19:41:40 +00:00
Brian Somers
f0d4fed251 Don't login twice when using passwdauth
Suggested by:	Peter Childs <pjchilds@imforei.apana.org.au>
Merge the whole module into a few lines in pap.c
1997-09-27 19:11:43 +00:00
Tim Vanderhoek
a04aa72155 Document pkg_add's dependency auto-install. While I'm here, fix
a couple typos, and consistent double-spacing after sentences.

This is actually a spinoff from the "ports-current discontinued"
blow-up some time ago.

Ack'd by: jkh
1997-09-27 13:41:35 +00:00
Brian Somers
252715a39c #define RECON_ENVOKED as 4 (not 3, like RECON_UNKNOWN)
Pointed out by:	tom@tomqnx.com (Tom Torrance at home)
1997-09-26 00:23:36 +00:00
Philippe Charnier
ec175ced96 Use err(3). Add missing parameter for printf() (reviewed by steve). 1997-09-25 06:47:33 +00:00
Philippe Charnier
07e1d533fd Remove unused variables. Lowercase err() strings. 1997-09-25 06:44:39 +00:00
Philippe Charnier
997485f93c Put includes in alphabetical order. Use fprintf() in usage(). 1997-09-25 06:42:30 +00:00
Philippe Charnier
f9b1ba8f7f Stylistic changes in man page. 1997-09-25 06:38:17 +00:00
Philippe Charnier
fe577fe939 Use err(3). 1997-09-25 06:36:29 +00:00
Brian Somers
0f8e0938a0 Do the MSChap encryption.
Submitted by:	Gabor Kincses <gabor@acm.org>
1997-09-25 00:58:20 +00:00
Brian Somers
7351f9d8e8 Allow Microsoft CHAP authentication.
This is a combination of MD4 & DES.
Submitted by:	Gabor Kincses <gabor@acm.org>
1997-09-25 00:52:37 +00:00
Philippe Charnier
9b3fe531b5 Use err(3). Add usage(). Various fixes in man pages. 1997-09-24 06:48:24 +00:00
Philippe Charnier
e2954565f3 Statisize usage(). Add return(0) for -wall. 1997-09-24 06:44:12 +00:00
Andrey A. Chernov
c997889e4b Compact usage string, devices list can be too long 1997-09-23 23:24:13 +00:00
Brian Somers
c06022153e Don't luse uu_lock in -direct mode. It conflicts w/
hylafax & the like.
Get the CD bit right at last - now that I've got
my second modem back - loss of carrier makes ppp exit.
1997-09-23 22:07:51 +00:00
Brian Somers
3f1125194b Undo botched commit (local changes got in) 1997-09-23 19:52:14 +00:00
Nate Williams
a12f9b749f - Bump up the size of the space for strings read from PCMCIA cards. Newer
cards have longer entries.

Submitted by:	Lars Fredriksen <lars@fredriks-1.pr.mcs.net>
1997-09-23 19:51:32 +00:00
Philippe Charnier
fa6990870e Use err(3). Add usage() and prototypes. 1997-09-23 06:38:54 +00:00
Philippe Charnier
ecdf56e7d9 Use err(3). Put includes in alphabetical order.
Rewrote man page in mdoc format.
Document -v and -p flags.
1997-09-23 06:36:27 +00:00
Philippe Charnier
330f19d310 Use err(3). Make it -Wall friendly. Typo fix in man page. 1997-09-23 06:32:33 +00:00
Brian Somers
301127fb0a Don't allow accept/deny when it's not appropriate.
Log PAP/CHAP users in utmp & wtmp, allowing it to
be avoided with "disable utmp"
1997-09-22 23:59:16 +00:00
Masafumi Max NAKANE
1a17a85ecb Typo fix.
PR:		4594
Submitted by:	Masahiro Sekiguchi <seki@sysrap.cs.fujitsu.co.jp>
1997-09-22 10:12:47 +00:00
Jordan K. Hubbard
3887aa4e23 If we're going to blindly install freebsd.cf from the etc-sendmail.cf
rule then we'd better depend on it.
1997-09-22 07:33:14 +00:00
Philippe Charnier
71b906885d Use err(3). Put includes in alphabetical order. Use .An macro. 1997-09-22 06:30:04 +00:00
Brian Somers
586526be29 Don't pause for one second before starting LCP
negotiation.  Instead, incrementally pause after
receiving LCPs with the same magic.  We can now
suffer a server that waits more than 1 second before
responding.  Pauses greater than a second get
hopelessly confusing as when the server eventually
starts, it sees a flood of Config Requests followed
by config NAKs and changes of magic.  This causes the
server to change its magic over and over.....
1997-09-22 02:51:24 +00:00
Brian Somers
3defb7fc30 Use the correct device name in "show modem" 1997-09-22 00:55:46 +00:00
Brian Somers
35495bec8d Correct the way the uucp lock file and the ttyXX.if lock
file get created.  We don't create lock files over non-tty
connections, but we *do* create lock files in -direct mode.
This leaves us capable of adding utmp/wtmp support for
successful pap & chap logins (coming soon).
1997-09-22 00:46:56 +00:00
Brian Somers
94cad8bcb1 Sleep for a second before sending the first LCP
config request.  This stops us from squirting stuff
down a line that still has ECHO turned on because the
peer hasn't had a chance to start yet.
Lead to the cause by:	Greg Lehey <grog@lemis.com>
1997-09-21 23:01:34 +00:00
Justin T. Gibbs
93384faa4c Add isa_devtab_cam. 1997-09-21 22:12:50 +00:00
Brian Somers
c47cab6191 It turns out that the following:
close(1);
  close(2);
  x = open(ctermid(NULL), O_RDWR|O_NONBLOCK);
  close(0)
on a tty causes select() to return an exception for descriptor x !
This is the case in RELENG_2_2, but not in 2.2.2.  I'm not sure why.
Instead of doing the x=open() and close(0), we just do x=0 now.
Problem pointed out by: Greg Lehey <grog@lemis.com>
                        Tomi Vainio <tomppa@fidata.fi>
1997-09-21 20:26:47 +00:00
Brian Somers
705c7a18f9 Typo police
Submitted by:	Mark Cammidge <mark@gmtunx.ee.uct.ac.za>
1997-09-21 13:08:00 +00:00
Brian Somers
599864f851 Add a pppctl(8) xref.
Suggested by:	joerg
1997-09-21 13:06:43 +00:00
Wolfram Schneider
f2b7396852 Add ypwhich(1) and yppoll(8) manual pages.
Obtained from: NetBSD, slightly modified
1997-09-21 11:49:18 +00:00
Wolfram Schneider
d95fc683ed Chown(8) compiled with -DSUPPORT_DOT (backward compatibility) does
first check for a `.' and then for `:' as a delimiter.
Usernames with a dot will fail.

# chown r.r:bin /tmp/bla
chown: r:bin: illegal group name

Fix: first check for a `:' and then for a `.'
1997-09-21 09:13:57 +00:00
Wolfram Schneider
142123c17e Do not complain about non existing shell "/nonexistent"
Smarter error check if a uid is already in use.

Submitted by: "Eugene Radchenko" <genie@qsar.chem.msu.su>
1997-09-20 19:59:54 +00:00
Wolfram Schneider
163f94979e Do not accept empty user names. 1997-09-20 18:26:22 +00:00
Jordan K. Hubbard
87b462a276 More label editor enhancements.
Submitted by:	Ed Gold <vegold01@starbase.spd.louisville.edu>
1997-09-20 06:24:17 +00:00
Warner Losh
c02d44b411 Add missing \ from previous rev to end of a line. 1997-09-20 04:58:08 +00:00
Jordan K. Hubbard
c3a6bc8315 Fix conditional bogon in Label Editor [from Ed Gold]
Print info boxes without titles.
1997-09-20 02:48:48 +00:00
Brian Somers
173471e627 Use snprintf() instead of sprintf() most of the time.
Obtained from: OpenBSD

Make usage() consistent with man page.
1997-09-19 22:22:04 +00:00
Masafumi Max NAKANE
7e04a60da7 Typo. 1997-09-19 16:04:19 +00:00
John-Mark Gurney
fa3699b078 bmake'd pnpinfo 1997-09-19 15:41:57 +00:00
John-Mark Gurney
d737df25ad activate pnpinfo 1997-09-19 15:41:43 +00:00
John-Mark Gurney
eddcf96d7d major modifications to the mixer. currently it doesn't report errors
that it encounters (such as invalid device), but does print usage upon
this error...

but otherwise allows complex commands such as:
mixer -f /dev/mixer4 synth line 50 -rec mic +rec line =rec cd ^rec mix
1997-09-19 13:38:51 +00:00
Philippe Charnier
e80cad8b8b Use An macro for author name. 1997-09-19 06:29:52 +00:00
Philippe Charnier
2976d54b00 Use err(3). Typo fixes in man page. 1997-09-19 06:28:57 +00:00
Philippe Charnier
c1a2e93e94 Use err(3). 1997-09-19 06:27:30 +00:00
Jordan K. Hubbard
466cf1dd58 Whoops! Missed one on the XF8633 -> XF86331 update.
PR:		4560
1997-09-18 17:54:36 +00:00
Jordan K. Hubbard
7789aca24b Correct typo. 1997-09-18 16:24:36 +00:00
Jordan K. Hubbard
c6ea78c196 Over 1000 ports now. Note this in the relevant place. 1997-09-18 16:19:17 +00:00
Poul-Henning Kamp
d030d2d2ae Many places in the code NULL is used in integer context, where
plain 0 should be used.  This happens to work because we #define
NULL to 0, but is stylistically wrong and can cause problems
for people trying to port bits of code to other environments.

PR:		2752
Submitted by:	Arne Henrik Juul <arnej@imf.unit.no>
1997-09-18 14:08:40 +00:00
Philippe Charnier
34384756cd environmental -> environment. 1997-09-18 06:55:21 +00:00
Philippe Charnier
be9950897a Typo. 1997-09-18 06:54:03 +00:00
Philippe Charnier
d682bccf28 Use err(3). Document -y flag. Remove unused -s flag from getopt string. 1997-09-18 06:35:51 +00:00
Brian Somers
fd2bc5eb1d Don't close(1) in direct mode and then proceed to
isatty(1) !  Keep 0 open for this till the modem's
been set up by either dup()ing 0 or by opening
ctermid(NULL) (if isatty(0)).

Discussed problem with: Tomi Vainio <tomppa@fidata.fi>
Made it finally dawn on me: Angelo Turetta <ATuretta@stylo.it>
1997-09-18 00:15:25 +00:00
Brian Somers
f919b46768 Support CHAP using MD4
Suggested by: jordan
1997-09-17 23:17:57 +00:00
Paul Traina
2f6456ee54 Fix misspelling 1997-09-17 16:23:48 +00:00
Paul Traina
c55c0846ed variable_load.c is dead 1997-09-17 16:18:54 +00:00
Paul Traina
69ac164732 Put all variables in VAR_ #define's to force a single location for all
of these magic knobs.  This is purely cosmetic and a documentation issue
so we don't have to glop through the source code looking for gems.
1997-09-17 16:18:22 +00:00
Jordan K. Hubbard
4a50ae9ab3 Add a new netInteractive variable so that the interactiveness of the TCP
setup dialog from scripts is more controllable.  No more biasing off of
hostname (which is now non-optional in the non-netInteractive case).
Requested by:	pst
1997-09-17 13:33:14 +00:00
Philippe Charnier
6c9d588507 Use err(3). Document options in man page, not in usage string. 1997-09-17 06:32:45 +00:00
Philippe Charnier
8268bea759 Perror() -> warn(). 1997-09-17 06:30:22 +00:00
Philippe Charnier
ea28e1c532 Use err(3). Add prototypes. 1997-09-17 06:29:23 +00:00
Philippe Charnier
355c9698df Use err(3), add usage(). 1997-09-17 06:27:23 +00:00
Philippe Charnier
9006448ee5 Use err(3) instead of local redefinition. 1997-09-17 06:26:06 +00:00
Philippe Charnier
873c7a4e8f Use err(3). Use An/Aq for author name. 1997-09-17 06:24:58 +00:00
Philippe Charnier
d82e5f5287 Wrap too long lines.
Requested by: Bruce.
1997-09-17 06:20:45 +00:00
Brian Somers
bc24029963 o Fix two unlikely descriptor leaks.
o Output the correct device for "show modem"
  while in -direct mode.
o Cosmetic:  Moan a bit more when we can't open
  the [modem] device.
o Call OpenModem() in a more "natural" way.
o Add some LogDEBUG in OpenModem().
1997-09-16 23:15:16 +00:00
Jordan K. Hubbard
5ef5a78cd2 Whoops, forgot a file!
Submitted by:	pst
1997-09-16 18:57:47 +00:00
Jordan K. Hubbard
9f86ac0aa7 Much better dispatch code and scripting support.
Submitted by:	pst
1997-09-16 18:57:18 +00:00
Jordan K. Hubbard
365a44db75 MF22: pst's changes.
Submitted by:	pst
1997-09-16 10:14:23 +00:00
Philippe Charnier
bc8600f650 Police from style.9 and Bruce. 1997-09-16 07:11:13 +00:00
Philippe Charnier
b17e90a9c9 Use err(3). 1997-09-15 06:41:09 +00:00
Philippe Charnier
401e64688b Use err(3). Rewrote man page in mdoc format. 1997-09-15 06:39:25 +00:00
Philippe Charnier
d58316915f Use err(3), add usage(). -Wall clean. 1997-09-15 06:37:10 +00:00
Philippe Charnier
55c5024e9c Put includes in alphabetical order. various cosmetics. 1997-09-15 06:33:52 +00:00
Philippe Charnier
14b374a5c4 Remove unused #include. Statisize usage(). 1997-09-15 06:32:01 +00:00
Rodney W. Grimes
2b6f499962 Now that this has been merged over to RELENG_2_2 remove
the #if FreeBSD >= 3 wart I added while debugging.
1997-09-15 05:08:05 +00:00
Joerg Wunsch
81be6c75ba Explain a little more about the piping feature.
PR:		4122
1997-09-14 06:55:15 +00:00
Jordan K. Hubbard
2110cdc5e4 XFree86 3.3.1 updates
Document new media flag in lieu of links.
1997-09-14 04:18:42 +00:00
Masafumi Max NAKANE
a1138a1695 Typo. 1997-09-13 17:55:43 +00:00
Wolfram Schneider
f6b31571f6 spelling corrections.
PR: docs/4450
Submitted by: josh@quick.net
1997-09-13 16:01:53 +00:00
Wolfram Schneider
378b56378a typo
PR:		docs/4523
Submitted by:	Takahiro Yugawa <yugawa@orleans.rim.or.jp>
1997-09-13 15:35:00 +00:00
Jonathan Lemon
a968cfd87c If a host in an export line in /etc/exports (or within a netgroup on
an export line) is unresolvable, make a note of it via syslog and skip
that individual host instead of skipping the entire line.

PR:	1981, 815
Perused by:	joerg
1997-09-12 16:25:24 +00:00
Jordan K. Hubbard
2cbb21cfc9 Fix offset bug in partition display that made partitions of type
`linux_swap' hose the output.

Also add a (T)ype command for changing the type of a partition.
1997-09-11 17:12:08 +00:00
Brian Somers
b0f5f9ed37 Get rid of missing-prototype-warning 1997-09-10 23:55:35 +00:00
Brian Somers
f7fdd41d4a PRED1 => TY_PRED1 (oops) 1997-09-10 21:36:54 +00:00
Brian Somers
29a6597c6b o Initialize the PRED1 input queue when we
receive the ResetAck, NOT when we send the
   ResetReq (as per the rfc).
o  SILENTLY ignore CCPs that arrive *before*
   the network phase (as per the rfc).
o  Check that we've actually negotiated PRED1
   before sending PRED1 output.
   This bug has been around for a *VERY* long
   time !  We shouldn't need to explicitly disable
   PRED1 now :-)
1997-09-10 21:33:32 +00:00
Jordan K. Hubbard
0ac80091c3 Update to XFree86 3.3.1 1997-09-10 10:15:41 +00:00
Peter Wemm
57d7cc66ff Duh, calculate the compression ration correctly. (fixed point artithmatic
with 8 "fractional" bits needs to be divided (not multiplied) by 256.0
to get a floating point representation)
1997-09-10 08:43:17 +00:00
Brian Somers
10a91a42fc Cosmetic: Remove unused variables and build on OpenBSD. 1997-09-10 02:20:35 +00:00
Brian Somers
23a1cfaa6a Allow dial to work in non-interactive mode. 1997-09-09 23:56:29 +00:00
Brian Somers
3732c71b01 Print errors correctly (don't adjust
argc/argv for commands).
1997-09-09 23:23:24 +00:00
Brian Somers
ff9d952578 Don't start an interactive shell from a
telnet prompt.
1997-09-09 23:13:31 +00:00
Brian Somers
d40f8a5a61 Correct ppp authentication defaults in interactive
mode.  We don't want to be forced to type a password
here :-(
Pointed out by: mouth@ibm.net (John Kelly)

While I'm there, don't allow a "set server" in
interactive mode.
1997-09-09 21:51:39 +00:00
Brian Somers
506474c87a Document the use of PAP/CHAP properly. 1997-09-09 21:01:53 +00:00
Jordan K. Hubbard
d0ef76de67 Scrolling partition and label lists now make it possible to partition
lots of disks from sysinstall.  Yay!  Please test this as much as
possible with any 3.0 SNAP later than 970910 (I.E. tomorrow's snap),
especially those of you with larger disk farms.

Submitted by:	Ed Gold <vegold01@starbase.spd.louisville.edu>
1997-09-09 16:32:01 +00:00
Jordan K. Hubbard
5fe1a639c5 Eliminate an obviously redundant message title. 1997-09-09 16:27:50 +00:00
Jordan K. Hubbard
948ae9ab81 Update for XFree86 3.3.1 1997-09-09 16:26:29 +00:00
Jordan K. Hubbard
b79a0997ab Be more cautious about leaving user with a workable kernel during the
upgrade process.
Submitted by:	Mikael Karpberg <karpen@ocean.campus.luth.se>
1997-09-09 09:19:30 +00:00
Jordan K. Hubbard
321a8d519a Make upgrade potentially a little less interactive.
Add and document new loadConfig function (sort of like a script #include).
Make TCP/IP setup far less chatty when it doesn't need to be.
1997-09-08 11:09:11 +00:00
Joerg Wunsch
96fc32627f Add a hint to the FAQ regarding ``DD'' disks. 1997-09-07 14:05:21 +00:00
Bruce Evans
511dfc2c55 Oops, the previous commit shouldn't have touch the Makefile. 1997-09-07 12:27:54 +00:00
Bruce Evans
3ec03428c3 Don't say that swapping is configured by config. 1997-09-07 10:35:17 +00:00
Brian Somers
881a8bbf54 Disable LQR by default. It causes too many problems
with too many ISPs to be a good default.  LQR is still
accepted by default.
1997-09-07 01:00:06 +00:00
Brian Somers
8742662039 Use __libalias_version to derive the name to
pass to dlopen().
1997-09-06 11:16:02 +00:00
Brian Somers
f9b06d5cbe Ingored incoming packets are now dropped when
deny_incoming option is set to yes.
Submitted by:	Ari Suutari <ari@suutari.iki.fi>
1997-09-06 11:14:03 +00:00
Steve Passe
fb42160f6f Changed the Ints labels for the IO APIC from "INT#" to "PIN#" to better
reflect its logical usage.  Ie., there is NOT a 1-to-1 correspondence
between IRQ numbers and APIC pin numbers as there is with the 8259 ICU.
1997-09-06 04:11:53 +00:00
Brian Somers
b61ab30e6b Insist that the user has group network.
Discussed on: -committers
1997-09-05 23:11:28 +00:00
Philippe Charnier
cc09f59a1e Cosmetic in man page. Sync usage() with man page. 1997-09-04 11:55:45 +00:00
Philippe Charnier
dd1f44fc09 Use err(3). Style in usage(). 1997-09-04 11:52:28 +00:00
Philippe Charnier
112eace26d Use err(3). Add usage and prototypes. Remove Xref: Diskless(8) does not
exist. Use An/Aq macros for Author.
1997-09-04 11:50:37 +00:00
Philippe Charnier
4b15a65e1f Use err(3). Add usage(). Remove Xref: format(8) does not exist. 1997-09-04 11:40:51 +00:00
Brian Somers
683cef3c33 Install as group ``network''
Insist that uid == 0 for client ppp
Disallow client sockets if no password is specified
Don't exit on failure to open client socket for listening
Allow specification of null local password
Use reasonable size (smaller) ``vector''s in auth.c
Fix "passwd ..." usage message
Insist on "all" as arg to "quit" (if any)
Drop client socket connection before Cleanup() when "quit all"
1997-09-04 00:38:22 +00:00
Jordan K. Hubbard
920e888936 Install boot.help a little more skillfully; now it works without a src
dist installed. :)
1997-09-03 11:19:56 +00:00
Jordan K. Hubbard
21130039d8 People have complained that this is overly chatty, and
"dangerously dedicated" mode doesn't appear to have killed
anyone in recent memory, so I agree.
1997-09-03 10:47:44 +00:00
Philippe Charnier
c72049e448 Use err(3). Document -n flag from OpenBSD.
Obtained from: OpenBSD.
1997-09-03 06:32:31 +00:00
Brian Somers
5b4c5b0055 Bring CCP and IPCP layers down properly when LCP
comes down.  Give a count of bytes sent/received
in IPCP log.
1997-09-03 02:08:20 +00:00
Brian Somers
b6d7b1e061 Allow the transition from an idle timeout value
of zero (no timeout) while IPCP is up.
Move some prototypes into .h files and re-order
some includes.
1997-09-03 00:40:51 +00:00
Jordan K. Hubbard
b4104ffa6b Eliminate an annoying message. 1997-09-02 08:48:47 +00:00
Philippe Charnier
8ecd8ec971 Use err(3). Silent -Wall. 1997-09-02 06:37:48 +00:00
Philippe Charnier
afe83a1cf7 Use err(3). Typo in man page. 1997-09-02 06:36:39 +00:00
Philippe Charnier
d7d4c0e8c6 Add usage(), use err(3), remove `progname'. 1997-09-02 06:35:27 +00:00
David Nugent
d3329f56fa Unquote default group in pw.conf.
PR: 4365
Submitted by: "Andrew L. Moore" <alm@mclink.com>
1997-09-01 09:33:08 +00:00
Philippe Charnier
b8594fe054 Cosmetic changes. 1997-09-01 06:14:17 +00:00
Philippe Charnier
b63f602a08 Use err(3). 1997-09-01 06:12:37 +00:00
Philippe Charnier
3efa2f585c Style in rcsid, sort #include. 1997-09-01 06:11:40 +00:00
Brian Somers
afc7fa2c18 Cosmetic: Make LogPrintf() calls consistent. 1997-08-31 22:59:49 +00:00
Brian Somers
021352282c Make ppp owner root.ppp, mode 4550
Suggested by: guido
Condoned by: eivind
1997-08-31 20:18:03 +00:00
Brian Somers
709db7fbee Remove use of login_progok()
Suggested by: guido
1997-08-31 20:07:03 +00:00
Eivind Eklund
d6b01f404d Fix my e-mail address. Old work addres is no good. 1997-08-31 16:38:33 +00:00
Peter Wemm
046e06a57c Initial support for dealing with an elf /kernel. This is a loose hybrid
of OpenBSD's elf nlist code for this, and our a.out version.  The OpenBSD
version was mainly a seek/read system with a mmap of the string table,
this one simply mmap's the lot (like the a.out version).

Obtained from:  a fair chunk from OpenBSD
1997-08-30 23:35:00 +00:00
Peter Wemm
fdaad796ed Update to include some of the newer vnode flags and remove some stale ones. 1997-08-30 20:18:49 +00:00
John-Mark Gurney
46657c7e77 fix a few spelling changes
Submitted by: Josh Gilliam

Closes PR's: 4429, 4431-4438

PS: He has agreed to submit all contrib fixes back to the original author.
1997-08-30 12:22:49 +00:00
John-Mark Gurney
ac3ff7117d fix misspelling
Submitted-by: Josh Gilliam

Closes PR:4424
1997-08-30 11:05:34 +00:00
John-Mark Gurney
0966c02d3f fix misspelling
Submitted-by: Josh Gilliam

Closes PR:4423
1997-08-30 11:04:03 +00:00
KATO Takenori
d1d9bf7e77 Added hw.machine_arch. 1997-08-30 02:28:00 +00:00
Guido van Rooij
e90cdb54db Plug info agthering attack as pointed out on Bugtraq recently.
Obtained from: OpenBSD
1997-08-29 19:22:28 +00:00
Warner Losh
83eea89664 Remove and odd sleep found by David Holland and posted to -security.
Reviewed by:	Theo de Raadt (who put it into OpenBSD)
Submitted by:	David Holland <dholland@eecs.harvard.edu>
1997-08-29 18:00:11 +00:00
Brian Somers
ce28475da5 Use login_progok(). 1997-08-27 20:11:16 +00:00
Brian Somers
4e752f44f0 Check the "prog.deny" login.conf capability and
refuse to run if "ppp" is in the list.
Suggested by:	"Daniel O'Callaghan" <danny@panda.hilink.com.au>
1997-08-26 23:20:16 +00:00
Wolfram Schneider
956737a7a6 Stop the growing list of shells if /etc/adduser.conf
was updated.
1997-08-26 22:47:51 +00:00
Bruce Evans
55d31f11fe -I/sys -> ${.CURDIR}/../../sys. This should finish replacing /sys by
a relative path.
1997-08-26 14:13:50 +00:00
Steve Passe
737e5e8da5 Removed suggested "options AUTO_START", no longer used.
Noticed by:	 Vincent Poy <vince@mail.MCESTATE.COM>
1997-08-26 05:12:45 +00:00
Brian Somers
f525ead3dd Lose a couple of extraneous backslashes. 1997-08-25 01:52:11 +00:00
Brian Somers
944f709824 Make the code format more in line with style(9).
Update loadalias to use the new libalias api.
Update to version 1.1.
1997-08-25 00:29:32 +00:00
Joerg Wunsch
1818482d81 Cosmetic: distinguish in diag message between rebuilding and updating
the database.

PR:		3397
Submitted by:	taob@risc.org (Brian Tao)
1997-08-24 18:23:21 +00:00
Steve Price
573414e0c1 Correct error message when the superuser tries to change
the group of immutable files.

PR:		bin/3445
Submitted by:	Pius Fischer <pius@ienet.com>
1997-08-24 02:10:29 +00:00
Brian Somers
81816fc583 Phone the number after the ``|'' whether the dial
OR login script fails.

Catch a small typo in the man page.
1997-08-23 23:14:24 +00:00
Steve Price
fa07a1fae9 .Nm key -> .Nm
PR:		docs/3877
Submitted by:	Kazuo Horikawa <k-horik@yk.rim.or.jp>
1997-08-23 16:58:52 +00:00
Steve Price
cf90bd0cbb Balance single quotes.
PR:		docs/4161
Submitted by:	Kazuo Horikawa <k-horik@yk.rim.or.jp>
1997-08-23 15:55:58 +00:00
Joerg Wunsch
36d0e2a3e2 common_source: staticize private version of warn() so to not conflict
with libc's version.

lpd: use getopt(3), err(3), add usage(), allow specification of a port #
on the command line as the documentation suggested for more than 10 years.

PR:		docs/3290
1997-08-23 15:53:00 +00:00
Peter Wemm
2ebbbbc19a Set ForwardPath as presently inuse on hub 1997-08-22 16:50:49 +00:00
Peter Wemm
e80e9a69c5 Oops, that'll teach me to edit the makefile after testing... Remove
duplicate cbcp.c in SRCS... :->
1997-08-22 15:57:37 +00:00
Peter Wemm
f622ba291d Turn on client callback support (CBCP), it seems to be complete. 1997-08-22 15:50:09 +00:00
Peter Wemm
6de549b9f2 merge from vendor branch 1997-08-22 15:39:04 +00:00
Peter Wemm
59cc0fde7c Update to include 2.3.1 details (this is not an imported file, it's a
composite of other files)

Reminded by: pst
1997-08-22 14:35:37 +00:00
Peter Wemm
9851597813 Update to pppd-2.3.1, except for the CLOCAL changes while running the
connect script to main.c that can cause problems on bsd-style tty systems.
1997-08-22 12:03:57 +00:00
Jonathan Lemon
5b49d899ec Convert nets specified with -i/-n to network byte order.
PR:		3906, 3801
Submitted by:	Bob Willcox <bob@luke.pmr.com>, Hiroya Tsubakimoto
1997-08-21 19:53:04 +00:00
Brian Somers
e47c8739d5 Update version number to 1.02 so that I can tell what
people are running
1997-08-21 17:20:00 +00:00
Brian Somers
c16615aa8b Update doc to use MYADDR in ppp.conf. 1997-08-21 17:16:21 +00:00
Brian Somers
1d205e1313 Allow the use of HISADDR & MYADDR in ppp.conf. 1997-08-21 17:07:30 +00:00
Brian Somers
de451c685c Add "set loopback on|off", defaulting to "on".
This tells ppp to loopback packets addressed to
the ppp interface IP coming *from* the tun
device.

This means that you can ping the tun interface IP
from inside :-)
1997-08-21 16:21:39 +00:00
Brian Somers
91fc7145dc Correct online usage message for "set ? stopped" 1997-08-21 16:18:07 +00:00
Brian Somers
cb611434af Expand the "set stopped" command so that it can
idependently time out any of the FSMs.

Split LCP logging into LCP, IPCP and CCP logging,
and make room in "struct fsm" for the log level
that the state machine should use.
1997-08-20 23:47:53 +00:00
Jonathan Lemon
026df10061 Remove temporary file on exit.
PR:		4010
Submitted by:	"Anatoly A. Orehovsky" <tolik@www.tomsk.su>
1997-08-19 20:45:45 +00:00
Peter Wemm
b6633f4571 *gulp* First pass at merging in ppp-2.3.0's pppd. (this has
dial-on-demand, packet filtering, idle timeouts, etc).  The IPX support
is pretty much there but more work needs to be done in sys-bsd.c for
the interface ioctls (Linux has a very different way of configuring IPX
interfaces).

Along the way some things have temporarily been lost due to very messy
conflicts.  I will recover them shortly when I can think clearer.
The main one is the local:remote address override in pap-secrets and
chap-secrets.  Some other home-grown features (dns1,dns2) have been
implemented differently.  Microsoft's chap client auth hacks have been
implemented.  There are bound to be more rough edges...  The changes for
connect-max-retries doesn't fit well with the dial-on-demand code.
1997-08-19 17:52:48 +00:00
Paul Traina
02eab22ca1 Change local_cron to local_periodic.
Submitted by:	bde
1997-08-19 16:49:35 +00:00
Peter Wemm
a8c2a76de6 Temporarily move these to the Attic so that there's no confusion over
mixed up versions.  Also, these were imported onto the 1.1.2 branch
(since the last one was imported there, sigh) and that causes cvsup in
checkout mode some problems (there isn't any 1.1.1 branch at all!!).
1997-08-19 14:36:54 +00:00
Peter Wemm
9c08ff38e5 Initial revision 1997-08-19 14:29:39 +00:00
Daniel O'Callaghan
d053d1b926 Spelling police. 1997-08-19 11:27:00 +00:00
Daniel O'Callaghan
441de788b1 Typo fixes. 1997-08-19 11:18:34 +00:00
Brian Somers
3f6fd9230e Correct the forth arg to "set ifaddr". If specified,
it gives the IP number that should be used for initial
IPCP config requests, irrespective of MYADDR.
1997-08-19 01:10:24 +00:00
Jordan K. Hubbard
ea2b79b03e Fix fstab sequence number bug.
Add a few more strategic screen clears.
Fix registration form bug.
1997-08-18 21:47:34 +00:00
Jordan K. Hubbard
3f1d66701a 2nd round doc cleanup. 1997-08-18 21:10:26 +00:00
Jonathan Lemon
7256f6b3ab db close routine actually writes data out to disk; return value was
not being checked.  Change code to fail if db->close errors.

PR:		4202
1997-08-18 20:48:35 +00:00
Brian Somers
b48dfe09c7 Introduce the "bg" command. It's pretty
much the same as "shell", but it's in the
background.
1997-08-18 20:15:10 +00:00
Brian Somers
eb53eaa30b Fix possible buffer overrun while "expect"ing
something that's "nearly" what it wants.
1997-08-17 22:47:07 +00:00
Brian Somers
0444761561 Typo police 1997-08-17 22:45:25 +00:00
Brian Somers
71144dc552 Allow the use of a "stopped" timeout via the
"set stopped" directive.  If the timeout occurs
it will cause a "Down" event, hanging up the line
if it's still up.  This *isn't* part of the FSM
diagram, but I consider it ok as a "higher level
implementation specific timeout" as specified in
the rfc ;-}

Discussed briefly with:	joerg
1997-08-17 20:45:50 +00:00
Brian Somers
5b9b04192a Allow specification of fallback phone numbers to
be used only if the dial script fails.
PR:		4262
1997-08-17 20:38:45 +00:00
Jordan K. Hubbard
a6d56f6e65 Sync with rc.conf change for weak_mountd_authentication 1997-08-17 10:08:25 +00:00
Paul Traina
2a13325f76 Use /etc/periodic 1997-08-16 17:08:35 +00:00
Peter Wemm
b7abf69c86 Snapshot the various mail configurations. hub.mc was reconstructed to
produce the same sendmail.cf since the original has been lost.
1997-08-14 14:42:06 +00:00
Poul-Henning Kamp
44beef22f3 typo fix. 1997-08-14 10:36:31 +00:00
Poul-Henning Kamp
6ff4cb0076 Do not output anything for source-files with no counts.
Output function name for the "pre-prologue" entry, by stealing
it from the next entry.
Output length of basic-block in bytes and product of executions
and length.
1997-08-14 10:36:02 +00:00
Andrey A. Chernov
696a50cd5d Fix mdoc directives 1997-08-13 16:27:59 +00:00
Jordan K. Hubbard
c9d12677b4 Cast argument to lseek() properly to off_t.
PR:		4246
Obtained from:	review of PR and NetBSD sources.
1997-08-13 12:09:48 +00:00
Paul Traina
a2940c0e75 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
Paul Traina
fb1485d3e3 Incorporate some ideas that came up during discussion with msmith. 1997-08-13 06:02:18 +00:00
Paul Traina
f80feb0c50 Enable periodic 1997-08-13 00:58:49 +00:00
Paul Traina
c0fa6e333d Initial import of periodic executable control program. 1997-08-12 17:48:49 +00:00
Brian Somers
868cddb5fa Use libalias.so.2.3. 1997-08-11 22:07:57 +00:00
Jordan K. Hubbard
a435592391 Add a SEE ALSO for install.cfg sample script. 1997-08-11 13:20:38 +00:00
Jordan K. Hubbard
86ff624834 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 Somers
cad5afb077 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 Somers
fb994b078f - 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
Bill Paul
0485539e17 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
Rodney W. Grimes
d607bc7f6a 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 Wemm
a6eecebbe5 Merge sendmail-8.8.7 changes from vendor branch 1997-08-04 05:07:46 +00:00
Peter Wemm
8e97f84637 Merge sendmail 8.8.7 changes from vendor branch 1997-08-04 05:06:42 +00:00
Peter Wemm
e54babdf0c Import sendmail-8.8.7 onto vendor branch.
Obtained from: ftp.sendmail.org
1997-08-04 05:00:07 +00:00
Peter Wemm
561f1ee45f 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
Brian Somers
05dce3eefc Use libalias.so.2.2 1997-08-03 20:21:22 +00:00
Peter Wemm
1073e73d81 Zap antique #ifndef NEWVM code. This should be redone to use libkvm
someday.
1997-08-03 09:53:04 +00:00
Bruce Evans
4b35033122 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
Bruce Evans
ab2dd86c7e README is for Lite2. We don't want it. 1997-08-03 06:38:27 +00:00
Bruce Evans
8d151cdec3 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
Bruce Evans
59fe2c14b4 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
David Nugent
5e779680a9 Fix -p switch. 1997-08-01 15:06:21 +00:00
Jordan K. Hubbard
97564a75d4 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
Mike Smith
e7b89905f0 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 Somers
bfbee26298 Remove extraneous prototypes. 1997-08-01 02:02:28 +00:00
Paul Traina
8a04c9dcc9 Nologin is also a valid 'invalid' shell 1997-07-31 15:25:35 +00:00
Jordan K. Hubbard
e5a117774b 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
Jordan K. Hubbard
b6aad04900 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 Somers
4eb8b1640d Set up the alias address before executing
the contents of ppp.linkup.
1997-07-29 22:37:04 +00:00
Bill Paul
1f9224050e 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
Warner Losh
6ee8b26997 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
Warner Losh
5f87a7b6b1 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 Somers
437b5af636 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
Stefan Eßer
e663ea9c1d 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
Bill Paul
9934af38df 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 Somers
6614d8c5f3 Fix file descriptor leaks. 1997-07-28 01:02:27 +00:00
Brian Somers
9ed2f0484a 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
Wolfram Schneider
bf29452f98 Add a simple example section. 1997-07-27 23:10:33 +00:00
Bill Paul
7deb24a6ae 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
Stefan Eßer
663079ecfe Adjust for changes in data structures brought into ncr.c rev. 1.100. 1997-07-25 20:46:39 +00:00
Wolfram Schneider
b7d50183bb Add ref to sysmouse(4). 1997-07-25 13:21:35 +00:00
Wolfram Schneider
5cf470d68b Add ref to vidcontrol(1). 1997-07-24 23:49:28 +00:00
Wolfram Schneider
f62ae27537 Add ref to moused(8). 1997-07-24 23:46:35 +00:00
Wolfram Schneider
0298e80d89 Delete dead test code. 1997-07-24 17:44:46 +00:00
Brian Somers
e9eb6d7aa4 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
Warner Losh
f8eb25da54 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
Jordan K. Hubbard
9325ae34de 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
Warner Losh
360d4ad5ab 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
Steve Passe
0363191b8e Removed the SMP_TIMER_NC suggestion.
This is (almost) defunct, start to phase it out...
1997-07-22 18:52:20 +00:00
Brian Somers
afd70290e7 Output name of duplicate spool dir.
Submitted by:	Wayne Scott <wscott@ichips.intel.com>
1997-07-21 22:40:04 +00:00
Bill Paul
9ecc3726d9 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
Warner Losh
eb6c72e98f 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
Warner Losh
fb9108baa9 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
Wolfram Schneider
2aec92dd66 cp -r' -> cp -R'
Option -r is obsolete and buggy.
1997-07-18 12:05:43 +00:00
David Nugent
fa7e83d492 getuid() -> geteuid(). 1997-07-17 08:37:47 +00:00
Jordan K. Hubbard
009a69e4b7 Repair missing quote. 1997-07-16 15:22:18 +00:00
Jordan K. Hubbard
26fdf9e1de 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
Poul-Henning Kamp
63cfc56271 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
Doug Rabson
cb3923e0ee Merge WebNFS support from NetBSD.
Obtained from:	NetBSD
1997-07-16 09:27:53 +00:00
Jordan K. Hubbard
5028762fea 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 Wemm
1e0de93c0b 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
Bill Paul
4dbcd98832 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 van Rooij
ff196a51e4 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 Somers
c09be724d6 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 Wemm
65b3003d2d kill the undead 1997-07-13 14:26:00 +00:00
Guido van Rooij
11523cf5fb Remove -I/sys 1997-07-13 11:51:42 +00:00
Guido van Rooij
dc7cf2d101 Remove -I/sys and add -I${.CURDIR}/../../sys 1997-07-13 11:51:28 +00:00
Brian Somers
de68f5c548 Support "host:port" as first arg. 1997-07-12 19:26:49 +00:00
Brian Somers
7cc60a7478 Allow service names in "set server" 1997-07-12 19:22:34 +00:00
Dima Ruban
d8ae132815 Fixed buffer overflow.
Reviewed by:	Warner
1997-07-08 21:03:16 +00:00
John Hay
85d2c81156 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
Paul Traina
c0156f51b7 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
Jordan K. Hubbard
643e8222c7 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
Jordan K. Hubbard
7a55519931 YAMF22 1997-07-04 04:46:29 +00:00
Poul-Henning Kamp
177c95e45a Reset all LQR variables when we start over. 1997-07-02 19:18:42 +00:00
Brian Somers
873725cc51 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
Jordan K. Hubbard
55f4e300b4 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
Jordan K. Hubbard
0395b68640 Allow distSetByName() to process all the relevant entries.
Submitted by: msmith
1997-07-01 03:50:58 +00:00
Bruce Evans
61f3323058 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
Andrey A. Chernov
a2f6232436 Add LC_TIME=C to date 1997-06-30 10:59:25 +00:00
Jordan K. Hubbard
8805157f39 YAMF22 - deletes and preserve option fixes. 1997-06-30 03:15:40 +00:00
Brian Somers
01ec25112c Allow specification of a umask for local socket
creation in "set server" command.
1997-06-30 03:03:38 +00:00
Jordan K. Hubbard
6373a10b41 Whoops, only attempt to back up the file if it exists. :-} 1997-06-30 02:57:40 +00:00
Brian Somers
76c5241d63 Fix HUP handling while dialing.
Pointed out by:	ache
1997-06-29 13:54:31 +00:00
Jordan K. Hubbard
94d1d55871 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
Paul Traina
72b4ef7179 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 Somers
186d0be47e 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 Somers
c957ff409a Allow command line control of ppp through both
TCP and AF_LOCAL sockets.
1997-06-28 01:04:54 +00:00
Peter Wemm
59e3ff8177 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 Wemm
54d6a350e0 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 Wemm
f3a1fc342b Import sendmail-8.8.6
Obtained from: ftp.sendmail.org
1997-06-27 14:53:01 +00:00
Peter Wemm
91453f6a62 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 Somers
4ef16f24f2 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 Somers
2126fb65a3 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 Somers
030d3ce62a Fix ~? output in "term" mode.
Spotted by: Harry Starr <starr@gccs.com.au>
1997-06-24 21:25:06 +00:00
John Hay
0fad62aead Display tickadj in struct clockinfo. 1997-06-24 18:23:32 +00:00
Brian Somers
46b2c55966 Suggest using /etc/services entry rather than a
number in the "ipfw add divert" example.
1997-06-24 10:49:44 +00:00
Gene Stark
536f4d7cf3 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 Somers
368aee2ba3 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
Brian Somers
c3a83f6777 Typo police.
Submitted by: Chuck Robey <chuckr@glue.umd.edu>
1997-06-23 23:08:23 +00:00
Tor Egge
f62b59b0d8 Delay free of mf->mf_mount in uninit_mntfs until it is no longer used. 1997-06-23 22:03:12 +00:00
Steve Passe
233f81dc6b Removed SMP_PRIVPAGES from options list.
This functionality is now automatic.
1997-06-23 20:23:44 +00:00
Brian Somers
a6ae823cc3 Fix "set parity"
PR:		3881
Actual problem found by:	shocking@mailbox.uq.edu.au
1997-06-23 19:18:13 +00:00
Joerg Wunsch
334a95086d Imply a 10-second connection timeout when querying remote queues, to
prevent lpq from hanging indefinately (well, 10 minutes are for sure
counting as `indefinately' in this case).
1997-06-23 10:00:01 +00:00
Steve Price
d0dff61cfb Fix a minor nit in the .Dd macro invocation so that
the revision date is displayed correctly.
1997-06-23 04:52:13 +00:00
Steve Price
681e5e7a09 Show the real revision date and not the date that this
manpage is being viewed.
1997-06-23 04:03:49 +00:00
Jordan K. Hubbard
c1b792b226 sysconfig -> rc.conf 1997-06-22 14:40:27 +00:00
Jordan K. Hubbard
b4cfcc4383 Adjust my installation script to more closely match reality.
Add a system command to script mechanism (so you can call things like
tzsetup from scripts).

Add noError variable for causing script errors to be ignored.
1997-06-22 09:45:41 +00:00
Brian Somers
aac04c621a Hook natd 1997-06-22 04:23:10 +00:00
Brian Somers
3f86193daf What twit commited this ? Duh ! 1997-06-22 04:20:43 +00:00
Brian Somers
24084f9bfc Bring natd into main source tree now that the
pppd/natd combination works ok.

Submitted by:	Ari Suutari <ari.suutari@ps.carel.fi>
1997-06-22 04:19:08 +00:00
Jordan K. Hubbard
31377e1f1f Change the way that X configuration method is selected. 1997-06-21 15:45:15 +00:00
Joerg Wunsch
c1bae21c1e Fix a typo, so the -a option will by documented in the synopsis. 1997-06-21 09:17:45 +00:00
Brian Somers
9b5a20e10a Fix "delete all".
PR:		3913
1997-06-20 23:43:35 +00:00
Jordan K. Hubbard
2588c3547d Add a couple of strategic screen clears. 1997-06-20 07:04:16 +00:00
Jordan K. Hubbard
9a73af57e4 Fix multiple documentation bogons.
PR:		3798
Submitted by:	Jan Kuriyama <kuriyama@opt.phys.waseda.ac.jp>
1997-06-19 15:18:34 +00:00
Jordan K. Hubbard
2233edf577 1. Add a noWarn flag so that scripts can turn warnings off.
2. If hostname not set from script, bring up interactive dialog anyway.
1997-06-18 05:11:37 +00:00
Jordan K. Hubbard
34f52ab279 Check named_enable rather than just named_flags.
PR:		3893 (sort of)
1997-06-18 01:55:19 +00:00
John Polstra
0135ecec56 Correct the section number in the cross-reference for the publickey
file.
1997-06-17 20:24:33 +00:00
Bill Paul
80a53c9813 Work around a bug (deficiency?) in the libdes Secure RPC compat interface.
The way Secure RPC is set up, the ecb_crypt() routine is expected to
be able to encrypt a buffer of any size up to 8192 bytes. However, the
des_ecb_encrypt() routine in libdes only encrypts 8 bytes (64 bits) at a
time. The rpc_enc.c module should compensate for this by calling
des_ecb_encrypt() repeatedly until it has encrypted the entire supplied
buffer, but it does not do this.

As a workaround, keyserv now handles this itself: if we're using DES
encryption, and the caller requested ECB mode, keyserv will do the right
thing.

Also changed all references to 'rc4' into 'arcfour' just in case some
litigious bastard from RSA is watching.

Note that I discovered and fixed this problem while trying to get
a part of NIS+ working: rpc.nisd signs directory objects with a 16-byte
MD5 digest that is encrypted with ecb_crypt(). Previously, only the
first 8 bytes of the digest were being properly encrypted, which caused
the Sun nis_cachemgr to reject the signatures as invalid. I failed to
notice this before since Secure RPC usually never has to encrypt more
than 8 bytes of data during normal operations.
1997-06-17 18:03:52 +00:00
Brian Somers
3b80c31921 Cosmetic: Fix help syntax. 1997-06-17 02:04:51 +00:00
Brian Somers
712ae38782 Handle redial tries correctly under -ddial 1997-06-17 01:46:05 +00:00
Brian Somers
55a8cdea92 Put TCP/IP logs back on one line. 1997-06-16 21:20:00 +00:00
Brian Somers
cc39a98fd5 Set netfd to STDOUT_FILENO rather than STDIN_FILENO. 1997-06-16 19:59:41 +00:00
Brian Somers
fd59deba96 Correct filter docs.
PR:		3464
Submitted by:	Stephen J. Roznowski <sjr1@flash.net>
1997-06-16 13:52:10 +00:00
Brian Somers
d656a4c582 Remove call to daemon(). Just call setsid() and close
any relevent descriptors (0,2,[1]).  We've already fork()d.
PR:		3874
1997-06-16 13:24:59 +00:00
Andrey A. Chernov
687ee69a2a Remove srandomdev fallback code 1997-06-14 00:27:03 +00:00
Jordan K. Hubbard
7887f03216 YAMF22 1997-06-13 18:02:34 +00:00
Jordan K. Hubbard
17c5409baf YAMF22 1997-06-13 17:55:32 +00:00
Jordan K. Hubbard
08e6881746 YAMF22 1997-06-13 14:21:22 +00:00
Jordan K. Hubbard
4b59b68956 Incorporate an ancient typo fix that never made it over from 2.2. 1997-06-13 14:06:10 +00:00
Jordan K. Hubbard
189b7e9102 reverse polarity on bit-flip from 2.2 1997-06-13 11:00:13 +00:00
Jordan K. Hubbard
55bdcc5909 YAMF22 1997-06-13 09:34:10 +00:00
Jordan K. Hubbard
109cd53c79 YAMF22 1997-06-13 07:11:57 +00:00
Brian Somers
e696ee3b80 Fix "delete ...", it now only insists on
one arg too.

Discovered by:	Rikk Salamat <rikks@web-impact.com>
1997-06-13 03:59:36 +00:00
Brian Somers
94b3022ec7 Add ppp.linkdown file to compliment ppp.linkup.
Submitted by:	Forgotten
Passed on by:	Terry Dwyer 61 8 9491 5161 <tdwyer@io.telstra.com.au>

Also remove extraneous setuid(0) - it's only undone by
the subsequent call to SelectSystem().
1997-06-13 02:07:32 +00:00
Brian Somers
582691713e Fix "show ?" alignment.
PR:		3830
Submitted by:	Josh Gilliam <josh@quick.net>
1997-06-13 00:09:54 +00:00