Commit Graph

3376 Commits

Author SHA1 Message Date
phk
d8ac409160 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
charnier
1754071cd4 environmental -> environment. 1997-09-18 06:55:21 +00:00
charnier
335b8fc3ac Typo. 1997-09-18 06:54:03 +00:00
charnier
ce8df1cd4a Use err(3). Document -y flag. Remove unused -s flag from getopt string. 1997-09-18 06:35:51 +00:00
brian
109ba0ca66 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
af684d2595 Support CHAP using MD4
Suggested by: jordan
1997-09-17 23:17:57 +00:00
pst
52f8c412b8 Fix misspelling 1997-09-17 16:23:48 +00:00
pst
f6e7a48122 variable_load.c is dead 1997-09-17 16:18:54 +00:00
pst
4f718b5d5d 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
jkh
0dfe9b61e4 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
charnier
79b7395b62 Use err(3). Document options in man page, not in usage string. 1997-09-17 06:32:45 +00:00
charnier
29e06a9a5c Perror() -> warn(). 1997-09-17 06:30:22 +00:00
charnier
4d3c6f853c Use err(3). Add prototypes. 1997-09-17 06:29:23 +00:00
charnier
8d96034d35 Use err(3), add usage(). 1997-09-17 06:27:23 +00:00
charnier
9b3a5c04f4 Use err(3) instead of local redefinition. 1997-09-17 06:26:06 +00:00
charnier
34a6b27326 Use err(3). Use An/Aq for author name. 1997-09-17 06:24:58 +00:00
charnier
7f53c003f5 Wrap too long lines.
Requested by: Bruce.
1997-09-17 06:20:45 +00:00
brian
aaae64c991 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
jkh
e4a215054b Whoops, forgot a file!
Submitted by:	pst
1997-09-16 18:57:47 +00:00
jkh
cb8ec218f6 Much better dispatch code and scripting support.
Submitted by:	pst
1997-09-16 18:57:18 +00:00
jkh
d387f3a0a9 MF22: pst's changes.
Submitted by:	pst
1997-09-16 10:14:23 +00:00
charnier
28c97c8eb6 Police from style.9 and Bruce. 1997-09-16 07:11:13 +00:00
charnier
99550d450c Use err(3). 1997-09-15 06:41:09 +00:00
charnier
bdee4a3e4b Use err(3). Rewrote man page in mdoc format. 1997-09-15 06:39:25 +00:00
charnier
b8c46235c5 Use err(3), add usage(). -Wall clean. 1997-09-15 06:37:10 +00:00
charnier
3e054bd532 Put includes in alphabetical order. various cosmetics. 1997-09-15 06:33:52 +00:00
charnier
0976cf0f14 Remove unused #include. Statisize usage(). 1997-09-15 06:32:01 +00:00
rgrimes
23d5613e63 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
4d85218738 Explain a little more about the piping feature.
PR:		4122
1997-09-14 06:55:15 +00:00
jkh
232f4d661d XFree86 3.3.1 updates
Document new media flag in lieu of links.
1997-09-14 04:18:42 +00:00
max
b6275222a0 Typo. 1997-09-13 17:55:43 +00:00
wosch
fde8a8ec46 spelling corrections.
PR: docs/4450
Submitted by: josh@quick.net
1997-09-13 16:01:53 +00:00
wosch
6508f8ef4b typo
PR:		docs/4523
Submitted by:	Takahiro Yugawa <yugawa@orleans.rim.or.jp>
1997-09-13 15:35:00 +00:00
jlemon
551d6af699 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
jkh
5e33bd85aa 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
93e97af991 Get rid of missing-prototype-warning 1997-09-10 23:55:35 +00:00
brian
5d60a9a46b PRED1 => TY_PRED1 (oops) 1997-09-10 21:36:54 +00:00
brian
49b883a1dd 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
jkh
9631b54264 Update to XFree86 3.3.1 1997-09-10 10:15:41 +00:00
peter
e032db2bc7 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
74b863965c Cosmetic: Remove unused variables and build on OpenBSD. 1997-09-10 02:20:35 +00:00
brian
2acb5315cb Allow dial to work in non-interactive mode. 1997-09-09 23:56:29 +00:00
brian
2c906ef2d4 Print errors correctly (don't adjust
argc/argv for commands).
1997-09-09 23:23:24 +00:00
brian
fab65993a1 Don't start an interactive shell from a
telnet prompt.
1997-09-09 23:13:31 +00:00
brian
0791c3c050 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
4939f4fc06 Document the use of PAP/CHAP properly. 1997-09-09 21:01:53 +00:00
jkh
a605df3211 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
jkh
8c6164b309 Eliminate an obviously redundant message title. 1997-09-09 16:27:50 +00:00
jkh
55f821d874 Update for XFree86 3.3.1 1997-09-09 16:26:29 +00:00
jkh
a3ece59a09 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
jkh
140da23855 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
82e0a44b78 Add a hint to the FAQ regarding ``DD'' disks. 1997-09-07 14:05:21 +00:00
bde
31b6c99454 Oops, the previous commit shouldn't have touch the Makefile. 1997-09-07 12:27:54 +00:00
bde
a498d09490 Don't say that swapping is configured by config. 1997-09-07 10:35:17 +00:00
brian
f35ea9c661 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
1a2595c181 Use __libalias_version to derive the name to
pass to dlopen().
1997-09-06 11:16:02 +00:00
brian
9d4f19ab22 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
fsmp
e0e2f7c58c 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
b749597298 Insist that the user has group network.
Discussed on: -committers
1997-09-05 23:11:28 +00:00
charnier
d3d26f623e Cosmetic in man page. Sync usage() with man page. 1997-09-04 11:55:45 +00:00
charnier
8f89c97f8a Use err(3). Style in usage(). 1997-09-04 11:52:28 +00:00
charnier
6440762ef4 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
charnier
4bf7bce8d8 Use err(3). Add usage(). Remove Xref: format(8) does not exist. 1997-09-04 11:40:51 +00:00
brian
01052674bd 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
jkh
52bbd7041a Install boot.help a little more skillfully; now it works without a src
dist installed. :)
1997-09-03 11:19:56 +00:00
jkh
1e5eb79b17 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
charnier
92653f0787 Use err(3). Document -n flag from OpenBSD.
Obtained from: OpenBSD.
1997-09-03 06:32:31 +00:00
brian
a5b9ae2959 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
42c1dbe984 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
jkh
df384126bc Eliminate an annoying message. 1997-09-02 08:48:47 +00:00
charnier
3f2fff80f6 Use err(3). Silent -Wall. 1997-09-02 06:37:48 +00:00
charnier
e155880d06 Use err(3). Typo in man page. 1997-09-02 06:36:39 +00:00
charnier
e462c7e2d2 Add usage(), use err(3), remove `progname'. 1997-09-02 06:35:27 +00:00
davidn
00e1cd92d7 Unquote default group in pw.conf.
PR: 4365
Submitted by: "Andrew L. Moore" <alm@mclink.com>
1997-09-01 09:33:08 +00:00
charnier
1d1202127b Cosmetic changes. 1997-09-01 06:14:17 +00:00
charnier
2f436049b3 Use err(3). 1997-09-01 06:12:37 +00:00
charnier
347508a519 Style in rcsid, sort #include. 1997-09-01 06:11:40 +00:00
brian
c9a9461a21 Cosmetic: Make LogPrintf() calls consistent. 1997-08-31 22:59:49 +00:00
brian
56d1dd4b53 Make ppp owner root.ppp, mode 4550
Suggested by: guido
Condoned by: eivind
1997-08-31 20:18:03 +00:00
brian
4ac4d60bc7 Remove use of login_progok()
Suggested by: guido
1997-08-31 20:07:03 +00:00
eivind
80ebcd3b3f Fix my e-mail address. Old work addres is no good. 1997-08-31 16:38:33 +00:00
peter
487373ebf8 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
699c94cfae Update to include some of the newer vnode flags and remove some stale ones. 1997-08-30 20:18:49 +00:00
jmg
416e9a71f9 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
jmg
282e436f4f fix misspelling
Submitted-by: Josh Gilliam

Closes PR:4424
1997-08-30 11:05:34 +00:00
jmg
a5a475a202 fix misspelling
Submitted-by: Josh Gilliam

Closes PR:4423
1997-08-30 11:04:03 +00:00
kato
09489fa1b7 Added hw.machine_arch. 1997-08-30 02:28:00 +00:00
guido
175058b2d1 Plug info agthering attack as pointed out on Bugtraq recently.
Obtained from: OpenBSD
1997-08-29 19:22:28 +00:00
imp
b52523a54a 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
05f54f9377 Use login_progok(). 1997-08-27 20:11:16 +00:00
brian
7b68941df9 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
wosch
ab42389908 Stop the growing list of shells if /etc/adduser.conf
was updated.
1997-08-26 22:47:51 +00:00
bde
f100f14114 -I/sys -> ${.CURDIR}/../../sys. This should finish replacing /sys by
a relative path.
1997-08-26 14:13:50 +00:00
fsmp
466450db24 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
60c2d3cd19 Lose a couple of extraneous backslashes. 1997-08-25 01:52:11 +00:00
brian
1a67d25725 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
e309caa011 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
8a12554e3f 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
c6012f5875 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
6180152ea7 .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
2795165c69 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
92b95fa771 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
83ccdf4bac Set ForwardPath as presently inuse on hub 1997-08-22 16:50:49 +00:00
peter
005f99ca43 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
d5ebc860a7 Turn on client callback support (CBCP), it seems to be complete. 1997-08-22 15:50:09 +00:00
peter
61139236be merge from vendor branch 1997-08-22 15:39:04 +00:00
peter
84c6614d51 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
1ba1e07209 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
jlemon
953ff8643c 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
c894cfa736 Update version number to 1.02 so that I can tell what
people are running
1997-08-21 17:20:00 +00:00
brian
3645067038 Update doc to use MYADDR in ppp.conf. 1997-08-21 17:16:21 +00:00
brian
225778b10c Allow the use of HISADDR & MYADDR in ppp.conf. 1997-08-21 17:07:30 +00:00
brian
263a0e79cc 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
4d5bf5e750 Correct online usage message for "set ? stopped" 1997-08-21 16:18:07 +00:00
brian
ee30a80360 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
jlemon
d22d20bf72 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
070f42a366 *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
pst
481ffda850 Change local_cron to local_periodic.
Submitted by:	bde
1997-08-19 16:49:35 +00:00
peter
7e4d043aff 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
7c975788dd Initial revision 1997-08-19 14:29:39 +00:00
danny
4a385bedd7 Spelling police. 1997-08-19 11:27:00 +00:00
danny
f39fffdd46 Typo fixes. 1997-08-19 11:18:34 +00:00
brian
f4cc1c3403 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
jkh
065b1532d9 Fix fstab sequence number bug.
Add a few more strategic screen clears.
Fix registration form bug.
1997-08-18 21:47:34 +00:00
jkh
ac3f0c9820 2nd round doc cleanup. 1997-08-18 21:10:26 +00:00
jlemon
667917cb16 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
0aabeac276 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
a88afd3bf2 Fix possible buffer overrun while "expect"ing
something that's "nearly" what it wants.
1997-08-17 22:47:07 +00:00
brian
bea84654b4 Typo police 1997-08-17 22:45:25 +00:00
brian
48abae6115 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
6f340c20e5 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
jkh
623e3cede9 Sync with rc.conf change for weak_mountd_authentication 1997-08-17 10:08:25 +00:00
pst
fa45a51529 Use /etc/periodic 1997-08-16 17:08:35 +00:00
peter
df2d634ff5 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
phk
c185590853 typo fix. 1997-08-14 10:36:31 +00:00
phk
41f0be497a 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
ache
9d8aeece34 Fix mdoc directives 1997-08-13 16:27:59 +00:00
jkh
e6cd74c649 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
pst
30f274935d Back out the fancy directory sorting, it's more pain that its worth,
and it's there in the CVS repository in case someone things that this
idea is superkeen.
1997-08-13 06:23:54 +00:00
pst
717eb2339d Incorporate some ideas that came up during discussion with msmith. 1997-08-13 06:02:18 +00:00
pst
2d758a4528 Enable periodic 1997-08-13 00:58:49 +00:00
pst
d2c6786030 This commit was generated by cvs2svn to compensate for changes in r28112,
which included commits to RCS files with non-trunk default branches.
1997-08-12 17:48:49 +00:00
pst
3c7e85f93c Initial import of periodic executable control program. 1997-08-12 17:48:49 +00:00
brian
4777af062a Use libalias.so.2.3. 1997-08-11 22:07:57 +00:00
jkh
3c74d22281 Add a SEE ALSO for install.cfg sample script. 1997-08-11 13:20:38 +00:00
jkh
a6a2ca12c2 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
2be4b0d434 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
69210a7693 - Buffer space problem found by Sergio Lenzi <lenzi@bsi.com.br>
fixed. Natd now waits with select(2) for buffer space
  to become available if write fails.
- Packet aliasing library upgraded to 2.2.

Submitted by:	Ari Suutari <suutari@iki.fi>
1997-08-10 21:55:52 +00:00
wpaul
1dfa4285cf Don't initialize structures from other variables; gcc -ansi -pedantic
doesn't allow it. Use proper constants instead.
1997-08-10 20:37:48 +00:00
rgrimes
a379f75853 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
17f776e550 Merge sendmail-8.8.7 changes from vendor branch 1997-08-04 05:07:46 +00:00
peter
5a27937fcd Merge sendmail 8.8.7 changes from vendor branch 1997-08-04 05:06:42 +00:00
peter
8c3e83c7fe Import sendmail-8.8.7 onto vendor branch.
Obtained from: ftp.sendmail.org
1997-08-04 05:00:07 +00:00
peter
8f01114fd6 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
60c55d628f Use libalias.so.2.2 1997-08-03 20:21:22 +00:00
peter
25c0ad464a Zap antique #ifndef NEWVM code. This should be redone to use libkvm
someday.
1997-08-03 09:53:04 +00:00
bde
d73b5f1efb config.new/config.8 seems to be new in Lite2. Remove it like the rest of
config.new.
1997-08-03 06:40:01 +00:00
bde
51d15a5e63 README is for Lite2. We don't want it. 1997-08-03 06:38:27 +00:00
bde
80a2be0ede This commit was generated by cvs2svn to compensate for changes in r27850,
which included commits to RCS files with non-trunk default branches.
1997-08-02 19:36:03 +00:00
bde
be8ea41ee0 Import Lite2's src/usr.sbin, except for timed. All changed files
except one unimportant one have already left the vendor branch.
1997-08-02 19:36:03 +00:00
davidn
62d9b4dbb4 Fix -p switch. 1997-08-01 15:06:21 +00:00
jkh
adbeb9fc1c Back out the changes to set the resolver timeout. All they seem to do
is _break_ dns lookups entirely, and since reading the relevant docs and
source code does not enlighten for now, I'll remove this until more
basic research has been done into controlling the resolver's timeout
values.
1997-08-01 04:41:38 +00:00
msmith
2ca11f548b 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
e54335d741 Remove extraneous prototypes. 1997-08-01 02:02:28 +00:00
pst
8cf1034c39 Nologin is also a valid 'invalid' shell 1997-07-31 15:25:35 +00:00
jkh
8a53f61ef0 Fiddle with DNS options so that queries are also controlled by
the MEDIA_TIMEOUT variable.  Just -current for now on this one as
I'm still wanting to play with this a bit and see what the ramifications
of doing this are.
Requested by:	pst
1997-07-31 11:28:58 +00:00
jkh
0c6d177de6 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
f15b8d152a Set up the alias address before executing
the contents of ppp.linkup.
1997-07-29 22:37:04 +00:00
wpaul
e0bb173182 Modify rpc.yppasswdd to use the new AF_LOCAL transport in the RPC library
instead of its own kludged up version. This makes the special 'superuser-only'
update procedure work just like a real RPC service.
1997-07-29 15:43:21 +00:00
imp
2f9d4f2411 Two minor, pedantic fixes from bde for my last pedantic fixes, plus
the following from recent OpenBSD changes.  These changes (and all
I've made) should be merged back into 2.2 when they are vetted in
-current.

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

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

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

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

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

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

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

Obtained from: OpenBSD
1997-07-29 13:24:01 +00:00
imp
b1debf973d 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
62296c6450 Allow hosts specified by IP number (avoiding
a DNS lookup)
Update doc including the [host:]port syntax.
1997-07-28 22:17:48 +00:00
se
cea42fceea Make compile with rev. 1.101 of ncr.c, which added support for
loading of the SCIPTS microcode into the NCR on-chip RAM.
1997-07-28 21:33:45 +00:00
wpaul
b0b11b66e9 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
4af16ddc99 Fix file descriptor leaks. 1997-07-28 01:02:27 +00:00
brian
789c3c7d29 Count the "proto" arg after a single address,
Check correctly for "deny" packets.
Submitted by:	Dave Bodenstab <imdave@mcs.net>
1997-07-27 23:26:23 +00:00
wosch
985e44c31d Add a simple example section. 1997-07-27 23:10:33 +00:00
wpaul
f62fd8fa9d Fix a bug in the async DNS resolver that can crash ypserv. yp_prune_dnsq()
is not sane: if the TTL on a pending but unanswered query hits 0 and the
circular queue entry is removed and free()d, the for() loop may still try
to use the entry pointer (which now points at no longer valid memory).
usually, deleting only the last entry off the end of the queue worked, but
if more than one was deleted, the server would crash. I changed things a
bit so this shouldn't happen anymore.

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

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

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

Crash first reported by: Ricky Chan <ricky@come.net.uk>
Bug finally located with: Electric Fence 2.0.5
1997-07-21 17:39:39 +00:00
imp
dd1f7b6438 Add code to make sure that we don't overflow the buffer that we copy
the hostname into.  In theory the bind library should do this, but
in practice the limites between system defines and bind defines make
an attack using this vector possible.  These patches have been in
use on my systems for three months now, so I am fairly confident about
them.  I plan on commiting this to 2.2 and 2.1 in the near future,
as well as many other patches of this nature.
1997-07-18 18:52:53 +00:00
imp
78429cea51 Fix a problem where remote files could be removed by exploiting race
conditions similar to those reported in CERT's CA-91:10a advisory.
Obtained from: Hiroshi NAKANO <nakano@rins.ryukoku.ac.jp> by way of CERT.
1997-07-18 18:33:15 +00:00
wosch
3cd604941d cp -r' -> cp -R'
Option -r is obsolete and buggy.
1997-07-18 12:05:43 +00:00
davidn
9ed136eecd getuid() -> geteuid(). 1997-07-17 08:37:47 +00:00
jkh
809b8a15fd Repair missing quote. 1997-07-16 15:22:18 +00:00
jkh
932873a995 ln /compat to /usr/compat on initial installation; this will
prevent the later addition of compat libs from overflowing /
1997-07-16 11:45:48 +00:00
phk
31e6d3aa83 Increase size of tmp hostname buffer.
PR:		3889
Reviewed by:	phk
Submitted by:	Yujiro MIYATA <miyata@bioele.nuee.nagoya-u.ac.jp>
1997-07-16 11:22:57 +00:00
dfr
4acc83b445 Merge WebNFS support from NetBSD.
Obtained from:	NetBSD
1997-07-16 09:27:53 +00:00
jkh
c8004d7830 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
7df57a5f44 Previous commit to remove -I/sys broke 'make world', miscfs/union/*.h is
not (yet?) installed in /usr/include.
1997-07-15 07:03:00 +00:00
wpaul
f99d6c64a8 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
069c57b5d7 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
e3faa34d53 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
486333fcfd kill the undead 1997-07-13 14:26:00 +00:00
guido
9b98d67c6f Remove -I/sys 1997-07-13 11:51:42 +00:00
guido
9bdf968dee Remove -I/sys and add -I${.CURDIR}/../../sys 1997-07-13 11:51:28 +00:00
brian
253d097eb2 Support "host:port" as first arg. 1997-07-12 19:26:49 +00:00
brian
aa8643ed6c Allow service names in "set server" 1997-07-12 19:22:34 +00:00
dima
8efa570208 Fixed buffer overflow.
Reviewed by:	Warner
1997-07-08 21:03:16 +00:00
jhay
18fa8ff2b4 Major IPXrouted rework.
In rt_change() remember to update the interface pointer otherwise we will
send the RIP packets to the wrong interface(s) in future.

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

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

Immediately broadscast RIP and SAP changes.

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

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

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

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

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

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

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

Note that just using the preserve option without proper pkg_deps
is also foolish since packages being deleted in the incorrect order with
preserve on can generate some odd results.
1997-07-01 06:13:51 +00:00
jkh
f357055fa5 Allow distSetByName() to process all the relevant entries.
Submitted by: msmith
1997-07-01 03:50:58 +00:00
bde
690047b9cb Don't depend on <machine/cpufunc.h> including <sys/types.h>. In fact,
don't include this kernel-only header at all, since we don't need it.
1997-07-01 00:33:42 +00:00
ache
375b662530 Add LC_TIME=C to date 1997-06-30 10:59:25 +00:00
jkh
3ba08b5d31 YAMF22 - deletes and preserve option fixes. 1997-06-30 03:15:40 +00:00
brian
ef60b19dca Allow specification of a umask for local socket
creation in "set server" command.
1997-06-30 03:03:38 +00:00
jkh
0a91728bd3 Whoops, only attempt to back up the file if it exists. :-} 1997-06-30 02:57:40 +00:00
brian
ac73344ac9 Fix HUP handling while dialing.
Pointed out by:	ache
1997-06-29 13:54:31 +00:00
jkh
4bb6ae9575 Add support for @option preserve - moves existing files out of the way
before replacing them (using pkgname to make this hopefully unique).
Delete also moves them back, if they exist, resulting in a package
which can be "backed out" with reasonable safety.
1997-06-29 10:41:49 +00:00
pst
1b991716a4 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
512e26e794 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
4cd0616eed Allow command line control of ppp through both
TCP and AF_LOCAL sockets.
1997-06-28 01:04:54 +00:00
peter
14edf92299 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
ffc2d3d703 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
30e5ecc749 Import sendmail-8.8.6
Obtained from: ftp.sendmail.org
1997-06-27 14:53:01 +00:00
peter
30e296b761 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
fef65421d3 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
082cf8524f 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
3f5321d2b9 Fix ~? output in "term" mode.
Spotted by: Harry Starr <starr@gccs.com.au>
1997-06-24 21:25:06 +00:00
jhay
0814c237ff Display tickadj in struct clockinfo. 1997-06-24 18:23:32 +00:00
brian
dc42cd84a9 Suggest using /etc/services entry rather than a
number in the "ipfw add divert" example.
1997-06-24 10:49:44 +00:00
stark
0087bd0ef2 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
a3c9607200 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
d1c718d9c3 Typo police.
Submitted by: Chuck Robey <chuckr@glue.umd.edu>
1997-06-23 23:08:23 +00:00
tegge
8131710f9d Delay free of mf->mf_mount in uninit_mntfs until it is no longer used. 1997-06-23 22:03:12 +00:00
fsmp
cd2a620cb0 Removed SMP_PRIVPAGES from options list.
This functionality is now automatic.
1997-06-23 20:23:44 +00:00
brian
78d67a98b9 Fix "set parity"
PR:		3881
Actual problem found by:	shocking@mailbox.uq.edu.au
1997-06-23 19:18:13 +00:00
joerg
9289d9c498 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
f8049f60d8 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
7a5541cde7 Show the real revision date and not the date that this
manpage is being viewed.
1997-06-23 04:03:49 +00:00
jkh
f4c30626de sysconfig -> rc.conf 1997-06-22 14:40:27 +00:00
jkh
e1b0f042d8 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
f47045b4ae Hook natd 1997-06-22 04:23:10 +00:00
brian
deca3c863d What twit commited this ? Duh ! 1997-06-22 04:20:43 +00:00
brian
4fa0e5a551 This commit was generated by cvs2svn to compensate for changes in r26781,
which included commits to RCS files with non-trunk default branches.
1997-06-22 04:19:08 +00:00
brian
59a701d2eb 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
jkh
048f7b0819 Change the way that X configuration method is selected. 1997-06-21 15:45:15 +00:00
joerg
90a0066a3f Fix a typo, so the -a option will by documented in the synopsis. 1997-06-21 09:17:45 +00:00
brian
c74ce8e38c Fix "delete all".
PR:		3913
1997-06-20 23:43:35 +00:00
jkh
50bef408d8 Add a couple of strategic screen clears. 1997-06-20 07:04:16 +00:00
jkh
64538a3bf5 Fix multiple documentation bogons.
PR:		3798
Submitted by:	Jan Kuriyama <kuriyama@opt.phys.waseda.ac.jp>
1997-06-19 15:18:34 +00:00
jkh
3c30be4b40 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
jkh
11e41c0eef Check named_enable rather than just named_flags.
PR:		3893 (sort of)
1997-06-18 01:55:19 +00:00
jdp
a3a4d0ec6d Correct the section number in the cross-reference for the publickey
file.
1997-06-17 20:24:33 +00:00
wpaul
8a67f91ff9 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
374f602b4e Cosmetic: Fix help syntax. 1997-06-17 02:04:51 +00:00
brian
75122c3d71 Handle redial tries correctly under -ddial 1997-06-17 01:46:05 +00:00
brian
121bd4b70f Put TCP/IP logs back on one line. 1997-06-16 21:20:00 +00:00
brian
73d09cd540 Set netfd to STDOUT_FILENO rather than STDIN_FILENO. 1997-06-16 19:59:41 +00:00
brian
5d122ca2ef Correct filter docs.
PR:		3464
Submitted by:	Stephen J. Roznowski <sjr1@flash.net>
1997-06-16 13:52:10 +00:00
brian
95a0b5dc63 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
ache
66946f9305 Remove srandomdev fallback code 1997-06-14 00:27:03 +00:00
jkh
d15c79aba2 YAMF22 1997-06-13 18:02:34 +00:00
jkh
8f235bb8bf YAMF22 1997-06-13 17:55:32 +00:00
jkh
ba527a824b YAMF22 1997-06-13 14:21:22 +00:00
jkh
d86473c883 Incorporate an ancient typo fix that never made it over from 2.2. 1997-06-13 14:06:10 +00:00
jkh
b6e8cc8fa1 reverse polarity on bit-flip from 2.2 1997-06-13 11:00:13 +00:00
jkh
d75a722d2e YAMF22 1997-06-13 09:34:10 +00:00
jkh
73c96a1380 YAMF22 1997-06-13 07:11:57 +00:00
brian
328f056077 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
1fd5f260cd 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
e6dedeb7e4 Fix "show ?" alignment.
PR:		3830
Submitted by:	Josh Gilliam <josh@quick.net>
1997-06-13 00:09:54 +00:00
brian
747720e64d Document ppp over tcp (how to tunnel) 1997-06-13 00:04:58 +00:00
jkh
1050d2fdc1 YAMF22 1997-06-12 09:01:38 +00:00
jkh
f0f2f5b31c YAMF22 1997-06-12 08:46:51 +00:00
jkh
f6bcf2cd23 YAMF22 1997-06-12 07:35:40 +00:00
jkh
a0c781a8d7 YAMF22 - Bugs Of Evil in variable handling and rc.conf editing.
PR#: 3218 [partial]
1997-06-11 08:41:10 +00:00
brian
5d18065463 Sort out ppp over tcp:
o Allow "set var" with no args to blank var (don't req "").
  o Zero VarTerm ASAP if not in interactive mode.
  o Never print anything to stdout in -direct mode.
  o Count redial when failing to open modem.
  o Increase device size to 40 characters (for host:port).
  o Remove missed "if (fd == 0) fd = 1;".
  o Don't give up on incoming non-terminal connections.
1997-06-11 03:57:51 +00:00
brian
84d5b39da1 Make the man page a little more detailed.
Update the version number to 1.00.
Increase the predictor-1 buffer by 2 bytes.
1997-06-09 23:38:38 +00:00
jkh
48381aa031 Add a sample script file so people have some idea of what to pass to Load. 1997-06-09 05:10:08 +00:00
brian
94d661ac8c Overhaul ppp:
o Use syslog
  o Remove references to stdout/stderr (incl perror())
  o Introduce VarTerm - the interactive terminal or zero
  o Allow "set timeout" to affect current session
  o Change "set debug" to "set log"
  o Allow "set log [+|-]flag"
  o Make MSEXT and PASSWDAUTH stuff the default
  o Move all #ifdef DEBUG stuff into the code - this
    shouldn't be too much overhead.  It's now controlled
    with "set log +debug"
  o Add "set log command, debug, tun, warn, error, alert"
  o Remove cdefs.h, and assume an ansi compiler.
  o Improve all diagnostic output
  o Don't trap SIGSEGV
  o SIGHUP now terminates again (log files are controlled
    by syslog)
  o Call CloseModem() when changing devices
  o Fix parsing of third arg of "delete"

I think this fixes the "magic is same" problems that some
people have been experiencing.
The man page is being rewritten.  It'll follow soon.
1997-06-09 03:27:43 +00:00
jkh
328d28c650 1. Make it possible to set up all the TCP/IP values from a script.
2. Update to XFree86 3.3
1997-06-09 01:19:44 +00:00
wpaul
0f5feb1689 Clobber unneeded prototypes; in particular, the redeclaration of malloc()
will break compilation if DESTDIR is not set. The update.c module is
actually from the Sun RPC distribution so this is really their bogon, but
I should have noticed it when I integrated the code into rpc.ypupdated.

Sung to me by: Satoshi
1997-06-06 15:47:57 +00:00
jkh
950dcc5c24 Add support for srcdir overrides. 1997-06-06 12:19:11 +00:00
jkh
9160ca00b5 Resurrect / implement some of the more esoteric scripting features,
such as partitioning a disk or overriding an interactive prompt.
1997-06-05 09:48:03 +00:00
brian
9256ed6239 Remove mis-leading version info. 1997-06-03 00:35:03 +00:00
brian
e28b617f4a Back out last change (which in fact breaks rfc1661)
and modify the behaviour so that a timer is started
and the restart counter is zeroed (as per the State
Machine Diagram).

Pointed-out-by:	joerg
1997-06-02 00:04:40 +00:00
brian
5992baf27d Go directly to ST_STOPPED when a TerminateReq is
received and after the TerminateAck is sent (as
per rfc1661) rather than to ST_STOPPING.  Going
to ST_STOPPING will leave us in a state where
we're waiting for the other side to do something -
not a good idea, especially as the client side sends
a TerminateReq then exits on idle timeout.
1997-06-01 14:37:19 +00:00
brian
a58162b8e7 Reduce MAX_M[RT]U back to 2048. Even on a null-modem
ppp link, we gain nothing with a larger mtu.

Suggested by:	joerg

Fix pred1 buffer size (must be == MAX_MTU)
1997-06-01 11:35:04 +00:00
brian
e39002afc2 Remove initial startup printf's in -direct mode.
Make "same magic" error send a NAK (as per rfc).
1997-06-01 03:43:26 +00:00
brian
0e77953308 Implement "set mtu" command to allow the client to
reduce the interface mtu.
Allow max mru spec of 16k.
Add "show m[rt]u" ability.
1997-06-01 01:13:04 +00:00
brian
ea3d6b0743 Remove "set mtu ..." ability. Currently, this is an
"alias" for "set mru ...", but there's no such thing
as setting your mtu in the ppp protocol (rfc1661).
1997-05-31 16:37:19 +00:00
jkh
69e887211a Fix typos (of the printed output kind). 1997-05-30 01:03:09 +00:00
wpaul
961195f2c1 Another (harmless, luckily) mind-o: somehow I typed 'rpc.ypupdated.'
instead of 'rpc.ypupdated' when I added rpc.ypupdated to the SUBDIRS
list.

Carved into my forehead with an rusty railroad spike by: Mark Murray
1997-05-29 14:21:39 +00:00
wpaul
d1cb90d0aa Mind-o: MAN8= yes --> NOMAN= yes
Etched onto my brain with acid by: Mark Murray.
1997-05-29 13:59:22 +00:00
brian
ba44f8b683 Correct the return of DialModem()
Suggested by:	kfurge <kfurge@worldnet.att.net>
1997-05-29 02:29:13 +00:00
wpaul
1c30dd40f2 Activate new Secure RPC programs. 1997-05-28 16:05:18 +00:00
wpaul
93c9d6f0d2 This commit was generated by cvs2svn to compensate for changes in r26236,
which included commits to RCS files with non-trunk default branches.
1997-05-28 15:47:10 +00:00
wpaul
7467e74fd1 This commit was generated by cvs2svn to compensate for changes in r26234,
which included commits to RCS files with non-trunk default branches.
1997-05-28 15:44:22 +00:00
jkh
5f3af8b16d Always write out rc.conf, regardless of status.
PR:		3698
1997-05-27 18:56:03 +00:00
jkh
7e0ec9181d Correct SNAP server paths.
Bring in CDE fixes.
1997-05-27 16:41:52 +00:00
jkh
91a45b8562 sysconfig -> rc.conf
Submitted by:	Igor Vinokurov <igor@cs.ibank.ru>
1997-05-27 07:19:57 +00:00
fenner
8eb270bac5 Update Makefile to build tcpdump-3.3 .
PR:		3371
Submitted by:	Chris Timmons <skynyrd@opus.cts.cwu.edu>
1997-05-27 02:21:28 +00:00
jkh
dd5cca12ed Lame typo fix here too. 1997-05-26 05:33:16 +00:00
jkh
d6b1713eef YAMF22 1997-05-26 04:57:56 +00:00
brian
12b254e316 De-couple ppp from libalias. If libalias isn't there, the
alias commands simply won't work.  Only root may specify the
location of the alias lib (otherwise, it's hard-coded).

Make logprintf silently fail if LogOpen hasn't been called.

Suggested by:	eivind
1997-05-26 00:44:10 +00:00
brian
8089164d6f Include <alias.h>, not "alias.h" 1997-05-25 19:49:44 +00:00
wpaul
a51dec7bee This commit adds support to ypbind(8) for binding to non-local servers.
The standard SunOS ypbind(8) (and, until now, the FreeBSD ypbind)
only selects servers based on whether or not they respond to clnt_broadcast().
Ypbind(8) broadcasts to the YPPROC_DOMAIN_NONACK procedure and waits
for answers; whichever server answers first is the one ypbind uses
for the local client binding.

This mechanism fails when binding across subnets is desired. In order
for a client on one subnet to bind to a server on another subnet, the
gateway(s) between the client and server must be configured to forward
broadcasts. If this is not possible, then a slave server must be
installed on the remote subnet. If this is also not possible, you
have to force the client to bind to the remote server with ypset(8).

Unfortunately, this last option is less than ideal. If the remote
server becomes unavailable, ypbind(8) will lose its binding and
revert to its broadcast-based search behavior. Even if there are
other servers available, or even if the original server comes back
up, ypbind(8) will not be able to create a new binding since all
the servers are on remote subnets where its broadcasts won't be heard.
If the administrator isn't around to run ypset(8) again, the system
is hosed.

In some Linux NIS implementations, there exists a yp.conf file where
you can explicitly specify a server address and avoid the use of
ypbind altogether. This is not desireable since it removes the
possibility of binding to an alternate server in the event that the
one specified in yp.conf crashes.

Some people have mentioned to me how they though the 'restricted mode'
operation (using the -S flag) could be used as a solution for this
problem since it allows one to specify a list of servers. In fact,
this is not the case: the -S flag just tells ypbind(8) that when it
listens for replies to its broadcasts, it should only honor them if
the replying hosts appear in the specified restricted list.

This behavior has now been changed. If you use the -m flag in conjunction
with the -S flag, ypbind(8) will use a 'many-cast' instead of a broadcast
for choosing a server. In many-cast mode, ypbind(8) will transmit directly
to the YPPROC_DOMAIN_NONACK procedure of all the servers specified in
the restricted mode list and then wait for a reply. As with the broadcast
method, whichever server from the list answers first is used for the
local binding. All other behavior is the same: ypbind(8) continues
to ping its bound server every 60 seconds to insure it's still alive
and will many-cast again if the server fails to respond. The code used
to achieve this is in yp_ping.c; it includes a couple of modified RPC
library routines.

Note that it is not possible to use this mechanism without using
the restricted list since we need to know the addresses of the available
NIS servers ahead of time in order to transmit to them.

Most-recently-requested by: Tom Samplonius
1997-05-25 19:49:33 +00:00
max
9efc222091 Typo: .SH --> .Sh.
PR:		3683
Submitted by:	Kazuo Horikawa <k-horik@yk.rim.or.jp>
1997-05-25 19:11:26 +00:00
ache
d192c5521c When no last file specified for % command user barf(error diagnostic)
instead of segmentation fault
1997-05-24 21:45:55 +00:00
brian
81067cb46e Fix the reconnect option, and add an explanation to vars.h 1997-05-24 17:32:42 +00:00
davidn
504c6b3f01 Fixes skeleton directory test-it-is-a-directory logic.
PR:		3666
Reviewed by:
Submitted by:	iaint@css.tuu.utas.edu.au
Obtained from:
1997-05-24 10:41:49 +00:00
jkh
f91327ae98 Merge from 2.2 - XiG support updates. 1997-05-23 18:54:29 +00:00
asami
c1f2d43cc1 Typo fix: ${.DESTDIR} -> ${DESTDIR}.
Reviewed by:	bde
1997-05-23 08:43:27 +00:00
asami
e1511e1aa2 Add ${DESTDIR} to absolute pathnames of required sources.
Reviewed by:	bde
1997-05-23 07:45:42 +00:00
asami
e408ddb992 Typo (${.DESTDIR} -> ${DESTDIR}).
Reviewed by:	bde
1997-05-23 07:45:06 +00:00
brian
a62138d5f0 Finish updating for the latest alias code.
Submitted by:	Charles Mott <cmott@srv.net>
1997-05-23 05:34:15 +00:00
brian
33deb302fe Add SO_REUSEADDR socket opt in case the last telnet
connection is in a time_wait.

Submitted by:	Brian Campbell <brianc@pobox.com>
1997-05-23 05:22:48 +00:00
brian
6d0cdc4cfb Use the latest alias engine - now in libalias.
Submitted by:	Charles Mott <cmott@srv.net>
1997-05-23 04:54:03 +00:00
msmith
d2dfa44599 Make it build under 3.x
Submitted by:	fsmp
1997-05-23 04:04:17 +00:00
fsmp
cc349843cc Made 'options NINTR' greater of 24 and calculated value.
This coincides with changing kernel default to 64.
1997-05-22 22:55:05 +00:00
jkh
f7e2203cd3 Adjust config variables to more closely match rc.conf 1997-05-22 21:26:11 +00:00
msmith
fe603e69b3 Add wlconfig. 1997-05-22 08:59:41 +00:00
msmith
c72d5c6677 This commit was generated by cvs2svn to compensate for changes in r26005,
which included commits to RCS files with non-trunk default branches.
1997-05-22 08:58:18 +00:00
msmith
58afeb6ddf This is a program for configuring the Parameter Storage Area on ISA
Wavelan cards via the 'wl' driver.  It can be used to set the IRQ, and
discover all manner of odd things about the device.
1997-05-22 08:58:18 +00:00
jkh
4a5ba3daf5 Be more bullish about saving configuration information. 1997-05-22 04:04:30 +00:00
jkh
5ce4b1077d Actually, rethink last commit and simply remove the apache configuration
entirely, as promised earlier (it's outdated now and doesn't really belong
in sysinstall).
1997-05-22 00:17:11 +00:00
jkh
83c2047251 Update version of apache. 1997-05-22 00:13:58 +00:00
jmz
e88d62e737 Remove the select command. The WORMIOCQUIRKSELECT ioctl call has been removed
from the driver.
1997-05-19 17:37:30 +00:00
eivind
7a1932b397 it's'' -> its'' where appropriate and typo fixes in time2posix.3.
Closes PR docs/3612.

Submitted by:	Josh Gilliam <soil@quick.net>
1997-05-19 16:33:27 +00:00
jkh
94f9f7a669 sysconfig -> rc.conf
PR:		3461
Submitted by:	"Donald J. Maddox" <root@cola97.scsn.net>
1997-05-19 07:30:45 +00:00
brian
d13ad90ef4 Output exit status description of child in background mode. 1997-05-19 03:02:36 +00:00
brian
ee01b28050 Mega update to sort out bad implementations
of reconnect & -background.

o   Fix reconnect anomolies.
o   Make reconnect apply to failed LQR hangups (& mention in man page).
o   Make reconnect effective in -background mode.
o   Listen on socket in -background mode.
o   Try all phone numbers in -background mode.
o   Insist on system arg in -background mode.
o   Make a control-connection close command exit in -background mode.
o   Output status message to stdout on exit of parent in -background mode.
o   Don't notify parent of success too soon.
o   Describe termination EX_* code.
o   Miscelaneous diagnostic corrections.
o   Remove redundant connect_time from modem.c.
o   Don't repeatedly DownConnection().
1997-05-19 02:00:16 +00:00
brian
3d81388ebf Make openmode active by default (for both client/server).
Requested by:	The masses.
1997-05-17 16:08:48 +00:00
peter
23956b45ea Don't override BINOWN and BINGRP by setting them to "bin". Use the
system defaults (BINOWN is often root as a security precaution).
1997-05-17 11:53:03 +00:00
brian
3a163bace7 Check for duplicate spool dirs.
Submitted by:	eivind
1997-05-17 03:04:43 +00:00
ache
dcc0838048 Change FTS_PHYSICAL (not follow symlinks but return them)
to FTS_LOGICAL (follow symlinks and return their targets)

Because
1) In the real system there is a lot of symlinks nowdays over
/var, /spool, etc. Mtree can't do anything for them, i.e. change
permissions/owner. I.e. if you have /var/mail -> /somewhere
it will never be changed to group "mail" 775 like -current does now,
symlink totally confuses mtree.

2) Mtree can't deal with symlinks properly in any case (they are created
separately in other places now), so we lost no functionality by making
them invisible for mtree.
1997-05-15 08:46:57 +00:00
jkh
650e1ee354 Add SNAP servers to list of FTP sites. 1997-05-14 07:12:47 +00:00
brian
82b9d3453b Build pid_filename without a double slash.
Make ``Dial attempt'' diagnostics consistent.

Reset lostCarrier when it has reached max.
Suggested by:	Kevin Street <street@iName.com>
1997-05-14 01:18:51 +00:00
brian
0a48c2a0e8 Don't attempt to ioctl(modem...) when modem is
closed.  Just DownConnection().
1997-05-14 01:14:32 +00:00
brian
dc36a1d5ad Don't output extraneous tab
Submitted by:	Garance A Drosehn <gad@eclipse.its.rpi.edu>
1997-05-13 20:52:31 +00:00
brian
e3f3db531c Don't drop into the troff args after parsing -#.
Submitted by:	 Garance A Drosehn <gad@eclipse.its.rpi.edu>
1997-05-13 20:46:45 +00:00
brian
7f1d30def4 Fix a bug (dereferencing zero) introduced by the last mods.
Submitted by:	David Nugent <davidn@labs.usn.blaze.net.au>
1997-05-13 20:34:01 +00:00
brian
f362842283 Correct the files section for tunX.pid and ttyXX.if 1997-05-13 09:31:05 +00:00
brian
a61579672e Correct sample file name. 1997-05-12 11:54:12 +00:00
brian
665a2c9ba9 Create ttyXX.if and tunX.pid irrespective of
whether we're -dedicated.

Required by:	David Nugent <davidn@labs.usn.blaze.net.au>
1997-05-11 10:23:16 +00:00
ache
1639d4d9ce Cosmetique 1997-05-11 00:44:37 +00:00
ache
6b0a735ac3 Print out reject masks on "show lcp" 1997-05-11 00:41:30 +00:00
ache
2f32718791 Use random() for GenerateMagic() 1997-05-11 00:16:00 +00:00
ache
36ab59d4ff Cosmetique fixes:
shorten help message to fit the screen
return to prompt from "show ipcp"
1997-05-10 23:46:29 +00:00
davidn
f766bd31c5 login_getclass() -> login_getpwclass(). 1997-05-10 19:02:03 +00:00
fsmp
d0fcfa02e6 Document APIC_IO as mandatory.
Document SMP_AUTOSTART as working.
1997-05-10 17:46:57 +00:00
pst
5681e6fd51 Fix null dereference if config variable not set. 1997-05-10 17:11:24 +00:00
brian
1a9ed5bd57 Refuse to negotiate HISADDR of 0.0.0.0 (NAK it)
Submitted by:	NAKAMURA Motonori <motonori@econ.kyoto-u.ac.jp>
1997-05-10 15:37:40 +00:00
brian
3804775c03 Ouch. This was dying to cause problems !
Luckily the side-effects were what was
intended.
1997-05-10 03:44:50 +00:00
brian
625e8802da Add a ttyXX.if file in /var/run that points to
the tunX.pid file.  Change the ppp.tunX.pid name
to tunX.pid

Requested by:	Daniel O Callaghan <danny@panda.hilink.com.au>
1997-05-10 03:39:57 +00:00
brian
82bac13560 Tidy up the code - bounds checking, return
value checking etc.

Submitted by:	eivind
1997-05-10 01:22:19 +00:00
brian
1da867bda7 Don't reconnect (due to reconnect setting) after
close command.
1997-05-09 23:34:56 +00:00
brian
6bf24e13fb Set setitimer() arg correctly. 1997-05-09 20:48:21 +00:00
jdp
fa7109d49f Null commit to force version bump. 1997-05-09 16:16:31 +00:00
jkh
42845eda1c Merge 1.33.2.12 from 2.2 1997-05-09 07:44:19 +00:00
joerg
f8b5f0d7e6 Kill a stale .pq line. 1997-05-08 15:31:39 +00:00
brian
049664f16a Allow mixed case commands.
Allow HISADDR, MYADDR, INTERFACE and ALL in mixed case.
1997-05-08 01:26:31 +00:00
brian
fe847bc135 Make the explanation of the -detach option clearer.
PR:		1674
Submitted by:	Slaven Rezic <eserte@cabulja.herceg.de>
1997-05-07 23:54:56 +00:00
brian
2441d7631d Reset lqrsendcnt.
PR:		2449
Submitted by:	mark thompson <thompson@tgsoft.com>
1997-05-07 23:40:31 +00:00
brian
2d9bc1f640 Only compress tcp packets. Calculate size of
logbuff rather than guessing at 2000.

PR:		2046
Submitted by:	torii@tcd.hitachi.co.jp
1997-05-07 23:30:50 +00:00
brian
c0df205f61 Allow up to 40 args in the chat script (was 20).
Ignore subsequent args rather than scribbling.

PR:		1952
Submitted by:	Mikael Hybsch <micke@free.dynas.se>
1997-05-07 23:01:25 +00:00
brian
213a2efd3a Allow a '-' flag as a placeholder so that path_to_pid_file
can be specified without the flags field.
Fix bogus "trail" left in parse routine where the code jumps
past the end of the line and wanders into oblivion.
1997-05-06 23:11:06 +00:00
brian
7394cdac99 Make ppp exit on loss of carrier in -background mode.
Submitted by:	Jim Carroll <jim@carroll.com>
1997-05-05 23:45:15 +00:00
ache
40924e377c Do not kill -HUP syslog if running in user mode (-r), it allows
private user logs rotation without error diagnostics
1997-05-05 15:00:15 +00:00
jkh
83e91844d7 DOH! Fix package-extractor looping problem by moving some code
to the *proper* part of the loop.
1997-05-05 08:38:12 +00:00
jkh
a66697afa3 Adapt routing configuration glue to rc.conf format. 1997-05-05 06:32:44 +00:00
pst
0d0068a444 Add in some more config file support -- add variables to shut up
sysinstall about the dangerously dedicated message, and other
variables to allow pre-configuring the distribution sets.

Still todo: add a variable to define an initial set of packages that
should be loaded.
Reviewed by:	jkh
1997-05-05 05:16:03 +00:00
ache
027d471e28 Log each ppp line to separate /var/log/ppp.tunX.log instead mixing of
all lines into single /var/log/ppp.log
1997-05-04 02:39:04 +00:00
ache
28bcd2026c 1) Add yet one optional field: pid file to send SIGHUP to if log rotated
(good thing for apache f.e.) This change is backward compatible with old
newsyslog.conf files.

2) Do not compress log if SIGHUP sending failed for some reason
(f.e. pid file deleted). Newcoming messages will be lost
otherwise.

3) Misc cleanup while I am here.
1997-05-04 01:53:53 +00:00
joerg
448c1dca85 Nobody ever seemed to be interested in reviewing these changes, and i
found that my syslogd is now running them for several months...

Add an option to syslogd to restrict the IP addresses that are allowed
to log to this syslogd.  It's too late to develop the inter-syslogd
communications protocol mentioned in the BUGS section, some 10 years
too late.  Thus, restricting the IP address range is about the most
effective change we can do if we want to allow incoming syslog
messages at all.

IMHO, we should encourage the system administrators to use this option,
and thus provide a knob in /etc/rc.* for it, defaulting to -a 127.0.0.1/32
(just as a hint about the usage).

Please state opinions about whether to merge this change into 2.2 or
not (i've got it running on RELENG_2_2 anyway).
1997-05-03 22:17:43 +00:00
max
6e362a4e39 Minor typo.
PR:		3473
Submitted by:	Josh Gilliam <soil@quick.net>
1997-05-02 22:00:05 +00:00
ache
cafbf0bee1 Change "no" answer to "default" for login class, because "no" class
can exists and "default" class is really equal to empty class.
1997-05-01 23:34:25 +00:00
ache
45a60a248c Allow "no" answer on login class prompt override non-empty
/etc/adduser.conf defaultclass with empty one
1997-05-01 23:23:06 +00:00
ache
2fc70f71f0 1. Deal with login classes now
2. Turn on send_message by default for security reasons (mailbox
must be pre-created)
1997-05-01 22:55:58 +00:00
fsmp
522ce8c7ae fixed minor typo, bumped to version 2.0.9 1997-04-30 23:54:55 +00:00
pst
d189b0dfd0 Back out msmith's recent commit which breaks using symbolic names for netmasks.
Instead, reverse the order of the testing, so if a symbolic name starts with
a digit, we'll see if we can make a network address out of it first.  If
that fails, then we'll call getnet...
1997-04-30 18:40:12 +00:00
jkh
bf4319fcda YAMF22 1997-04-29 09:14:24 +00:00
jmg
ab82273135 add an Id line, minor mdoc fix ups
add ftp to list of facilities in syslog.conf
Closes PR#3389
Submitted-by: Pius Fischer
1997-04-29 09:09:40 +00:00
dfr
a10f222e69 Fix so that amd can build with hesiod support.
Submitted by:	Kevin Van Maren <vanmaren@marker.cs.utah.edu>
1997-04-29 08:43:52 +00:00
dfr
b0e6e4b685 Fix makefiles so they work without having to 'make depend' 1997-04-29 08:42:34 +00:00
fsmp
09ef098655 added mptable to directory list of usr.sbin programs. 1997-04-29 03:09:01 +00:00
fsmp
a4d9955380 add a userland program for SMP support
mptable examines and displays the MP table of an SMP motherboard.
1997-04-29 03:06:35 +00:00
wpaul
7a79f7c5cf Back out unnecessary overly-paranoid paranoia test from here too; yp_access()
does the right thing already.
1997-04-28 14:22:31 +00:00
wpaul
c7507c1409 Back out one of my paranoia tests from the last commit here; yp_access()
already deals with it appropriately. (You know you've been working too
hard when you forget how your own code works.)
1997-04-28 14:18:38 +00:00
wollman
c63d12aeb3 Condition SO_PRIVSTATE twiddling on the definedness of SO_PRIVSTATE.
(This was done as a #ifdef to keep source compatibility between 2.2 and 3.0.)
1997-04-28 13:55:07 +00:00
jkh
b980a85e29 Adapt to rc.conf file format. 1997-04-28 10:31:14 +00:00
jkh
77efe62cb7 Back out mount change here (which is the only branch it should have
occupied in the first place :)
1997-04-28 09:35:59 +00:00
jkh
950e94d56a YAMF22 1997-04-28 06:15:49 +00:00
pst
1b9955fb24 Whoops -- code inspection showed I forgot to clean up getopt string 1997-04-26 00:03:21 +00:00
pst
0fba6c45e6 Secure mode (-s) incorrectly disabled both sending and receiving of syslog
packets over UDP.  Secure boxes should still be able to send packets.
1997-04-26 00:00:33 +00:00
msmith
2190adec41 Don't call getnetbyname() on a netmask. On a system with a slow net
connection, a large set of network exports could take many minutes to
time out, giving the appearance of a total hang during boot.
1997-04-23 11:03:10 +00:00
bde
3f969c2fa3 Removed inconsistent declaration of malloc(). `make world' with DESTDIR
set to something other than "/" now actually works.
1997-04-23 10:16:58 +00:00
dfr
a6bde6da85 Add a -2 flag to mountd to allow an admin to disable NFSv3 services.
This is handy for testing and possibly to work around busted v3 clients.
1997-04-22 10:37:27 +00:00
dfr
e52cdb3cdf Update the host filesystem so that it works with NFSv3 1997-04-22 10:24:29 +00:00
brian
ad4ab18793 Add a reconnect capability directing ppp to re-establish
the connection after an unexpected loss of carrier:

    set reconnect timer ntries

