Commit Graph

4437 Commits

Author SHA1 Message Date
itojun
b1ba1c6a53 $KAME$ cleanup. address PR 11616 (CMSG_SPACE should be CMSG_LEN).
couple of stability/protocol conformance fixes.  sync with kame.
2000-12-04 07:05:47 +00:00
itojun
a2ca80c86b $KAME$ cleanup. address PR 11616 (CMSG_SPACE should be CMSG_LEN).
sync with kame.
2000-12-04 07:04:37 +00:00
itojun
8b87a48e0e $KAME$ cleanups. sync with kame 2000-12-04 07:03:17 +00:00
matt
a2877b394c Don't emit MACHINE/MACHINE_ARCH. Instead emit a TARGET_MACHINE=machine
instead.
2000-12-03 07:06:15 +00:00
matt
5cde4cf735 If a port-specific Makefile.<port> doesn't exist, try a arch-specific
Makefile.<arch>.
Emit MACHINE=<port> and MACHINE_ARCH=<arch> to the emitted Makefile.
2000-12-02 23:01:54 +00:00
is
e077acfb61 Document that text (console) modes need a depth field of 4. 2000-12-02 21:58:10 +00:00
hubertf
1e2914d00b Document that the path to the configuration file given on the command
line must be absolute, unless the -d option is given on the command line.
2000-12-02 02:15:34 +00:00
simonb
0833efd07d Remove extern variables and functions now declared in dkstats.h. 2000-12-01 02:10:22 +00:00
simonb
80bd9216d2 ANSIfy. 2000-11-30 23:59:03 +00:00
hubertf
4b8a7a0e49 Fix pkg_info w/ URLs (*sigh*) 2000-11-30 10:09:15 +00:00
mrg
6ce96c999f several clean ups:
- don't include eeprom support on sparc64.
	- work out if we are eeprom or openprom from the results of open()
	and/or ioctl(), rather than grovelling the kernel.
	- move all eeprom specific code to eehandlers.c
	- update manpage for sparc64 usage, remove delete -N switch

with these changes, eeprom(8) no longer needs to be setgid.
2000-11-28 22:31:37 +00:00
sommerfeld
057fcccd0c Default crontab size limit is 256k, not 32k; correct documentation to
match code.
2000-11-28 14:06:13 +00:00
mycroft
9ff73e166a Oops; the increment needs to be in check1pkg() for the case where the user
specifies a list.
2000-11-28 05:23:35 +00:00
mycroft
23451da968 pkgcnt was incremented twice during a `check'... 2000-11-28 05:21:57 +00:00
hubertf
fc8a285aa2 Fix timeout in expect():
The FTP coprocess formerly wrote the output of the "get | tar vxf -" pipe
to stderr, which resulted in no output to the feedback pipe (stdout), and
thus the timeout was not updated for any line printed by the "tar" process.
This was now changed to also feed back the chars to the expect() routine,
updating the timeout handler. The "also" part is implemented by passing
the output through "tee /dev/stderr".

At least NetBSD and Solaris have this, so no problem there.

Thanks to Frank van der Linden for helping me to debug this.
2000-11-28 01:16:01 +00:00
mycroft
04adf420b1 Don't terminate the loop after getting a short packet, either. 2000-11-27 17:36:19 +00:00
mycroft
a23cc61626 For BPF, we must loop on receive_packet(). BPF may return multiple packets at
once, and we obviously won't get a select() hit for each one in that case.
2000-11-27 17:33:02 +00:00
mycroft
33515cb532 Make sure to BPF_WORDALIGN() the buffer pointer for each packet, as BPF does in
the kernel.  Otherwise the pointers get out of sync and dhcpd goes nuts.
2000-11-27 17:08:16 +00:00
hubertf
ec58d85250 Don't mkdir("/usr/tmp") in a desperate try to get some space.
If it's there, use it. If it's not there - bad luck.

Pointed out by Simon Burge <simonb@wasabisystems.com>.
2000-11-26 03:12:01 +00:00
jdolecek
c40ad1440d cast isprint() parameter to (unsigned char) - it looses if the character has high
bit set when the architecture is using signed char by default
This fixes bin/11556 by Michael Eriksson.
2000-11-24 09:53:36 +00:00
itojun
50ac5d898b move rcsid to the top 2000-11-24 07:42:07 +00:00
veego
048d058532 Fill in 26 defines for MNT2_NFS_OPT_ which the configure script didn't
find and were lost in the upgrade of am-utils.
2000-11-21 12:14:18 +00:00
enami
6bc7e18094 Don't try to deallocate an object pointed by NULL pointer. Instead,
deallocate the right one.
2000-11-21 03:47:41 +00:00
wiz
45b07c3e8f Since amd compiles with WAUDIT=2, include it in Makefile. 2000-11-21 02:03:26 +00:00
is
b002f5435b With RARP, MAC asks, and IP answers. Fixes PR 11330 by Thilo Manske, who
also provided the fix (modulo formatting).
2000-11-20 14:59:30 +00:00
tron
f8f9801395 Use empty string as default prefix so that e.g "/etc/spwd.db" is used
instead of "//etc/spwd.db".
2000-11-20 14:09:36 +00:00
wiz
20845d16f4 remove outdated comment 2000-11-20 01:58:43 +00:00
wiz
c9669422d2 Make config_local.h more cross-compile safe. Thanks simonb! 2000-11-20 01:56:13 +00:00
wiz
d53f0cf553 Fix thinko on my part (we do have setitimer). 2000-11-20 01:23:14 +00:00
wiz
0f1a444c28 restore ID tag (forgot removing $$) 2000-11-20 00:27:23 +00:00
wiz
e5d9f656ce Replace old build structure with new reach-over one. 2000-11-20 00:24:41 +00:00
wiz
4f035159de Import of amd reach-over Makefiles for using the sources in dist/am-utils. 2000-11-20 00:16:18 +00:00
bouyer
9c9d109bdd Fix bin/11253: seg-fault in mopd
Once we found the correct slot, make sure dle points to it. dle was left
pointing out of the array by the for(;;) loop.
Fix from Ken Wellsch <kwellsch@tampabay.rr.com>
2000-11-19 16:40:16 +00:00
mrg
7996c8de3a de-__P-ify. 2000-11-19 11:15:01 +00:00
cgd
a1a91fd28f if there are no locators or parent, don't output those arrays. (Sometimes
you really want no devices whatsoever.  In that case, you get unused
static var warnings from the compile.)  Reviewed by sommerfeld.
2000-11-18 00:51:29 +00:00
msaitoh
c1fd8f00d4 Add forgottern addarg(&al, NULL, 0) before execve() to prevent coredump. 2000-11-16 08:33:33 +00:00
tv
a32617f770 This is now 8.2.2-P7, so update VER. 2000-11-13 22:45:05 +00:00
perseant
a3bb9e16b4 Report, and detect and correct inconsistencies in, the number of clean
segments.  Patches from Jesse Off <joff@gci-net.com> (PR #11470).
2000-11-13 00:30:48 +00:00
martin
d045d83e39 Make ntp work on sparc64 (workaround for toolchain problems) by
adding -msoft-quad-float.
2000-11-12 19:48:55 +00:00
wiz
18c121ba47 ispell 2000-11-12 15:32:57 +00:00
itojun
980886f151 do not advertise dynamic/cloned routes 2000-11-10 18:15:57 +00:00
itojun
7da1bb7a9c synchronize with BIND 8.2.2-P7.
- resolve conflicts (there are many conflicts with $NetBSD$ tags -
  dunno why they happen).
- type pedant (couple of typecasts).

correct yacc-generated file handling.  remove bin/named/ns_parser.h,
use the header yacc generates at compilation time.
2000-11-10 09:56:56 +00:00
wiz
efad173586 Add amd.conf.5 from dist/am-utils/scripts here, and install it.
Fixes PRs 5051, 7524, 8999, 10814.
XXX: Why are amd & friends not using reachover Makefiles, but a copy of
the source? This should be fixed...
2000-11-08 12:00:48 +00:00
itojun
bfef63a365 do not print "PIM" twice 2000-11-08 07:23:54 +00:00
tron
68fa36f81f Avoid segmentation fault if "dns_zone_lookup()" is called with an empty
string as name. Problem noted by Simon Burge.
2000-11-07 13:21:36 +00:00
lukem
279552d3db fix up various .Nm abuses:
- keep the case consistent between the actual name and what's referenced.
  e.g, if it's `foo', don't use '.Nm Foo' at the start of a sentence.
- remove unnecessary `.Nm foo' after the first occurrence (except for
  using `.Nm ""' if there's stuff following, or for the 2nd and so on
  occurrences in a SYNOPSIS
- use Sx, Ic, Li, Em, Sq, and Xr as appropriate
2000-11-07 06:43:24 +00:00
lukem
ebcd47ebf3 use .Xr 2000-11-07 05:44:50 +00:00
lukem
6ccf8e332e format the option descriptions in a more standard (and imho readable) style 2000-11-05 03:05:48 +00:00
simonb
3854f3f705 Fix behaviour of 'useradd -m': it is now a fatal error if the target home
directory already exists.  Previously new skel files from /etc/skel were
copied and permissions/ownerships changed even if the directory already
existed.
2000-11-04 04:31:43 +00:00
tron
dd8effead0 Adapt to the new line discipline scheme. 2000-11-02 21:40:37 +00:00
wiz
341453a017 Remove duplicate entry for -d option, fixing misc/11414.
Sort options while I'm here.
2000-11-02 18:16:43 +00:00
taca
6a3b366a8c Patch from the ISC DHCP CVS repository, fix dhclient problem,
"Re: dhclient still taking up 95% of CPU" in current-users:

