Commit Graph

3870 Commits

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