The man page warns against using this command when your
timeout value is slightly more than the other sides :{}

Suggested by: burton@bsampley.vip.best.com (Burton Sampley)
1997-04-21 01:02:02 +00:00
jkh
e75f3892ea Sync with 2.2 and clean up some tortured english that was added. 1997-04-20 16:46:36 +00:00
ache
2b13c9e076 Fix typo in previous commit 1997-04-19 11:31:38 +00:00
phk
0bbcc047cf Unceremoneously discard HDLC frames with less than two bytes in them.
XXX: real fix: this could should check the number of bytes in the packet
before accessing them.

Found by: phkmalloc
1997-04-19 09:25:58 +00:00
dfr
ff3a24508f Fix make depend. 1997-04-19 09:15:25 +00:00
dfr
150f99d8a9 Generate mount*.[ch] and nfs_prot*.[ch] from the .x files.
Delete bogus local versions of mount*.[ch] and nfs_prot*.[ch].

Use v3 protocol by default for NFS mounts.  If v3 is not supported, v2 is
used automatically.  Add a new mount options for NFS, 'nfsv2' to allow the
administrator to force the use of the older protocol.

Document the new mount options and fix a couple of markup problems.
1997-04-18 13:23:38 +00:00
danny
dbeae26f75 Add FILES section to manpage.
Create /var/run/ttyXn.if interface file and /var/run/slX.pid
PID file, following format of pppd(8).
1997-04-16 09:54:50 +00:00
danny
0f60b61dda Suggested by: David Nugent
Use /etc/ppp/ppp.deny instead of /etc/ppp/ppp.disabled
1997-04-16 02:07:10 +00:00
bde
9c6fb5ac3c Fixed type mismatch caused by bogus prototypes. rpcgen for some reason
doesn't generate any prototypes for the functions to be registered.
1997-04-15 16:18:57 +00:00
jmg
230b023a13 fix some typos, and some slight clean up...
Closes PR#3266
1997-04-15 07:41:10 +00:00
jmg
4c3d66cba8 fix a few typos..
Closed PR#3265
1997-04-15 07:15:47 +00:00
jmg
41e30c330c fix a couple typos...
Closer PR#3264
1997-04-15 07:06:15 +00:00
danny
bef64f7791 Reviewed by: Brian Somers <brian@freebsd.org>
pppd now creates /var/run/ttyXn.if file containing the interface name;
check that a 'login' user is not listed in /etc/ppp/ppp.disabled;
check that a 'login' user's shell is listed in /etc/ppp/ppp.shells;
make sure that passwordless 'login' logins are recorded in wtmp and
utmp.
1997-04-15 07:00:35 +00:00
brian
dfe24302ec Remove osreldate. I got the number wrong anyway :( 1997-04-15 00:03:36 +00:00
brian
aebb5d896e Make the next number redial ability configurable. The
"set redial pause [times]" command becomes
"set redial end-pause[.next-pause] [times]" and next-pause
defaults to 3 seconds.  This keeps things backwards
compatable.

Suggested by:	ache
1997-04-14 23:48:20 +00:00
brian
5b8c55b34e Allow forcing of local_ip:remote_ip in pap-secrets
and chap-secrets files.  This allows specific users
to have pre-allocated IP numbers while others get
assigned dynamically.

Submitted by: David Nugent <davidn@unique.usn.blaze.net.au>
1997-04-13 01:07:00 +00:00
brian
b2533fba6f Make -background option attempt each phone number at most
once.  Make -background ignore redial.  Output exit value
to syslog with "PPP Terminated" message.
1997-04-13 00:54:45 +00:00
brian
24892f8103 Only wait for the redial timeout when the last phone number in the
list has been dialed.  Alternate number dialing has no "pause".

Suggested by: joerg

Document this behaviour.  Document that the number of dial attempts
applies to the number of phone calls rather than the number of times
each number is dialed.  Add a missing .El.  Give a decent description
of how to connect to an ISP.
1997-04-12 22:58:41 +00:00
brian
9f048c7bd9 Support input and output filters with remote printing.
Output filters are executed on a per-file basis as it's
necessary to supply the file size to the "other side".
1997-04-12 04:23:13 +00:00
wpaul
052a702922 Avoid processing obviously bogus domain names in the YPBINDPROC_DOMAIN
and YPBINDPROC_SETDOM procedures.
1997-04-10 14:18:03 +00:00
wpaul
2d779f05ef Add a sanity test to ypproc_xfr_2_svc(): check that the map and domain
in the transfer request actually exist. Technically ypxfr can do this too,
but why waste the cycles getting ypxfr off the ground for a transfer we
already know is going to fail.

Also apply stricter access control rules; ypproc_xfr_2_svc() is in a
different class than the normal map access procedures procedures.
1997-04-10 14:12:51 +00:00
wpaul
261bc7b574 Add extra paranoia test. In theory this doesn't really gain you anything,
but the extra warning message could be useful.
1997-04-10 13:48:59 +00:00
guido
544a6e8574 Oops...now really commit the doc change. 1997-04-09 20:25:43 +00:00
guido
c0dad1ff8d Make a sysconfig variable controlling if teh kernel should accept
nfs requests from non-privileged ports.

Change mountd such that it does never set this variable, but only clears
it when run with -n. Also document this in the man page.
1997-04-09 20:17:15 +00:00
ache
9949bd676e Ignore SIGPIPE or any user can quit ppp just telnetting to it
and quitting telnet immediately (while phone number dialed)
Log client connection/disconnection with PHASE_BIT now.
Add more error recovery on client disconnection
1997-04-09 17:35:54 +00:00
jkh
53b252cd97 YAMF22 1997-04-05 07:08:14 +00:00
mpp
1b03e753f3 Document the -u option.
Forgotten by: guido
1997-04-04 00:49:35 +00:00
jkh
207189b145 Make all this work under -current again.
Submitted-By: Chuck Robey <chuckr@glue.umd.edu>
1997-04-03 13:44:59 +00:00
wosch
87ae550b26 Variable name typo.
Reviewed by: Guy Helmer <ghelmer@cs.iastate.edu
Submitted by:	Paul Sandys <myj@nyct.net>
1997-04-02 14:34:57 +00:00
jkh
db33110f6e Sync up to current state of development. 1997-04-02 12:07:39 +00:00
bde
68052e6de3 Don't fail when the vfs.nfs.nfs_privport sysctl doesn't exist
(presumably because the kernel is old).  Moved the declaration of a
variable realated to this sysctl outside of an unrelated ifdef.

Not fixed:
- this sysctl is badly named (nfs occurs twice).
- it's silly to have for FreeBSD in FreeBSD code, especially when
  only half of the FreeBSD-dependent code is ifdefed.
1997-04-01 14:15:30 +00:00
brian
cb7f5ad555 Remove the syslog stuff, and allow various return values
in uu_lock().  Add uu_lockerr() for turning the results of
uu_lock into something printable.  Remove bogus section in man page
about race conditions allowing both processes to get the lock.
Include libutil.h and use uu_lock() correctly  where it should.

Suggested by:	ache@freebsd.org
1997-03-31 22:51:00 +00:00
peter
526a6977d3 Activate the -h flag which tells chown/chgrp to work on the symlink itself
using lchown().  Most of the code was already here, the option was
recognised but ignored for SYSV/POSIX.2(?) compatability.
1997-03-31 13:03:49 +00:00
imp
691010efad compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-31 05:11:47 +00:00
brian
10839f0219 Move uucplock into libutil and create a manual page. 1997-03-30 12:12:20 +00:00
bde
4f000a95d2 Removed `#define KERNEL'. This was a hack-around for nfs.h being broken
in the Lite2 merge to not export some nfs constants.  It started causing
warnings when I added a kernel-only #define for DIRBLKSIZ.

Removed `#define NFS'.  This was an old, bad interface for telling
<sys/mount.h> to export nfs stuff.
1997-03-29 12:50:41 +00:00
peter
8a46d2ea36 Allow the samplerate (in DPI) to be set on the command line, the rest of
the code appears to support it.
1997-03-29 12:10:26 +00:00
peter
37683aa141 Reserve a placeholder for 4 SMP ipi interrupts in the same way that
it's done for pci.  This is so that systat and vmstat can get at the
interrupt counts for the Inter-Processor Interrupts when running a smp
kernel.  This doesn't affect the normal kernel, but makes life easier for
the smp people who don't have to track two versions of config.
1997-03-29 12:04:51 +00:00
bde
29f905f3b2 Use new mount args (mount "ufs" instead of MOUNT_UFS).
vnconfig doesn't seem to be in Lite2, although dev/vn is.  The Lite2
merge in userland has converted all mount calls except this one and
one for devfs in init, so we can drop support for old mount args soon.

Vnconfig probably shouldn't support mounting - it only supports ufs.
1997-03-29 11:01:54 +00:00
jkh
4035aab1d3 Catch this puppy up to RELENG_2_2 1997-03-29 06:44:57 +00:00
imp
167db52912 compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-29 03:33:12 +00:00
ache
bcbc3df8b0 Remove support for "port none" and "port auto", it gains nothing,
non-standard and not used. "port auto" is equal to "port?" or missing "port"
keyword now. "port none" is really probe routine task (return -1 for
no ports).
1997-03-28 00:56:11 +00:00
guido
8db0f5f4fd Add code that will reject nfs requests in teh kernel from nonprivileged
ports. This option will be automatically set/cleraed when mount is run
without/with the -n option.
Reviewed by:	Doug Rabson
1997-03-27 20:01:07 +00:00
jkh
6b898a8b98 YAMF22 1997-03-27 01:44:11 +00:00
jkh
f40d7504a2 Sync with 2.2 1997-03-27 01:05:17 +00:00