Commit Graph

3604 Commits

Author SHA1 Message Date
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
bouyer 03397ae44d Mention that the max number of daemons is 20. 2000-05-18 09:54:59 +00:00
itojun afbba6424a correct use of last arg to getnameinfo() (s/flags/niflags/, typo) 2000-05-17 04:29:14 +00:00
agc 468671f5be Pick up the changes that make sense from OpenBSD
+ Use _PATH_GROUP and _PATH_MASTERPASSWD (from OpenBSD)
+ Use -G group1,group2,group3 for multiple groups in useradd and usermod
(pointed out by Matt Green, and also changed in OpenBSD, but done more
efficiently here)
+ is_number should not be inside #ifdef EXTENSIONS (from OpenBSD)
+ clear up yet another usage message (for user(8) and group(8)) - noticed
in passing, unknown if fixed anywhere else
2000-05-16 20:23:28 +00:00
hubertf 0948b6f2cb pkg_delete -r was done by Chris Hopps (I used the same code do implement
pkg_delete -R on that later on).
2000-05-16 16:38:15 +00:00
hubertf 7f040da3cd Don't remove any INSTALL scripts. Just in case someone needs them later
(e.g. to tar up the pkg again, and install it elsewhere).
2000-05-16 15:59:16 +00:00
itojun 019d9b540c correct p2p interface address handling.
avoid memory leak.
bzero() after malloc().
(sync from kame)
2000-05-16 14:04:32 +00:00
hubertf 5cb5e5143c Don't read +CONTENTS files if not needed. 2000-05-15 23:14:42 +00:00
itojun 005442ad58 typo. FreeBSD PR 18547. 2000-05-15 16:26:16 +00:00
itojun 0d8fdb3b47 bring in latest gifconfig(8) from kame. "delete" subcommand is now available.
add kernel support for gifconfig <if> delete.
2000-05-13 07:55:05 +00:00
itojun 2e33d275dc use LOG_WARNING for syslog output for address family mismatch.
suggested by: thorpej
2000-05-13 06:42:13 +00:00
thorpej 3a6d2f7276 Define the PXE DHCP option codes. 2000-05-13 04:00:48 +00:00
thorpej baa6042b06 Add placeholders for Preboot Execution Environment (PXE) options,
from version 2.1 of the PXE spec.
2000-05-13 03:44:51 +00:00
itojun 31eb929ec0 correct extremely unfriendly error message when the kernel does not
support the address family (like including "tcp6" in inetd.conf, on
non-IPv6 kernel).

was:
inetd[185]: ftp/tcp6: *: hostname nor servname provided, or not known
now:
inetd[315]: ftp/tcp6: *: the address family is not supported by the kernel
2000-05-13 02:56:47 +00:00
hubertf 8b8a982165 When expanding wildcards given on the command line, don't include
files (from /var/db/pkg). Only directories can contain pkgs.

Fixed PR 10083 by Dan McMahill <mcmahill@mtl.mit.edu>
2000-05-11 14:13:13 +00:00
simonb 12ed7d31b7 ntpd doesn't need to deal with CRYPTOPATH. 2000-05-11 01:09:27 +00:00
darrenr 571cb0a210 change the parsing of chown user[:gid] to the following:
1. if there is a colon present, use that as a separator for user:group

2. if there is no colon, attempt to convert the arg into a username,
   searching backwards in the string for a '.' for us.er.group

3. if the arg doesn't match a username and has a '.' in it, split it
   up and try user.group
2000-05-10 12:22:34 +00:00
enami 36069eacc0 - Use a tab instead of eight spaces for consistency and better output.
- Fix a typo.
2000-05-10 02:11:34 +00:00
bjh21 6c97e2bd78 Initial commit of arm26 port 2000-05-09 21:55:44 +00:00
agc 5290363261 Revert previous change, since maintenance across -current, pkgsrc and the
1.4 branch requires one set of sources.
2000-05-09 09:25:21 +00:00
hubertf 13afcc6b33 If maxusers is out of bounds, show the allowed bounts in the error msg. 2000-05-09 00:34:58 +00:00
hubertf d06e2d8e2e Add "lsall" and "lsbest" commands to pkg_admin, to find all/best
package matching a certain pattern. Examples:

            yui# cd /usr/pkgsrc/packages/i386ELF/All/
            yui# ls unzip*
            unzip-5.40.tgz  unzip-5.41.tgz
            yui# pkg_admin lsall 'unzip*'
            unzip-5.40.tgz
            unzip-5.41.tgz
            yui# pkg_admin lsall 'unzip>=5.40'
            unzip-5.40.tgz
            unzip-5.41.tgz
            yui# pkg_admin lsall 'unzip>=5.41'
            unzip-5.41.tgz
            yui# pkg_admin lsbest 'unzip>=5.40'
            unzip-5.41.tgz
            yui# pkg_admin lsall /usr/pkgsrc/packages/i386ELF/All/'{mit,unproven}-pthread*'
            /usr/pkgsrc/packages/i386ELF/All/mit-pthreads-1.60b6.tgz

This adds a shell/user-interface to pkg-patterns, which are a superset
of sh/csh patterns and can't be expanded by any shell.
2000-05-08 22:48:42 +00:00
matt 7a16f4991b fix an off by 1 error that prevents bootp from working. 2000-05-08 19:25:10 +00:00
hubertf b471b566f8 In require_delete(), actually use the expanded wildcard passed in via
@pkgdep.

Fixes PR 10056 by Dan McMahill <mcmahill@mtl.mit.edu>
2000-05-07 00:33:28 +00:00
he cbc0b13fa7 Revert away from automatically generating port_ipv6.h, and install
a static once-generated version instead.  We know we have IPv6
headers available here.

The probing was problematical for several reasons:
 o it probed the host headers, not the headers in the build or DESTDIR
   tree (could be fixed in another way)
 o the probe_ipv6 script mucks with PATH, which would be problematical
   for cross compilation.
2000-05-06 16:07:42 +00:00
hubertf 02820d32d6 Remove code for 1.4 backward compatibility (to be put into the package,
where it really belongs)
2000-05-05 01:27:47 +00:00
explorer a4563961cf when setting the key, don't dump interface stats too. 2000-05-04 21:19:12 +00:00
veego 7134832d9a Update for IP Filter 3.4.1 2000-05-03 11:40:53 +00:00
simonb 9c747bda1e Fix the <ieeefp.h> problem a different way - nothing actually uses the
contents of that header (the only file that includes it compiles to the
same object code on multiple architectures with or without including
<ieeefp.h>), so remove all references to it.

Fix sent to NTP maintainers - they will probably implement this change
after the immenient 4.1.0 release, but don't want to change it so close
to the release date.
2000-05-03 06:08:45 +00:00
matt 25845e87d4 There ain't no IEEE FP on a VAX. 2000-05-03 03:26:12 +00:00
simonb 6e1372a422 Remove xntp3 sources. 2000-05-02 12:50:50 +00:00
simonb 8632dc5bb6 Add ntp, remove xntp. 2000-05-02 12:14:40 +00:00
simonb 1bf404af94 Install html doco under HTMLDOCDIR/ntp. 2000-05-02 12:01:10 +00:00
perry 50966bd4a6 nuke BUILD_POSTFIX 2000-04-30 21:49:26 +00:00