christos
67c3cbddeb
Use get*_r re-entrant functions and get rid of end*ent(). From John Nemeth.
2005-09-24 14:26:12 +00:00
lukem
a767f5ec9c
getpw*_r() may return 0 and set pwd==NULL
2005-04-19 03:38:08 +00:00
christos
c4402ab05e
Use getpwnam_r; from John Nemeth
2005-04-10 08:05:40 +00:00
lukem
7157011597
Only compile in IPv6 support if ${USE_INET6} != "no"
...
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00
jrf
190b2e4c51
Replaced strncpy with strlcpy. Thanks to Peter Postma who
...
pointed them our in PR #25762 . Approved by christos@NetBSD.org .
2004-09-07 13:20:39 +00:00
agc
b2b49933f4
Move Matt Green's code from a 4-clause to a 3-clause licence by removing
...
the advertising clause. Diffs provided in PR 22396 by Joel Baker, the changes
were confirmed to the board by Matt Green.
2003-10-13 14:22:20 +00:00
wiz
47190e80b8
Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'.
...
From jmc@openbsd.
2003-09-07 16:22:20 +00:00
itojun
74a8711692
protect from nasty PTR records which could be abused to workaround access
...
control:
1.1.1.10.in-addr.arpa. IN PTR 2.3.4.5
2003-05-26 10:05:07 +00:00
thorpej
40e1466e08
Only fill in the server and client sockaddr in the request if
...
the fields are NULL.
2003-03-30 00:32:52 +00:00
lukem
0beaa38406
If we're going to replace strtok() with strtok_r(), and the caller of the
...
latter is invoked recursively, use static (instead of automatic) storage
for the "last" pointer so that we remember where we're up to ...
Fixes bug with hosts.deny rules such as "rpcbind: ALL EXCEPT some.domain".
2002-12-26 12:53:59 +00:00
jdolecek
66f1feaba3
avoid endless loop in xgets() when line in host access conf file is longer
...
than BUFSIZ
fixes PR lib/15025 by Trevin Beattie
2002-12-02 22:08:44 +00:00
wiz
4f92a4853d
New sentence, new line. From Robert Elz.
2002-10-01 19:38:46 +00:00
mjl
c455730141
Correct #ifdef'ed out usage of memset
2002-07-20 14:18:45 +00:00
itojun
211e500c75
use strtok_r, as strtok can interfere with other callers. from openbsd
2002-06-22 11:52:40 +00:00
itojun
d2503f643b
type mismatch
2002-06-07 01:39:07 +00:00
itojun
44772e4b2f
there are people using #ifdef APPEND_DOT. recover it.
2002-06-07 01:36:09 +00:00
itojun
8288fc93ab
s/STRN_CPY/strlcpy/
2002-06-06 21:45:19 +00:00
itojun
3ba1803eb3
correct misuse of strncpy (use strlcpy). from openbsd
2002-06-06 21:42:42 +00:00
itojun
2f7d82e63d
support scoped IPv6 address properly. PR 16810.
2002-06-06 21:28:49 +00:00
itojun
5ab78ccf04
be more picky about IP option. len >= 2 for normal options.
2002-05-24 06:05:31 +00:00
itojun
2ef04ff634
cleanup some of portability #ifdefs, which are not needed for netbsd.
2002-05-24 05:38:19 +00:00
itojun
5faa38589c
be more picky about malformed IP options.
2002-05-24 05:30:54 +00:00
atatat
43fa832908
Clean out "dirty" to avoid spurious log entries.
2002-04-24 16:37:08 +00:00
atatat
ae10ef9a4b
Log a warning if the address (n) has more significant bits than the
...
netmask (m) in a entry of the form "n.n.n.n/m.m.m.m".
2002-04-04 19:50:27 +00:00
thorpej
9c33b55e7c
Split the notion of building Hesiod, Kerberos, S/key, and YP
...
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 18:10:19 +00:00
wiz
d70fe2e86c
Fix error message, as reported in lib/15711 by Onno van der Linden.
2002-02-23 23:28:31 +00:00
wiz
d5bbc54aba
Use correct comment macro.
2002-02-20 11:33:25 +00:00
ross
dc5571b22e
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:21:55 +00:00
wiz
bed5b7e260
Whitespace nit.
2002-01-15 02:53:28 +00:00
lukem
2e5ff91d16
WARNS=2 fixes
2001-11-05 15:05:18 +00:00
atatat
349f0e356b
Rearrange the way syslog() is used. Some messages include %m which
...
syslog understands, but vsnprintf() does not.
2001-09-24 17:55:47 +00:00
itojun
999357cb7d
new tcp_wrapper license, as deraadt@openbsd negotiated with wietse
...
and presented in ftp://ftp.porcupine.org/pub/security/tcp_wrappers_license.
(details: see openbsd changelog for libexec/tcpd/DISCLAIMER).
2001-06-02 05:20:56 +00:00
kleink
530e81b761
Wrap external declarations inside __{BEGIN,END}_DECLS; fixes PR lib/12458
...
by Dan McMahill.
2001-03-27 22:46:55 +00:00
itojun
d65f44a1a5
correct typecast mistake.
...
http://www.openbsd.org/errata.html#libwrap
2001-02-27 04:13:13 +00:00
sommerfeld
8aefd97377
Format string audit cleanup (increase format checking)
2000-10-04 16:24:49 +00:00
itojun
dbc196be0d
fatal typo. From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
2000-07-26 14:59:06 +00:00
itohy
9bdf22f648
Correct ctype(3) usage, just in case....
2000-07-14 05:26:04 +00:00
billc
cbfdcd8cc0
backout previous changes.
2000-04-02 06:31:58 +00:00
billc
38a39a9ac0
namespace collision with getopt change (struct option -> libwrap_option)
2000-04-02 03:53:15 +00:00
danw
ff856525f8
#include <stdio.h> to cover the use of "FILE *" in one of the prototypes.
...
(The stock tcpd.h doesn't have prototypes, and some third-party code assumes
it can include tcpd.h without stdio.h.)
2000-02-05 19:14:57 +00:00
mycroft
f5d7100e26
Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
...
the correct definition from errno.h.
2000-01-21 17:08:33 +00:00
itojun
751ba94d99
fix behavior for configuration like "ALL: 127.".
...
From: Mason Loring Bliss <mason@acheron.middleboro.ma.us>
1999-09-10 08:59:47 +00:00
itojun
1e8c736a70
Apply IPv6 support patch.
...
Note that all IPv6 address must be wrapped with square bracket, like:
ALL: [::1/128] 127.0.0.1/255.255.255.255
Increase shlib minor.
ftp://ftp.kame.net/pub/kame/misc/tcp_wrappers-76-v6-19990831.diff.gz
1999-08-31 13:58:58 +00:00
itojun
2cd3c05799
increment shlib minor for libwrap (0.0 -> 0.1).
1999-08-27 16:24:01 +00:00
itojun
b98c263379
resolve conflicts on upgrade (to 7.6).
1999-08-27 16:06:17 +00:00
bouyer
d363ff990d
Xref hosts_access(3).
1999-08-02 16:09:41 +00:00
simonb
10b4ca41b4
Revert white space changes for imported sources.
1999-07-03 12:30:16 +00:00
simonb
3f777e28cc
More trailing white space.
1999-07-02 15:58:35 +00:00
christos
63c771b7c0
Allow passing NULL for check only.
1999-05-09 16:07:56 +00:00
christos
8c92070a91
don't use inet_addr, use inet_aton... Otherwise masks of 255.255.255.255
...
don't work, so we cannot restrict rules to a single host.
1999-05-09 16:03:10 +00:00