: Fix for bug #416: If a server hands dhclient an insanely large
: lease time, select() can get passed a too-large timeout, causing it
: to return EINVAL.  This fix restricts the select() timeout to one day.
2000-11-02 03:14:21 +00:00
taca
e3e05b89d4 Patch from the ISC DHCP CVS repository:
: Tweak omapi_protocol_connect() so that authenticators are sent in the
: proper order.
2000-11-02 03:14:02 +00:00
simonb
a2358fe791 Remove some debugging cruft in the removal of user home directories
accidently left in from revision 1.25.
2000-11-01 22:35:30 +00:00
simonb
dc598d2a0c Run a "chmod -R u+w <newhomedir>" after copying files from skeldir.
Noted by Hubert Feyrer in private mail.
2000-11-01 22:29:10 +00:00
simonb
2ad83f6dcf Don't let usage messages wrap around on an 80 column terminal.
Problem noted by Hubert Feyrer in private mail.
2000-11-01 22:18:22 +00:00
itojun
cd0d2f37f0 backout previous, it was redundant 2000-11-01 06:19:35 +00:00
itojun
5e5edf3d3a clean unnecessary yacc-generated source. 2000-11-01 06:17:36 +00:00
hubertf
efeb1d1e82 Don't swallow '%' in file/directory names.
Patch submitted in PR 11352 by Brook Milligan <brook@biology.nmsu.edu>
2000-10-31 23:47:05 +00:00
he
70a24dc7c0 Change from sprintf() to snprintf() where we may print externally
supplied data of unknown length.
Changes adapted from FreeBSD-SA-00:61.
2000-10-31 12:17:07 +00:00
tron
b56cc4466d Patch from Takahiro Kambe to fix crashes if dynamic DNS updates
are used. This fixes PR bin/10665 by Mason Loring Bliss.
2000-10-29 22:55:57 +00:00
hubertf
4f394222d2 Pull in /etc/mk.conf unconditionally, not only on SunOS.
Discussed with Alistair Crooks.
2000-10-27 11:49:23 +00:00
wiz
3204ca286c pcvt is dead.
XXX: better wording for lines 99-101?
2000-10-27 11:31:32 +00:00
garbled
9c6cafac02 Change direct calls to make to ${MAKE} 2000-10-26 06:00:48 +00:00
hubertf
931aadfd80 s/bsd/BSD/ 2000-10-25 15:55:44 +00:00
jmc
a6e6938ba6 Needed bsd.own.mk before MKDOC gets defined. subdir picks it up too late 2000-10-23 06:45:18 +00:00
simonb
45ad1d18bb Only descend into the doc directory if ${MKDOC} != no. 2000-10-22 17:17:08 +00:00
mycroft
f5abf3cd7a Introduce some caching. 2000-10-21 00:55:23 +00:00
fvdl
b2475f7e19 Make showmount -e work on lp64be. From Matt Green. While at it, also
fix another occurence of passing &int to xdr_long.
2000-10-20 11:49:40 +00:00
assar
e89ad55da9 cast pw_change (a time_t) into long and printf it as %ld 2000-10-18 01:45:12 +00:00
taca
5dea32f506 Make it compile again. 2000-10-17 16:12:20 +00:00
taca
0cb6a7cf94 Merge 3.0b2pl9 with head. 2000-10-17 16:10:38 +00:00
taca
70a42dc992 DHCP 3.0 Beta 2 Patchlevel 9 2000-10-17 15:07:41 +00:00
kleink
eafe08d5e9 Don't make references to _10Mb/s_ Ethernet; from Christian Weisgerber in
PR bin/11239.
2000-10-17 12:23:03 +00:00
simonb
6dfb84a930 For userinfo - if a password change or expiry time_t is 0, print "NEVER"
instead of some date around Jan 1, 1970.
2000-10-17 05:43:10 +00:00
simonb
5114e81f10 Handle -G for the useradd case (usermod was already correct). Also
show warning if a non-existant group is specified.

Patch from PR bin/11123 by David Edmondson.
2000-10-17 05:31:50 +00:00
simonb
051741ede8 Document the skel-dir and shell default settings.
Clean up skeleton dir list.

Part of fix for PR bin/10985.
2000-10-17 04:54:43 +00:00
simonb
97c54a1bab Use flags to set which parts of a passwd entry are to be changed.
Before removing the home directory of a user check that
  + the user does not have uid 0
  + the user is the owner of the directory.
and remove the files using the effective user-id of the user.  Show
a warning if the directory is not removed.

Use asprintf and fgetln for some string work to remove arbitary string
length limitations.

Fixes for PRs bin/11100 and bin/11103.
2000-10-17 04:53:27 +00:00
simonb
20fa427df4 Remove unneeded skel files.
Part of fix for PR bin/10985.
2000-10-16 13:46:48 +00:00
bjh21
73cc97669f Correct usage message: -p and -d can't usefully be used together. 2000-10-15 13:34:20 +00:00
bjh21
4be95e0e9d Use .Ql where appropriate.
-p and -d are, for practical purposes, mutually exclusive.
2000-10-15 13:32:13 +00:00
bjh21
95066d7f25 Put usage message in KNF order. 2000-10-15 12:46:31 +00:00
bjh21
b0c5636424 Canonicalize SYNOPSIS.
Widen left column of option list.
Add FILES section, so the possible values of <dev> are clearer.
2000-10-15 12:44:11 +00:00
bjh21
2530603bd5 Grammatical and formatting cleanups. 2000-10-15 12:37:16 +00:00
is
0e32b4bfb3 LP64 format string cleanup. Problem reported by garbled. 2000-10-15 12:27:25 +00:00
bjh21
ee64a7181e Minor grammatical touch-ups. 2000-10-15 12:25:17 +00:00
itojun
d8212a986b sync with latest kame version 2000-10-15 11:45:16 +00:00
bjh21
4e3f859aad Render what text there is into something closer to English.
Credit the WIDE project, since the licence requests that.
2000-10-14 21:10:38 +00:00
taca
5f70e573c1 - replace DBDIR, ETCDIR and RUNDIR with /var/db, /etc, /var/run.
Original dhcp package, those strings are replaced with real pathname
  when creating catman files.  Since we install man files, those strings
  should be replaced with real pathname.
