Commit Graph

3632 Commits

Author SHA1 Message Date
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
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