2000-10-14 05:14:01 +00:00
augustss
eba963ea82 Fix more format string fallout. 2000-10-12 06:33:23 +00:00
augustss
43851beb31 Make it compile again after format string changes. 2000-10-12 06:11:40 +00:00
augustss
8ca6dec6ba Make it compile again after format string changes (this change was obviously
never tested).
2000-10-12 06:07:04 +00:00
augustss
9bd605c103 Make it compile after format string changes. 2000-10-12 06:03:32 +00:00
is
d8302e2d73 More format string cleanups by sommerfeld. 2000-10-11 20:23:46 +00:00
itojun
0eafc475c2 /etc/mail/aliases, not /etc/aliases. PR 10167. 2000-10-11 16:51:55 +00:00
hubertf
bf24eb4e3f Check if $PKG_PATH is set AND contains something useful. Stops
pkg_info from spewing.
2000-10-11 11:09:20 +00:00
hubertf
5f69d95c26 Check right variable to see if it's a URL (pkg -> cp) 2000-10-11 11:08:04 +00:00
hubertf
b31af88872 fix indentation 2000-10-11 11:01:41 +00:00
ad
2f4f733952 rpcinfo is in section 8. 2000-10-10 14:34:13 +00:00
ad
8d6bd26624 Let `-' mean stdin. 2000-10-10 14:33:23 +00:00
enami
e92c3f2867 - The type of return value of setmode is a void * and getmode takes it,
rather than mode_t *.
- Free the storage allocated by setmode unless it is obvious that program
  exits immediately.
2000-10-10 14:30:40 +00:00
itojun
ecb9f85737 cast size_t to u_long on printing. sync with kame 2000-10-10 13:03:27 +00:00
itojun
0d592a8998 nuke link-locals correctly on -c. sync with kame 2000-10-10 10:14:36 +00:00
hubertf
589e705b57 Remove unneeded header <db.h>. 2000-10-09 19:11:58 +00:00
hubertf
6cc0c78181 Remove unneeded header <sys/syslimits.h> 2000-10-09 19:06:08 +00:00
hubertf
f5b925151e Allow SRCS, LDADD to be set on the command line, and still add the files. 2000-10-09 17:03:20 +00:00
hubertf
32166d4f75 Only pull in <vis.h> when debugging expect(), i.e. EXPECT_DEBUG is set. 2000-10-09 14:35:27 +00:00
bjh21
23dc98ae44 Don't try to use yydebug when we're building on a foreign system. Not all
yaccs provide it (notably GNU Bison 1.28).
Fixes the final part of PR#9112 (building under GNU/Linux).
2000-10-08 11:33:40 +00:00
itojun
ffa892c2d7 use poll(2). 2000-10-08 06:40:42 +00:00
itojun
ff0a9e9ed1 remove bogus text in BUGS. 2000-10-07 23:31:18 +00:00
itojun
6626345485 avoid fd_set overflow. see openbsd select(2).
XXX should we use poll(2)?
2000-10-07 06:53:41 +00:00
itojun
d074de9004 avoid fd_set overflow 2000-10-07 06:42:40 +00:00
itojun
829f1b8451 avoid fd_set size overflow. from deraadt@openbsd, sync with kame. 2000-10-07 06:41:37 +00:00
itojun
74b478c63c printf-format audit. from sommrfeld@netbsd.org. sync with kame. 2000-10-06 00:13:01 +00:00
wennmach
36f6fb7e06 mtree uses strsvis, not strvis. 2000-10-05 20:16:02 +00:00
ad
5b09090e8e insure -> ensure 2000-10-05 12:35:33 +00:00
hubertf
037fd8a74e Make even more silent, only spit out stuff if -v is given.
Found during a post-install of a fresh machine:
1. setenv PKG_PATH ftp://smaug.fh-regensburg.de/pub/NetBSD/arch/i386ELF/All
2. pkg_add tcsh ssh XF86Config
3. Run XF86Config
4. pkg_add kde
5. Be done.

We should do this from /etc/rc.local on first boot... :-)
2000-10-04 16:01:50 +00:00
jdolecek
a93350bb37 document output format, so that users would know exact meaning
of printed statistics
2000-10-04 11:40:51 +00:00
itojun
70875bf54c add new cipher DOI # including AES.
add CR payload decoder.  fix ID payload decode.
have __attribute__((__packed__)) for align picky arch
(tcpdump.org code has better fix with lots of memcpy, however,
tcpdump.org version needs more verfication).

basically, sync with kame tree.
2000-10-04 03:53:24 +00:00
bjh21
adf3f4b907 Fix SYNOPSES:
Options without arguments go first in a bunch (see /usr/share/misc/style)
"add", "del", "info", "mod" arguments to user(8) and group(8) are command
modifiers, not normal text.
-D is not optional when setting the defaults for useradd(8)

Also add a missing .Ar to groupinfo.8
2000-10-03 19:32:23 +00:00
bjh21
ef44b18354 Split the SYNOPSIS into three cases, since not all options can be used
together.  The three cases are:

Adding a virtual terminal (can take -t/-e to configure)
Deleting a virtual terminal (can take -F to force)
Adding or removing a keyboard or multiplexor (can take neither of the above,
  and the index is optional)
2000-10-03 19:08:50 +00:00
bjh21
74521fc775 Use \(mu for a multiplication sign.
Use .Ql for literals in running text.
Use .Ar when referring to arguments.
2000-10-03 14:21:47 +00:00
bjh21
ea46e54f3e Use \(mu when we need a multiplication sign.
Use .Bx.
Use .Ql for literals in running text.
2000-10-03 14:20:52 +00:00
itojun
78907e0169 don't give result of function directly into syslog, use "%s". 2000-10-03 13:54:31 +00:00
scw
5c0e061414 Free the bind-address list entries, as well as the list itself. 2000-10-03 13:28:27 +00:00
bjh21
08964241f9 The usual formatting fixups. 2000-10-03 12:47:13 +00:00
bjh21
7faddc8d05 Only one fix here -- use .Ar when referring to arguments in running text. 2000-10-03 12:38:05 +00:00
bjh21
867a62d338 Apply .Fl, .Dq, .Ql and .Ar where necessary to fix formatting. 2000-10-03 12:34:05 +00:00
bjh21
41ed24d174 Fix the blank line in my last commit.
.Fl-ify mentions of "-D"
Use .Dq rather than ""
2000-10-03 12:18:09 +00:00
scw
97a603e5b0 Add a "-b" option to specify one or more local addresses to bind
to instead of the default INADDR_ANY.
2000-10-03 11:45:30 +00:00
hubertf
5e5f388806 * Make it a tiny bit clearer that this also works for IDE disks (by
listing 'wd0' as example device besides 'hk0' and whatnot)
 * We don't have format(8), remove from the SEE ALSO section.
2000-10-02 21:14:05 +00:00
cgd
1e69382368 clean up dev_t-related portability defines (and actually #define dev_t now).
Make major() et al match current NetBSD implementation.  In reality,
the code here in config which plays with these bits should be cleaned up
to treat major and minor separately.  (They only reason they're being mashed
together is storage convenience.)
2000-10-02 19:59:42 +00:00
cgd
da723c733f include copyright notice in binary even if bootstrapping. 2000-10-02 19:57:23 +00:00
cgd
506c287193 bump ALIGNBYTES up to 7 -- that way this'll have more of a hope
of working on non-NetBSD systems with 64-bit pointers.  (affects only
the MAKE_BOOTSTRAP case, and then only if BSD not defied.)
2000-10-02 19:51:07 +00:00
cgd
463d864ef0 nuke __P, and convert all functions to use ANSI-style declarations.
Also, do a few trivial KNF cleanups (e.g. newline at start of fn if no
locals).  Verified to have no effect via diff on new and old compiled
binaries.
2000-10-02 19:48:34 +00:00
cgd
a755a0d943 remove vestiges of checks for __STDC__ 2000-10-02 18:59:03 +00:00
bjh21
b56ee45833 General prettification.
There's a glitch in the display describing the "group" option in
usermgmt.conf.  I can't get rid of the blank line above it without it
losing the line break after the colon as well.  Anyone?
2000-10-02 18:28:28 +00:00
bjh21
8c07344989 Put sections in canonical order.
"stdin" is not a filename (use "standard input", which is at least English).
Typo fix (ro -> to).
2000-10-02 17:04:12 +00:00
bjh21
342d4af757 Put sections in the canonical order.
Correct wskbd(4) reference.
2000-10-02 16:45:20 +00:00
bjh21
7447cfe382 Put sections in the canonical order (from mdoc.samples(7)).
Add a "HISTORY" section.
2000-10-02 16:21:27 +00:00
bjh21
87589cb557 Replace "foo is mutually exclusive of bar" with "foo and bar are mutually
exclusive".
2000-10-02 15:11:43 +00:00
hubertf
0a2663ad0b Not every FTP server says nicely "Goodbye".
If they used some other string, pkg_add would hang forever.
The result of testing things only against one FTP server...
2000-10-01 20:34:30 +00:00
hubertf
197ee08b13 Don't replace the pkg version with -[0-9] on pkg alternates ("{foo-x,bar-y}")
as this will remove things like trailing '}' etc. and doesn't work in general.

As mentioned in the already-existing comment, doing TRT here would mean to
partly expand the pattern, then replace the versions on alternatives.
Unless our pkg pattern parser gets these hooks, cowardly step back.
2000-10-01 12:23:21 +00:00
simonb
956cbe59dd Don't refer to the skel-directory files here. 2000-10-01 09:18:59 +00:00
simonb
7ebee5683d Save the "preserve" value in the defaults file.
Use _PATH_CSHELL from <paths.h> instead of the string "/bin/csh".
Don't cast NULL to the pointer type being checked.
2000-10-01 08:56:28 +00:00
simonb
9014a6cdcd Fix typo. 2000-10-01 08:54:07 +00:00
bjh21
05b7923a90 Formatting cleanups around the description of geomspec. 2000-09-30 17:58:19 +00:00
sommerfeld
802499fd1c Avoid using savestr() on something which will later be passed to
free().  Raised as a potential security issue on bugtraq.  No actual
exploits known.
2000-09-30 12:44:37 +00:00
agc
9da93f35c8 Add functionality for adding usernames to secondary groups via the
"usermod -G group user" command.

Fixes PR/11071.
2000-09-29 10:37:26 +00:00
mellon
a894c0a5ef Goto label was in slightly wrong place. 2000-09-29 00:30:56 +00:00
erh
9a18c8bb35 Use ROUNDUP to pass addresses to the kernel aligned on a long boundary. Use the sa_len field of each address instead of sizeof(). Makes arp work on 64bit architectures. 2000-09-28 01:11:31 +00:00
itojun
c8b98b814c syslog() string format hole.
http://www.securityfocus.com/templates/archive.pike?start=2000-09-24&fromthread=0&mid=85023&list=1&end=2000-09-30&threads=0&
2000-09-26 17:44:38 +00:00
agc
4361ae7cb0 Correct a pasto in moduser(), the effect of which was to replace the
contents of the GECOS comment field with the default shell name, when
a user's information was modified.
Fixes PR 11072.
2000-09-26 11:35:48 +00:00
bjh21
ff579c68fd Style nit -- hard-coded path names belong in pathnames.h. 2000-09-24 09:45:55 +00:00
christos
b181f2aa02 - resolve conflicts
- adjust 2.4.0 new tty subsystem back to bsd.
- start on multilink stubs
- clean up warnings

Status:
- paulus knows about the fixes, but he has not responded yet as to if
  I should commit them or not].
- I've tested ipv4 connectivity and itojun tested ipv6 [many thanks!]
- Missing from this are pluggin examples and pppdump code because they
  are contain gpl code.
- This version of pppd is again gpl free now!
2000-09-23 22:39:29 +00:00
christos
5f5270c935 import of a cropped down pppd-2.4.0 circa sept 10 directly from the cvs
repository.
2000-09-23 22:14:39 +00:00
agc
61daa070a6 If we're about to add a user whose specified home directory does
not exist, and the "-m" argument has not been specified, then output
a warning.
2000-09-20 19:28:40 +00:00
christos
2565bd1854 oops, use MAKEDBM_S 2000-09-19 18:24:54 +00:00
christos
06e8cfa1f8 add a non-enabled rule to build solaris and linux shadow files. 2000-09-19 18:23:43 +00:00
ad
b8bb84a3b0 Clean one paragraph. 2000-09-19 16:28:52 +00:00
sommerfeld
5ac29b83b7 Don't prematurely terminate log message on a 0x80 character 2000-09-18 13:04:53 +00:00
jwise
f9c3dbedef Silly as it may be, update the #! line in this script to match the pkgsrc
wish install.

After the freeze, I'll pkgsrc this script -- it's kind of cute.
2000-09-14 18:00:44 +00:00
itojun
a5d0cbc5e5 sync with latest kame.
- improve logging.
- correct multicast address check for the relayed destination.
- repair EPRT translation.
- support 227 result without paren.
- change behavior on no-argument to more sensible side
  (before: relay telnet, now: error)
  WARNING: you may need to change your startup script.
2000-09-14 00:36:10 +00:00
itojun
ed870024f2 sync document with latest kame. now uses 3ffe:501:ffff::/48 in example. 2000-09-14 00:30:23 +00:00
thorpej
a12b66cf79 Don't abort if pushing to one server in the ypservers map fails.
There might be serveral more waiting to be pushed to.

This is only 1/2 of the fix.  ypxfer(8) also needs a change to
avoid a false error, but this allows pushes to continue to work,
at least.

Problem noted by aflury@zembu.com and agordon@zembu.com.
2000-09-13 21:40:15 +00:00
tron
20084585ac Use setlocale(3) to activate support for international characters.
This should fix PR bin/11007 by Bill Sommerfeld.
2000-09-13 21:20:21 +00:00
sommerfeld
b6f7dd7187 prevent one byte overrun in printline() 2000-09-13 15:46:32 +00:00
enami
f1fec63273 When @hourly is specified, set not just 23 but bit 0 through 22 also in
the bitstring e->hour.  Fixes PR#10961.
2000-09-13 04:07:34 +00:00
erh
5303e70da5 Make targets which are generated with rpcgen depend on the rpcgen binary. 2000-09-10 23:21:49 +00:00
joda
4412293540 install manpage 2000-09-10 19:45:18 +00:00
joda
332f680f77 install manpage 2000-09-10 19:38:03 +00:00
mellon
4649cc23c5 Update some instances of file movement in the ISC release. 2000-09-05 00:50:07 +00:00
mellon
e59a2459c4 Merge 3.0b2pl2 with head. 2000-09-04 23:19:27 +00:00
mellon
4ca7dd8c85 DHCP 3.0 Beta 2 Patchlevel 2 2000-09-04 23:09:46 +00:00
kleink
4918722a89 For commands and utilities, use EXIT STATUS rather than RETURN VALUES or
DIAGNOSTICS as appropriate (and documented in mdoc(7)).
2000-09-04 07:35:15 +00:00
hubertf
b09f22f48f When downloading and extracting a file (in ftp:
'get pkg.tgz "| cd /var/tmp/inst ; gunzip | tar -x -f -"'), handle
two cases better:

1. Timing out ftp connections: Make sure the hanging pipeline gets a ^C
   (SIGINT), and wait until the ftp prompt is available again. Else we
   may nuke away tar's working dir, and it may be displeased.
2. One of the commands from the pipeline exiting: caught via SIGCHLD;
   for this signal to be delivered, a empty handler is needed)

Adresses PR 10925 by Greg A. Woods <woods@planix.com>
2000-09-01 04:42:57 +00:00
hubertf
80c46f750e * Code cleanup
* Add a comment in one appropriate place
 * Indent properly
2000-09-01 04:36:20 +00:00
hubertf
c06c5a0348 Add some (commented out) debug flags 2000-09-01 04:34:03 +00:00
itojun
5914867b00 repair interface MTU grabbing. real cause of PR 10923.
from koji@jp.above.net.  sync with kame.
2000-08-31 16:40:04 +00:00
jhawk
a022cf9d37 Use
${MAKE}
instead of
  make
2000-08-30 23:51:46 +00:00
abs
7a26b9af55 Include the fact we're making replies in the debug() output. 2000-08-30 11:01:43 +00:00
hubertf
d332db18be Make pkg_add & friends print the files they push through tar(1) to
stderr, thus making them visible. (tar's stdout goes somewhere else)
2000-08-29 03:56:56 +00:00
hubertf
14dbdb5745 * Make a few functions public so this code can be used by other programs
* Comment a workaround for a certain lukem ftp behaviour
 * Fix a bug where a invalid initial dir was not caught early enough
2000-08-28 21:35:14 +00:00
hubertf
0186d67219 Hide "trying PKG_PATH ..." message, only print on -v 2000-08-28 15:39:35 +00:00
reide
63285a5cdb tyop. inerface != interface 2000-08-25 07:15:02 +00:00
enami
7652453dd5 Initialize variables which I recently changed storage class from file global
to auto.  Pointed out by Launey Thomas <ljt@alum.mit.edu>.
2000-08-25 06:25:59 +00:00
toshii
3f9bbd97f5 Defined datobyte(fs, da) macro, to ensure cast to off_t.
Fixes overflows with >2GB partitions. Reviewed by <enami@netbsd.org>.
2000-08-25 05:27:49 +00:00
sommerfeld
c829aa7773 Fix ingroup() to not check gid against trailing groups not set by
getgroups().

Reported to security-officer, but not a security hole, since
"operator" is not gid 0.
2000-08-24 17:40:16 +00:00
itohy
880baa236b Don't pass null pointer to syslog.
lpd[6813]: mail sent to user itohy about job foo.ps on printer lp ((null))
                                                                   ^^^^^^
2000-08-24 02:03:54 +00:00
jhawk
5056d0ce7c Add support for "microwave oven robustness" with wiconfig -M. 2000-08-23 19:01:04 +00:00
lukem
ab1ba36358 replace references to /etc/rc.wscons with /etc/rc.d/wscons 2000-08-22 08:49:01 +00:00
fvdl
63d43d2078 Fix 2 cases of wrong checks for sufficient bytes, causing output
to be not as verbose as it should have been.
2000-08-19 15:59:43 +00:00
wiz
4d73d17ffe user's UID is not kept if preserve is "false" (typo fix)
false(1) -> .Xr false 1
2000-08-18 15:49:21 +00:00
itojun
70d90c210e use more Xr to refer to sendmail(8). suggested by jhawk.
XXX not sure what is the correct way to refer to "postfix suite".
postfix(1) does not seem that relevant here.
2000-08-18 07:27:59 +00:00
itojun
9ab681c878 add purgestat and hoststat into sendmail example,
they are added in sendmail 8.10.x.
correct preamble text near postfix example.
2000-08-18 01:49:43 +00:00
mrg
4e24c8f4bb add NetBSD id tags. 2000-08-17 12:36:32 +00:00
mrg
25fc9bdc39 use libc inet_addr(3). fixes part of PR#10651 2000-08-14 11:30:41 +00:00
jhawk
8c412633ff Check for lowbattery state (if running -l) when polling for state,
rather than just when receiving events. Thus, if events are not
working (for some unknown reason...), low-power shutdown will
still work.
2000-08-13 21:13:56 +00:00
itojun
8702beec4d warn if net.inet6.ip6.forwarding == 1. rtsol{,d} is not supposed to be used
on routers.
update manpage (talk about -a twists more).
2000-08-13 18:19:12 +00:00
itojun
53476128e8 minor manpage fix. 2000-08-13 06:27:00 +00:00
itojun
ba6d02ed0c add -a flag: automatically probe an interface, works only if there's
only single external non-p2p interface.  idea from thopej.
$KAME$.

(sync with kame)
2000-08-13 06:20:02 +00:00
itojun
a1d74a730b fix LP64 issue in routing message parsing. from thorpej 2000-08-13 00:41:30 +00:00
thorpej
8521dd166a Clean up some include paths. 2000-08-12 18:08:43 +00:00
matt
576563305b A little cleanup. Deal with lost packets 2000-08-11 23:11:12 +00:00
itojun
f714bfb0d8 rewrite local address detection code, to use getifaddrs(3), not gethostname(3).
gethostname(3) do not necessarily represent local host addrses.
pointed out by: Chuck Cranor
2000-08-09 14:28:50 +00:00
ad
4ed69cc393 Remove extraneous M_32_SWAP(). 2000-08-08 12:08:17 +00:00
thorpej
d7018d707f Fix slight error in last. 2000-08-07 16:23:31 +00:00
thorpej
5535e3de10 Simplify. 2000-08-07 16:16:23 +00:00
ad
b11d8d3fbf - Move some duplicated code from main() into subroutines. In doing this,
fix -p (it was broken if used in conjunction with either -B or -L).
- const, KNF.
2000-08-07 13:19:27 +00:00
ad
07e87cf61f Xr pw_mkdb. 2000-08-07 12:39:31 +00:00
enami
f1cac3326d Add our RCS Id and restore original Id. 2000-08-07 00:55:08 +00:00
thorpej
2bcae16fa3 hprop(8) belongs in /usr/sbin, not /usr/libexec. 2000-08-06 20:42:22 +00:00
thorpej
f975168682 The Kerberos KDC belongs in /usr/sbin, not in /usr/libexec. 2000-08-06 19:31:24 +00:00
ad
492add7c77 - Xr adduser -> Xr user.
- Xr passwd.conf.
2000-08-04 14:58:52 +00:00
enami
99432a2167 - Ignore dangling symlink found while following.
- Report the name of function when fts_open failed.
- Wrap long line.
2000-08-04 07:51:32 +00:00
enami
b58d7e72eb - Make some global variable function local.
- Remove whitespace at the end of line.
- Put an empty line if function has no local variable.
2000-08-04 07:44:07 +00:00
assar
fc90224f06 link against the not-installed libvers 2000-08-03 22:47:37 +00:00
eeh
780f68fd71 Add a flag to turn on debugging so you don't need to recompile or patch
the binary to turn it on.
2000-08-03 21:14:19 +00:00
itojun
afa5315364 correct typo in #define. ICMP6_NI_SUCESS -> SUCCESS (notice missing C).
sync with kame.
2000-08-03 14:31:04 +00:00
ad
308c65aabe KNF. 2000-08-03 08:22:33 +00:00
assar
d6e38c7f36 update build infrastructure for heimdal 0.3a 2000-08-03 04:13:22 +00:00
fvdl
018ee18dee Do not check unitialized variables as error values. This is generally
frowned upon, or so I hear.
2000-08-03 00:07:22 +00:00
fvdl
ad91c2992c When merging addresses, and no direct match is found, pick the first
configured interface that is preferably not local or point to point.
This appears to be what Solaris does as well.
2000-08-03 00:04:30 +00:00
jwise
b240da3ec1 Fix circular reference. Instead of cross referencing itself, dhcpd.conf(5)
now cross-references dhcpd(8).
2000-08-02 18:23:44 +00:00
hubertf
d3bf5ce16a add missing .TP 2000-08-01 18:46:22 +00:00
itojun
51156effd6 be more paranoid about UDP-based echo services validation. namely,
reject the following sources:
	0.0.0.0/8 127.0.0.0/8 240.0.0.0/4 255.0.0.0/8
	ff00::/8 ::/128
	::ffff:0.0.0.0/96 and ::0.0.0.0/96 obeys IPv4 rule.
hint from deraadt.
2000-08-01 18:42:08 +00:00
itojun
058e85bfc6 we shouldn't use "(ip + 1)" to detect intermediate headers (AH/ESP).
we should use ip_p == IPPROTO_TCP/UDP.
2000-08-01 17:39:46 +00:00
itojun
bec9b9854d IPv6 UDP header checksum. 2000-08-01 17:35:18 +00:00
itojun
1c0969bf27 use of ip_p is irrelevant in tcp_cksum, as we may have AH/ESP inbetween. 2000-08-01 17:34:00 +00:00
itojun
d9bba2ca98 some merge from tcpdump.org code.
- print-telnet.c: do not print control character
- print-icmp6.c: improve icmp6 node information printing
  (we need to at least meet our kernel code!)
- update dhcp6 printing to 15 draft (14 and 15 are totally incompatible)
- add safeputc() and safeputs() into util.c
2000-08-01 17:29:47 +00:00
itojun
1174b9a1a9 implement tcp6 pseudo header cksum. 2000-08-01 17:24:40 +00:00
jdolecek
973a6510c5 backup previous - including ../Makefile.inc does have some
side effects (as pointed by enami), and I changed my build
environment to not need such hack
2000-07-31 17:25:47 +00:00
itojun
8e95963981 fix behavior or -A. routing table check does not seem to working right. 2000-07-30 17:26:14 +00:00
itojun
f96e3b36f6 generate ipnodes.{byname,byaddr} for IPv4/v6 lookups.
hosts.{byname,byaddr} is still an IPv4 only mapping.
obeys solaris8 practice.  see comments in ypinit/Makefile.yp for details.

TODO: interop test with solaris8 (any takers?)
2000-07-30 02:33:13 +00:00
itojun
863848734f with -n, permit non-IPv4 address in the output.
option name synchronized with solaris 8.
2000-07-30 02:25:08 +00:00
christos
d9737d6850 - detect duplicate keys when initializing the database. abort if too many
duplicate keys are found indicating a corrupted database (avoids problem
  where sa would loop forever).
- add open flags and mode in dbopen in case someone wants to debug...
2000-07-29 19:15:40 +00:00
christos
d04a051588 remove unused debugging variable 2000-07-29 19:13:34 +00:00
christos
272ef31d3b declare formatting function. 2000-07-29 19:12:48 +00:00
christos
b834536a8d - read file using stdio
- knf
- add usage function
- add DBT formatting function used for diagnostics
2000-07-29 19:12:17 +00:00
jdolecek
19c28ebcf8 pull in ../Makefile.inc before bsd.prefs.mk, in case someone (like me)
has some stuff depending on e.g. value of WARNS in /etc/mk.conf
2000-07-29 12:44:45 +00:00
onoe
2761069b0f Confirmed the maximum length of the key for WaveLAN Gold cards is
13 characters, not 14.  The 13 characters (104bit) secret will be
combined with 24-bit IV to consist the seed for 128-bit RC4.
Though maximum 14 characters can be configured in seven 16-bit hardware
registers, the last charactoer is apparently ignored both for encryption
and decryption.
2000-07-27 20:24:19 +00:00
itojun
0e416c083c add usr.bin/{hoststat,purgestat}, which are new argv[0] hack
for sendmail 8.10.x and beyond.  sorry that i forgot to add this one.

From: Andrew Brown <atatat@atatdot.net>
2000-07-26 16:35:33 +00:00
hubertf
8102826629 Keep *roff from eating things.
Noted in PR 10687 by NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp>
2000-07-26 15:18:09 +00:00
mycroft
98a44cdc45 Do the PTRSIZE_64BIT thing in the port-specific .h file instead. 2000-07-26 14:41:23 +00:00
ad
93508ea1b3 Print a space after printing 802.1Q header information. 2000-07-26 10:48:15 +00:00
cgd
4bf5f7086b ${RPCGEN}, not hard-coded rpcgen 2000-07-25 06:29:44 +00:00
dmcmahill
43301f1fee Fix a buffer overrun bug. The TOOBIG macro had some hard coded constants
which needed to be set at compile time but weren't (to handle the case where
TAR_CMD was set to something other than "tar", eg "gtar".  In addition to
the constants being wrong, the wrong directory name was being examined for
its string length.

Add a few comments to hopefully avoid having this problem come back.
2000-07-24 20:09:15 +00:00
ad
a73283ac00 Dump 802.1Q encapsulated packets. From tcpdump.org. 2000-07-24 15:32:43 +00:00
hubertf
c0f021878e handle NULL pen variable more gracefully in find_play_pen() 2000-07-24 02:54:22 +00:00
mycroft
883a3e4835 Make alloc() return void*, and eliminate the use of typeof. 2000-07-23 23:14:10 +00:00
mycroft
fddf849c29 Make this build for sparc64. 2000-07-23 23:07:39 +00:00
mycroft
1f1da49497 Eliminate a bunch more // annotations. 2000-07-23 23:05:38 +00:00
mycroft
a6fc55d840 //#define -> #undef 2000-07-23 22:59:56 +00:00
mycroft
70c4e41552 Remove bogus typeof hack, and just use the type directly. 2000-07-23 22:54:51 +00:00
mycroft
64ef2ce0d3 Define PTRSIZE_64BIT for alpha and sparc64. 2000-07-23 22:44:07 +00:00
simonb
2e7c137de8 Use /usr/share/doc/html/ntp as location for html files.
Fixes remainder of PR bin/10613 from Jaromír Doleèek.
2000-07-23 14:34:14 +00:00
mellon
2749a115e8 Back out previons revision in favour of a simpler solution. 2000-07-23 07:13:57 +00:00
mellon
893c278cbb Put missing PATH= in CLIENT_PATH define. 2000-07-23 07:10:00 +00:00
thorpej
84ffef610f Set the PATH environment variable properly. Now this actually
works again.
2000-07-23 05:34:53 +00:00
thorpej
f407f6eb9d CPP directives go into CPPFLAGS, not COPTS. 2000-07-23 05:33:21 +00:00
pk
171b3bf97a dhcp_option_ev_name: make argument `buflen' match the prototype. 2000-07-22 20:54:56 +00:00
tron
fd8ae9c4ea Use correct argument type in call to "fparseln(3)". Fix supplied by
Motoyuki Konno in PR bin/10645.
2000-07-21 16:03:14 +00:00
mjl
0b02557654 Increase buffer size to maximum allowed by spec (filename may be
up to 128 chars long).
Ignore filenames longer than this.
Use syslog with %s as format, just in case.
The above changes come from OpenBSD.

Also use #define instead of magic constants.
2000-07-21 12:37:00 +00:00
agc
45fccde78f Fix typo. 2000-07-20 12:41:28 +00:00
mellon
aa27884601 Client path defined in Makefile. 2000-07-20 06:33:50 +00:00
thorpej
29ea834f56 If we don't get direct match on the token, only attempt to canonicalize
the token if it does not contain globbing characters, and just skip onto
the next line if it does.
2000-07-20 06:21:51 +00:00
mellon
4b564fe2bf Merge 20000719 changes 2000-07-20 05:59:17 +00:00
mellon
8e7171f5ab Final (I hope) DHCP client security fix. 2000-07-20 05:49:35 +00:00
enami
e1d0d284cf Free the storage allocated by fparseln when skipping an empty line. 2000-07-19 08:41:13 +00:00
enami
edea8c9791 You can't just define read_line as fparseln since former keeps the storage
internally but latter allocates everytime.
2000-07-19 07:52:44 +00:00
tron
eb738db50f Resolve conflicts from import. 2000-07-16 22:10:10 +00:00
jdolecek
9e1ce523c5 account(): fix so that number of copies is optional and whitespace
between it and hostname:username is optional as well (some software relies
in this); while here, covert to use sscanf() instead of explicit parse code,
sprinkle some comments

dumpit(): change so that the price is total price for this entry, instead of
beeing price per copy

Addresses bin/9996 by Brian Stark, though the implementation differs from
patch code attached to it.
2000-07-16 21:33:26 +00:00
itojun
b141a4af1e always check getnameinfo errors. pass NI_WITHSCOPEID to
getnameinfo if declared.
2000-07-16 14:07:39 +00:00
enami
0eca5025a3 Fix a typo which causes coredump or wrong output when dumping NFS traffic. 2000-07-16 12:34:06 +00:00
itojun
55108de1d4 remove debug printf(). 2000-07-16 08:13:34 +00:00
itojun
aa16ae57f1 fatal typo: need listen(tcp6sock). 2000-07-16 08:11:34 +00:00
itojun
06ee23e6b3 sync with latest kame.
- remove obsolete non-advanced-api support.
- if a routing entry exists for aggregate prefix (-A), do not overwrite
  the routing entry (exit with error).
2000-07-15 04:55:40 +00:00
mason
662fbfe2f1 Removed redundant / extra prototypes. 2000-07-12 22:36:12 +00:00
ad
a90951c0f1 Xr newsyslog. 2000-07-11 12:43:50 +00:00
itojun
608c7038b1 sync with latest kame. wording and .Nm/.Xr clearifications. 2000-07-10 08:58:31 +00:00
mellon
803abd7fc5 Actually fix a bug I thought I'd alread fixed 2000-07-09 07:04:10 +00:00
itojun
f85b415274 sync with more recent kame.
- fix memory leak with realloc()
- warn if we see packets with junk outside of IPv6 prefix length
- cosmetic
2000-07-09 03:06:18 +00:00
mellon
f1157334e4 Oops, fix one more conflict. 2000-07-08 20:53:57 +00:00
mellon
d1340e80d6 Fix conflicts in latest import. 2000-07-08 20:52:11 +00:00
mellon
f1127576c6 Latest revision of the ISC DHCP Distribution, with many bug fixes. 2000-07-08 20:40:10 +00:00
itojun
b44d184dec permit square-bracket notation (as in RFC2732) for the first element
in inetd.conf.  otherwise, we'll have (minor) problem putting IPv6 address in.
sync with kame.

[::1]:ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -ll
2000-07-08 01:55:24 +00:00
itojun
bbef2fbaac errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd 2000-07-07 15:10:32 +00:00
itojun
7bf16d3ecc explicitly check if the address family is supported, by using socket(2). 2000-07-07 14:56:45 +00:00
enami
2fffbc9c4c No space is allowed between owner and optional :group. 2000-07-07 13:21:32 +00:00
itojun
fed1a1bf38 warnx?/errx? audit (don't pass variable alone). from openbsd. 2000-07-07 12:22:32 +00:00
itojun
7ebfc079d9 syslog() audit - do not use it with a variable alone. from openbsd 2000-07-07 11:39:41 +00:00
hubertf
0379a1727a remove/hide some debugging code 2000-07-06 16:06:36 +00:00
itojun
19a4d0910c sync with sys/netinet/icmp6.h change (no bitfield for router renumber).
more logging.  improve error handling/garbage collection.  sync with kame.
2000-07-06 12:37:56 +00:00
enami
3268786888 - Process all passed option rather than ignoring silently except the first one.
- Centerize the check whether an interface is specified.
- Print maximum data length.
- Swap wi_type and wi_code in struct wi_table so that wi_type matches with
  wi_type in wi_req.
2000-07-06 03:37:26 +00:00
itojun
4941865cd4 setproctitle fix. from openbsd 2000-07-05 22:21:15 +00:00
hubertf
7ca7a7f658 Only calculate MD5 checksum for plain files.
As a side effect, fixes handlink of links to dirs.
2000-07-05 20:18:16 +00:00
hubertf
2b35b3d322 * Move comment around a bit
* Document some return code
2000-07-05 20:17:04 +00:00
itojun
31431ac193 always use %s for setproctitle. from openbsd-current 2000-07-05 17:59:58 +00:00
msaitoh
f6f00e2615 remove extra period in SEE ALL section 2000-07-05 15:45:28 +00:00
itojun
358c3cf8dc more change on getaddrinfo error handling.
XXX enami, I admit it is not a good thing to check the error code from
getaddrinfo.  it is sometimes mandatory, however.  gai_strerror message
can be too generic in some cases.  we can't really extend getaddrinfo,
as it was not invented by kame (see RFC2553)
2000-07-05 12:43:06 +00:00
matt
3ab02a8704 More #include <stdlib.h> string, etc. cleanup 2000-07-04 20:27:35 +00:00
thorpej
6851dd879b Update ifconfig example to show that the interface has to be created. 2000-07-04 20:08:32 +00:00
itojun
e9bf9cf7a1 allow faithd(8) to be invoked via inetd(8), just like tcpd (of tcp_wrappers).
sync with kame.

benefits: allows us to access-control inbound traffic by using hosts.allow(5).
possible drawbacks: inetd mode has no chance for multi-connection-per-single-
process enhancement.  current faithd(8) needs 1 process per 1 connection
anyways.
2000-07-04 13:28:13 +00:00
itojun
798ee6865c add faithd(8) support. with "faith/tcp6" protocol specification,
it will open a socket with setsockopt(IPV6_FAITH).
2000-07-04 13:25:39 +00:00
itojun
9282955dca emit more friendly message on nonexistent service name.
From: enami
2000-07-04 09:33:55 +00:00
enami
e9aaacc880 If the line wasn't for the client we are looking for, skip it.
While I'm here, I indented the continuation line properly.
2000-07-04 08:18:44 +00:00
itojun
0b740ef377 beautify SYNOPSIS section with .Bk - .Ek pair.
correctly describe "no option" behavior (show 802.11 setting).
add comment about statistics update delay (-o).

TODO: should put \n after sentences
2000-07-04 05:20:03 +00:00
itojun
0f20cdad3f check for mux service by ISMUX(), not by != NORM_TYPE
(the assumption can bite us if we extend se_type to have more cases).
2000-07-03 23:40:59 +00:00
itojun
ee1989a0d1 remove duplicated ipsec setup code. we always call setup() on
socket reinitialization (like SIGHUP).
sync with kame.
2000-07-03 23:37:17 +00:00
enami
6412403c8a Fix few typos. 2000-07-03 10:16:10 +00:00
enami
8ab9946e10 Substitute the cross reference to portmap(8) with rpcbind(8). 2000-07-03 10:06:24 +00:00
itojun
1f62fd302f add more security notice about relaying rsh/rlogin taffic. (sync with kame) 2000-07-03 08:37:20 +00:00
enami
d985c8daa6 Don't hardcode like "[ -v 1|2|3|4 ]". 2000-07-03 08:31:22 +00:00
enami
511d11787c Use .Ar macro for the flag arguments. 2000-07-03 05:21:19 +00:00
itojun
f244aa6821 correct usage of route(8) in example. 2000-07-02 09:17:30 +00:00
jwise
ea7e9f5176 Fix minor thinko in previous. Make sure we close and keep closed all
sockets in the situation where all of the following are true:

	* /etc/syslogd.conf contained forwarding actions when we were
	  started up or when we last received a HUP

	* /etc/syslogd.conf has had all forwarding actions removed

	* we are running with -s

and we receive a HUP.
2000-07-02 02:15:34 +00:00
augustss
826490bf58 Indicate that the device argument is not mandatory. 2000-07-02 00:55:47 +00:00
itojun
a847ca3ad6 be more careful about arg to errx?/warnx? (do not pass variable directly,
it may contain "%").  from openbsd, via kame.
2000-06-30 18:58:42 +00:00
jwise
37b8137c99 Remove caveat about behavior of `syslogd -s' when forwarding rules are
present -- this behavior has been fixed.
2000-06-30 18:52:24 +00:00
jwise
9b22831fbc Fix opening/closing of sockets when receiving a HUP, and /etc/syslog.conf
has been changed from having forwarding actions to having none, or vice versa.
2000-06-30 18:45:04 +00:00
jwise
ccb04760be Improve behavior of `syslogd -s'.
Even if we are forwarding, don't bind to udp/514 if running with `-s'.
2000-06-30 18:22:54 +00:00
jwise
20abf1785a Back out and redo previous at Bill Sommerfeld's <sommerfeld@netbsd.org>
request:

	instead of the -S flag, fix the -s flag to not open a socket
	if there are no forwarding rules in /etc/syslog.conf

The behavior of syslogd when -s is specified and there are forwarding rules
should still be made cleaner.
2000-06-30 18:03:50 +00:00
thorpej
0ef2c35ee6 gifconfig(8) is obsolete; functionality has been added to
ifconfig(8).
2000-06-30 18:02:32 +00:00
jwise
3258a51b03 1.) bring usage text up to date, and clarify description of `-s' option
in man page and comments -- for some time it has no longer prevents
    an inet socket from being opened, just caused it to be ignored

2.) Fix this problem with `-s' -- syslogd always opens an inet socket, even if
    -s is specified and it has nowhere to send to.  This socket is then
    shutdown(), but there is no way to not have this socket open.

    Users setting up paranoid installations can now specify `-S' which
    prevents any non-unix-domain sockets from being opened, even if
    forwarding is specified in /etc/syslogd.conf.

    As per the previous fix, this is not made the default for `-s', as it
    also prevents syslogd from forwarding log messages.

3.) document the above in the man page and usage.

Justification:  in light of the possibility of future DoS attacks, or the
desire to set up a machine which is relatively uninformative in the face
of port scans, users may quite legitimately want to control what sockets
are open on their machine.  Telling such users that they cannot run
syslogd is non-ideal.
2000-06-30 17:32:43 +00:00
itojun
7f153848ab use %s with syslog, to prevent abuse. from: deraadt (sync with kame) 2000-06-29 01:24:11 +00:00
onoe
cb94bf1d45 Update the description of available channel for Japan.
The regulations has been changed to adopt 802.11b since Oct. 99.
For 11Mbps NICs sold in Japan, all DS channels (1..14) are available.
2000-06-28 10:07:05 +00:00
thorpej
c1b4b34401 Add support for globbing when matching the host name in the
bootparams(5) file, a'la Solaris.  This is extremely useful
for configuring Jumpstart servers.

From Dan Mercer <dmercer@zembu.com>.
2000-06-28 01:30:56 +00:00
thorpej
3a1d089614 Add some extra instrumentation in the `debug' case. 2000-06-27 20:32:28 +00:00
ragge
ca2ae6b635 Need special tweaking for VAX8200 etc... 2000-06-27 18:57:41 +00:00
briggs
72e9fc0fb5 If both SMALL and NSUPDATE are defined, undefine NSUPDATE. The NSUPDATE
option pulls in a set of symbols that increases the size of dhclient
with functionality that is not required for installation media.
This was discussed with Ted Lemon, and the patch is being submitted to him
for inclusion in his source tree.
2000-06-26 12:33:14 +00:00
perseant
4e02de35d3 use -s option to shorten the list of SEGUSEs printed as well as whole segments 2000-06-25 21:36:16 +00:00
mellon
cb94aaa4bf Delete some debugging statements that got included accidentally. 2000-06-24 19:05:50 +00:00
mellon
61f43e2b27 Allocate command line interface using interface_allocate (pr#10378) 2000-06-24 16:21:02 +00:00
mellon
770dd9d3d3 Merge latest version, fix conflicts. 2000-06-24 06:57:05 +00:00
mellon
11e02a2cec Merge latest version, fix conflicts. 2000-06-24 06:50:01 +00:00
mellon
cbcf186604 3.0b2 as of June 23 - fixes two important glitches. 2000-06-24 06:38:26 +00:00
sommerfeld
88930abce1 Add support for the documented, but unimplemented, -a flag. 2000-06-24 04:15:49 +00:00
thorpej
3cf08199ac If the `device' argument is not specified, attempt to open /dev/sysmon. 2000-06-24 00:41:10 +00:00
thorpej
df83a2a3cd Add MK... variables to enable/disable various aspects of building
crypto support into the system.  See share/mk/bsd.README for more
a full description.
2000-06-23 06:01:10 +00:00
fvdl
a17451fec8 Plug memory leak in error case (would have happened very rarely). 2000-06-22 13:55:18 +00:00
fvdl
1cccef0253 Make sure to free the netconfig entry in addrmerge(). 2000-06-22 10:59:55 +00:00
fvdl
d797839afc Make sure that freeing the temporary buffer always happens; previous
commit would still result in a leak.
2000-06-22 10:57:38 +00:00
fvdl
bcec83b93a Plug a few memory leaks. 2000-06-22 08:09:26 +00:00
enami
cfaeffad70 - Fix .Nd usage; no need to supply hyphen explicitly and the description is
short enough to put on the same line.
- Kill the comma at the end of SEE ALSO list.
- Remove empty line in the source.
- Break line at the end of statement in the source for better output (in other
  words, let the roff to format it).
2000-06-21 03:19:05 +00:00
enami
bc066a6ce1 Avoid null pointer dereference; the `addrp' is NULL if a mount point
is default exported.
2000-06-21 02:48:31 +00:00
itojun
f42e218016 sync with more recent kame code.
accept scoped address notation.
2000-06-20 22:23:01 +00:00
fvdl
ce3461b310 Oops, previous should not have been committed. 2000-06-20 13:56:43 +00:00
fvdl
6806083e5d Free buffer used in xdrmem_create. 2000-06-20 13:55:11 +00:00
thorpej
e7d6b96938 Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so.  Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.
2000-06-20 06:00:24 +00:00
hubertf
25ad63a22f Tell people how to make the system re-read this file after changing it
Fixes PR 10398 by John Refling <refling@comet.lbl.gov>.
2000-06-20 00:54:04 +00:00
fvdl
95e20d99e4 Don't try to push v6 addresses into the kernel when they're not supported. 2000-06-19 23:44:16 +00:00
hubertf
65162fd077 be sure to set pkgdbp to NULL after closing the db. 2000-06-19 13:28:06 +00:00
hubertf
f9aaf0a4e5 Allocate space & copy a string returned by a function that'll clobber it on
next call.
2000-06-19 00:55:11 +00:00
mrg
e1f4b1c95e use ${MAKE} not make 2000-06-18 10:11:25 +00:00
hubertf
74056630be remove stale debugging code 2000-06-18 01:31:23 +00:00
hubertf
e5b91ee82e * shuffle variable names in findbestmatchingname_fn() around
a bit, to make them more descriptive
 * in findbestmatchingname_fn, fix a bug where a null pointer wasn't
   caught (I wonder why we didn't actually hit that case...)
 * Bugfix in findbestmatchingname_fn: when comparing, strip off any
   trailing ".tgz", as this will give wrong results. "1.9.8.tgz" was
   found to be greater than "1.9.8.1".
2000-06-18 01:29:30 +00:00
hubertf
7aed2e5cfb use /var/tmp consistently. (XXX need to re-visit if we ever
put pkg_add on a install floppy)
2000-06-18 01:29:17 +00:00
tron
1b5dabcf75 Update prototype for "extract_plist()". 2000-06-17 11:30:49 +00:00
thorpej
fa7f67b26e Fixup Heimdal Kerberos usr.sbin bits. 2000-06-17 00:04:36 +00:00
thorpej
4863d0af58 Import Heimdal Kerberos 5 usr.sbin bits, from cryptosrc-intl. 2000-06-16 23:59:32 +00:00
sjg
7bd1e30c61 extract_plist() should inform caller when it aborts extract 2000-06-16 23:49:17 +00:00
sjg
cc95d19ae1 avoid possible overflow of exit status 2000-06-16 23:48:23 +00:00
hannken
a2c3edb415 Fix bad registration of mountd/tcp/v3 on port of mountd/udp/v3. 2000-06-16 11:34:55 +00:00
cgd
db755e7c76 sweep of my licenses (userland files w/o only my copyright) for
consistency.  (no functional changes)
2000-06-14 17:24:02 +00:00
itojun
80a16c051d typo 2000-06-14 16:06:43 +00:00
itojun
59996dbc2b clarify tcp4/tcp6 interaction. 2000-06-14 15:57:26 +00:00
tron
a3b6375d9a Add comment to prevent further bogus commits. 2000-06-14 11:15:58 +00:00
explorer
7dca1ce955 Ok, back out previous change. It seems wrong that 'rm -rf /usr/include/*' doesn't DTRT... 2000-06-14 06:54:20 +00:00
cgd
d220ca5ba3 fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well.  No functional changes.
2000-06-14 06:48:47 +00:00
explorer
4d23eb7241 Use %lu since BOOTPARAMVERS is defined as ((u_long)1) 2000-06-14 06:27:25 +00:00
perseant
37318e5a65 Assorted changes/fixes to dumplfs:
Add flags "-b" and "-I" to dumplfs, to allow the user to specify the
location of the superblock and Ifile inode, respectively.

Don't print "corrupt segment header" any more for leftover slivers of
space too close to the next segment to write a partial-segment.  In the
event that there was no such sliver, the segment still ends; recognize
this and print out the segment number, and superblock if asked.

Document all the flags in the man page.

Print the partial-segment write flags (SS_DIROP, SS_CONT).

Make the "-a" flag output look slightly better.

Change all hex numbers to lowercase, instead of having some upper and
some lower.
2000-06-14 01:55:37 +00:00
mellon
5ec30b76db Fix a paste-o (thanks to Frederick Bruckman for investigating this) 2000-06-13 15:39:07 +00:00
mellon
45362f7ad8 Register the host type. 2000-06-13 15:37:16 +00:00
itojun
11a42bf1f4 move setkey(8) from usr.sbin to sbin, to enable us to initialize
IPsec manual key before /usr mount..
(based on "don't use cvsmove" discussion i have seen, I did not use cvsmove)
2000-06-13 15:15:21 +00:00
itojun
f271a2cc0d do not install /usr/sbin/scriptdump, a helper perl script for setkey(8).
makes no sense when we have no perl in base system.
2000-06-13 05:35:45 +00:00
itojun
1a658c5964 avoid memory leak and duplicated free. 2000-06-13 01:08:43 +00:00
veego
af650398d9 Reverse the order for bsd.subdir.mk and bsd.prog.mk. 2000-06-12 21:32:25 +00:00
mellon
3664f335db - In parse_host_declaration, check for boolean status from clone_group,
not isc_result_t.
2000-06-12 19:48:46 +00:00
mellon
651c0b2dc2 Pass interface name required by format to log_fatal. 2000-06-12 18:57:43 +00:00
mellon
eba9d5379d Fix a core dump caused by an uninitialized pointer. 2000-06-12 17:43:26 +00:00
itojun
5a2c8d59e9 print source address of query. support -f (skip first N hops).
do not choke on unexpected ND messages.
2000-06-12 16:31:52 +00:00
itojun
9dea945457 nroff nit for SYNOPSIS section. should we translate it to mdoc format? 2000-06-12 16:26:13 +00:00
itojun
dbfdf59395 mountd(8) supports scoped IPv6 address properly (exports(5) requires
scope identifier).  remove mention in BUGS section and add note on
scope identifier.
2000-06-12 15:40:35 +00:00
simonb
bde324b68f Fix a couple of problems:
+ Make depend required all the source files to be built before
   the dependencies were generated due to some sub-optimal logic
   in the version generation.
   Fix from Bernd Ernesti in private mail.
 + Make the version string contain ${PROG} as originally intended
   and not "ntpd" for all 7 programs.

Also move version generation to Makefile.inc to stop having 7 copies
of exactly the same thing.
2000-06-12 13:57:38 +00:00
veego
0f5588e203 Make it possible to use obj dirs for the 'make tests' in the test subdir. 2000-06-12 13:35:49 +00:00
assar
7655c3a8f9 update list of ufs inode, nfs inode flags and tty disciplines to
reality.  also sort them in the obvious order.
2000-06-12 13:30:03 +00:00
veego
f517f20387 Add the regress tests for n5, n6 and n7. 2000-06-12 10:45:32 +00:00
itojun
92e64a4a0d sync with almost-latest KAME IPsec. full changelog would be too big
to mention here.  notable changes are like below.

kernel:
- make PF_KEY kernel interface more robust against broken input stream.
  it includes complete internal structure change in sys/netkey/key.c.
- remove non-RFC compliant change in PF_KEY API, in particular,
  in struct sadb_msg.  we cannot just change these standard structs.
  sadb_x_sa2 is introduced instead.
- remove prototypes for pfkey_xx functions from /usr/include/net/pfkeyv2.h.
  these functions are not supplied in /usr/lib.

setkey(8):
- get/delete does not require "-m mode" (ignored with warning, if you
  specify it)
- spddelete takes direction specification
2000-06-12 10:40:37 +00:00
mycroft
45d698dd33 Make the rpcsvc dependencies work a bit better. 2000-06-12 01:57:25 +00:00
mellon
cc4d3c7a56 Differentiate the version number. 2000-06-10 18:52:45 +00:00
mellon
ce18212259 Fix up some failover dependencies 2000-06-10 18:31:11 +00:00
mellon
3eff691939 Update makefiles and remove removed files. 2000-06-10 18:29:27 +00:00
mellon
582a2367ec Fix conflicts in merge. 2000-06-10 18:17:18 +00:00
mellon
a32e54aef9 Belated import of recent DHCP core dumps, etc. Approved by releng. 2000-06-10 18:04:36 +00:00
itojun
20b4e05ffe check scope id when we compare two AF_INET6 sockaddrs.
XXX still not sure if it is enough, so I do not remove warning from
documentation yet.
2000-06-10 08:01:07 +00:00
itojun
1ba6c2716a support IPv6 addresses start with hex digit or colon (like ::1).
in manpages, warn that scoped IPv6 addresses are not supported.
2000-06-10 07:04:13 +00:00
itojun
b2ffcc0e07 IPv6 support for sunrpc. from tcpdump.org. 2000-06-10 05:39:16 +00:00
itojun
68706c1c57 support NFS over IPv6. from tcpdump.org 2000-06-10 05:27:27 +00:00
itojun
739ca10641 bark if too-big-masklen on "-network prefix/masklen". 2000-06-10 04:40:17 +00:00
cgd
82990223e4 typo 2000-06-09 18:51:47 +00:00
fvdl
7704425071 Convert to tirpc interface, and to be af-independent. 2000-06-09 14:00:52 +00:00
bouyer
491268e2d5 Always copy pointer returned by db->get or db->seq before using, to avoid
alignements issues.
While doing this I found a bug in reset_host(), notifyReqd was set to
the wrong pointer.
2000-06-09 09:57:29 +00:00
cgd
c026189f76 do that previous differently. only allow redefinitions if: in different
file, make command specified, and no flags or attrs-which-cause-inclusion
are spec'd.  The notion is, if you change either of the last 2, it will
probably have very undesirable results, so only allow the make command to
be changed.  override by clobbering the make command in the previous entry.
also, fix a bug where line number of original entry would get clobbered on
dup entry, so that if you had multiple dups the later ones would get bogus
initial definition info.
2000-06-09 05:06:12 +00:00
fvdl
2a2d6dd2fc Update to use ti-rpc interface. Add -6 flag for IPv6 usage. This flag
will not cause an error if IPv6 is not available, so that things work
on v4 only kernels.
2000-06-09 00:05:02 +00:00
fvdl
65c642a530 Make address handling in mountd more generic, to allow IPv6 mounting.
Add IPv6 example to exports manpage. Allow /prefix notation for
networks.
2000-06-09 00:03:31 +00:00
eeh
e5cf411171 Allow MD files files to override settings in MI files files. (From Chris Torek). 2000-06-08 21:22:55 +00:00
dan
03facbbdb8 back out previous. I tried hard to make sure that i had up to date
rpcgen and headers so that I didn't do something stupid, but somehow
I still did something stupid.
2000-06-08 12:00:46 +00:00
dan
4891c17d26 tidy up a warning - format specifier for a u_long parameter 2000-06-08 11:40:32 +00:00
fvdl
4810a01fcf Ok.. really get it right this time (that's ntohs, not htons.. need coffee). 2000-06-08 09:01:05 +00:00
fvdl
da693d7595 Fix botched reserved port check for the -L option case. From
IWAMOTO Toshihiro <iwamoto@sat.t.u-tokyo.ac.jp>, PR 10321

Use IPV6PORT_RESERVED in the INET6 case, for consistency.
2000-06-08 08:21:42 +00:00
hubertf
2b57637552 ftp(1)'s "ls" now lists files/dirs plus attributes (much like "dir" did
before). Use "nlist" to still get filenames only.
Needed to expand wildcards.
2000-06-08 00:26:48 +00:00
bouyer
227ed98327 Implement file locking in lockd. All the stuff is done in userland, using
fhopen() and flock(). This means that if you kill lockd, all locks will
be relased (but you're supposed to kill statd at the same time, so
remote hosts will know it and re-establish the lock).
Tested against solaris 2.7 and linux 2.2.14 clients.
Shared lock are not handled efficiently, they're serialised in lockd when they
could be granted.
2000-06-07 14:34:40 +00:00
hubertf
29efdd4919 save another call to allocate space on the stack for something that's
definitely going to end up there.
2000-06-07 03:17:10 +00:00
hubertf
6fa913c454 Don't use asprintf() which isn't available on NetBSD 1.3.2. 2000-06-07 02:10:28 +00:00
bouyer
ff01cf4808 Solaris hosts with multiple names (e.g. short & fqdn) sends notification
with both names. So log the "Unsolicited notification" with LOG_DEBUG
instead of LOG_ERR.
Don't return failure if we received a notification for which the host is
unknown, or we don't have outstanding requests. The remote host will retry
forever otherwise.
2000-06-06 18:19:56 +00:00
bouyer
e85966b43e db->seq() returns 0 for success and 1 for failure, not the opposite.
walk_db() was silently failing because of this.
2000-06-06 18:17:07 +00:00
cjs
d0814a7d34 Revert last change; one needs a new rpcgen and has to do a bit of other
magic described in current-users by fvdl.
2000-06-06 02:18:05 +00:00
cjs
a5b96ca6ad BOOTPARAMVERS is apparently a long, so use %lu rather than %u to print it. 2000-06-06 01:40:19 +00:00
mycroft
0047d53157 Get rid of the stupid hack that makes this lose when ${CC} is more than one word. 2000-06-05 17:41:19 +00:00
veego
dc3bf4930d Back out the last commit. It seems that your includes are out of date. 2000-06-04 13:49:21 +00:00
fvdl
8ff5b7bdd6 Host access checking for a local socket makes no sense. 2000-06-04 12:06:44 +00:00
thorpej
b6219f383c Need <string.h> for LP64 systems. 2000-06-04 04:51:50 +00:00
perry
f47416ac02 BOOTPARAMVERS is an unsigned long now, it seems 2000-06-04 03:49:49 +00:00
thorpej
ae67003975 Need to include <sys/sched.h> to get cp_time-related constants. 2000-06-03 21:00:42 +00:00
fvdl
07af740946 The interal SVCXPRT field xp_sock was used, but this is now xp_fd. 2000-06-03 14:33:18 +00:00
fvdl
643a284d5b Fix printf argument mismatch for version number. 2000-06-03 14:25:20 +00:00
fvdl
548ea61860 Fix last arg to clnt_broadcast. 2000-06-03 14:20:49 +00:00
fvdl
3e07f160dc Remove portmap, add rpcbind. 2000-06-03 00:52:22 +00:00
fvdl
35d98921a7 Reflect changed Unix domain socket name. 2000-06-03 00:51:27 +00:00
fvdl
add1c74187 This file was omitted in the original commit. 2000-06-03 00:47:21 +00:00
fvdl
2db4d2fdfe Modify to support RPC over IPv6. 2000-06-02 23:17:55 +00:00
fvdl
6b395c99f1 portmap(8) has been replaced by rpcbind(8). 2000-06-02 23:16:39 +00:00
fvdl
d687de29c6 rpcbind, the successor to portmap. Taken from Sun TI-RPC source code,
then modified. This still contains some ugly special casing for
procedures in the security section, but I haven't found a nicer way
so far.
2000-06-02 23:15:41 +00:00
enami
dc0efa126e Just remove the first word so that rcmd.c compiles even if the command line
contains same substrings with the name of compiler.
2000-05-31 07:34:45 +00:00
itojun
5599a3d879 sync with latest kame code. a bug with malloc() size (that can lead to
SEGV) is corrected.
2000-05-31 03:18:02 +00:00
jwise
906d507584 Document new -p flag 2000-05-30 15:33:19 +00:00
jwise
21a51a33f7 Fix a hole in the portmap libwrap access control: programs on a host which
had been granted access to the portmapper via hosts.{allow,deny} could use
PMAPPROC_CALLIT to call PMAPPROC_{SET,UNSET} to (un)register services as if
they were running on the local host.

The new code disallows all indirect calls to the portmapper except for
PMAPPROC_NULL unless the -i (insecure) flag has been specified.

While there, add a new flag, -p (paranoid) which also disallows indirect calls
to a small number of other services, including key parts of NFS and NIS.  This
code hardcodes the services to be disallowed, and is thus somewhat of a hack,
but will serve for the time being (until portmap is replaced by rpcbind as part
of fvdl's current rpc work, due to happen before 1.5).

Problem pointed out by Frank van der Linden <fvdl@netbsd.org>, solution determined
in discussion with Frank van der Linden and with Bill Sommerfeld <sommerfeld@netbsd.org>.
Some inspiration drawn from the (less general) handling of this problem in Wietse
Venema's libwrap'ed portmap.
2000-05-30 15:31:14 +00:00
itojun
ed26506c25 usr.sbin/lpr/lpd now compiles lib/libc/net/rcmd.c on its own, to avoid
use of non-exported function __ivaliduser{,_sa}().

we cannot make __ivaliduser{,_sa}() static yet, since doing that would choke
compiled lpd binaries.  we should do it on next libc major version bump.
added a memo on lib/libc/shlib_version.
2000-05-30 01:07:43 +00:00
jdolecek
28324fdada avoid using removelist()/renamelist()
while here, do some whitespace/const cleanup, convert to use addentry(),
  g/c section[] (now uses buf[] directly) - 10 character limit for section
  name is gone
2000-05-29 21:05:34 +00:00
simonb
f28c3652ea Use " %2.0f" instead of "%3.0f" to print out the CPU percentages - this
way 100 in a column doesn't merge into the previous column.
2000-05-29 11:33:43 +00:00
matt
a3ab2a3d02 Add/fix FDDI support for NetBSD (& Tru64). [Tru64 has at least one bug left] 2000-05-28 01:27:52 +00:00
matt
a8adcb322c Don't let an llc be dumped twice. 2000-05-28 01:25:20 +00:00
kleink
12164ce45f Formatting fixes. 2000-05-27 10:42:25 +00:00
kleink
fd66188706 Use CPPFLAGS where appropriate. 2000-05-25 12:49:32 +00:00
itojun
e459e7617b sync with latest kame.
- decrease warning level on missing rtadvd.conf (actually, the file
  can be omitted)
- strict prototype
- gather stats better, emit stats on SIGUSR1 to /var/run
2000-05-23 11:37:58 +00:00
enami
7c396cad70 When we steal an argument, just bump optind instead of copying
rest of argument vector.
2000-05-23 09:04:33 +00:00
itojun
53ca7ef6f5 correct physical address printing on non-IPv6 kernel.
(just in case people uses gif interface on non-IPv6 kernel...)
2000-05-22 03:06:46 +00:00
ragge
7c0a82f745 Don't die, just complain if the converted image do not have a VAX MID. 2000-05-20 10:58:05 +00:00
itojun
8912746994 update IPv6 MLD API to new one. various corrections including
timeout processing, node-local/link-local handling (ignore them),
and more.  (sync with kame)
nroff fixes to manpage.
2000-05-19 10:43:36 +00:00
itojun
c3b1168f43 more correct advert for global address on p2p.
avoid reusing upper bits of rtm_flags.  (sync with kame)
2000-05-18 13:23:43 +00:00