Commit Graph

92 Commits

Author SHA1 Message Date
abrown d8fd3320e5 Prevent buffer overflow (and thus return of bogus data) when a DNS record
has more than MAXADDRS "A" records for a host.

Patch from Paul A. Vixie <paul@vix.com>, slightly modified to fit in with
NetBSD debug framework.
1997-01-31 00:05:59 +00:00
mrg 9cd5492c02 - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
1997-01-23 14:01:45 +00:00
mikel 7e68ce85de inet_makeaddr() takes unsigned long, not int, arguments; fixes PR lib/2385. 1997-01-22 07:57:19 +00:00
mikel 486b24efe4 explicitly type ether_{hostton,ntohost,line}(). all return int. 1997-01-17 08:23:26 +00:00
veego b6257e9e67 iruserok fails to open a ~/.rhosts file if you have a directory
above the home dir which is only group acessable:

directroy       owner   group   permission
/a              root    wheel   755
/a/b            root    b       750       <
/a/b/c          c       b       700
/a/b/c/.rhosts  c       b       600

add getegid and initgroups before and setegid behind fopen to fix this.
add <netgroup.h> for the prototype of innetgr.
1996-12-28 18:48:31 +00:00
cgd 5a39204a94 _gethtbyname's arg should be const char *, not char * 1996-12-20 19:41:30 +00:00
thorpej 32c0c5ebb7 Don't pass a timeout of 0 to poll(2); block indefinitely, like the
pre-poll(2) aware implementation.
From enami tsugutomo <enami@ba2.so-net.or.jp>, PR #3043.
1996-12-18 04:53:11 +00:00
mrg f5e4cc118e use poll() instead of select() 1996-12-17 03:35:52 +00:00
mikel 6965177949 Add iso_addr.3 to MAN. Fixes misc/2942. 1996-11-17 04:37:14 +00:00
lukem 5365ba0ce7 add 'const' qualifiers to various routines (as per the include prototypes
and the implementation)
1996-11-09 08:30:52 +00:00
lukem 5fe99da953 fix prototype for getservbyport, from babafou@ensta.fr [misc/2916],
and also add 'const' qualifiers
1996-11-09 08:30:22 +00:00
mrg 6450bba05b fix another bogon in last change; some changes derived from openbsd. 1996-10-18 00:10:18 +00:00
cgd 98a0fb0a16 fix a typo: take and cast a pointer to the argument, rather than trying
to cast the argument to a pointer.
1996-10-17 01:39:40 +00:00
mrg e6b86e3b9c fix bogon in last change. 1996-10-14 10:41:07 +00:00
christos 858f971050 in_addr_t and in_port_t changes 1996-10-13 04:08:34 +00:00
mrg 92390243e6 always update length; from vixie. 1996-10-08 04:09:58 +00:00
jtc 6d8b15101f Install linkaddr.3 as link_addr.3 and link_ntoa.3 too. 1996-07-10 20:15:48 +00:00
cgd 0351ca5efa Add some casts so that we're not bitten by type promotions on 64-bit
systems.  Not a great concern since the only 64-bit system currently
supported by NetBSD (Alpha) uses assembly versions of these routines.
1996-05-29 23:23:27 +00:00
mrg 343a54bb75 Change iuserok() to take u_int32_t. Some netgroup fixes (partially
from OpenBSD and Theo).
1996-05-28 02:07:32 +00:00
jtc 755230061e Added explicit return types to all functions in SYNOPSIS section.
Added documentation to hstrerror() function.
Added hstrerror MLINK.
1996-03-30 01:14:56 +00:00
hpeyerl acfb6aadb9 Fix inet addr parsing so no more than 4 octets are valid.
From Amy Baron (amee@remarque.berkeley.edu).  Fixes PR#2089. (BFPR)
1996-02-17 15:35:41 +00:00
mrg bf1bb3d725 re-apply patch from 2 revisions ago 1996-02-16 00:53:00 +00:00
mrg 237baea38a merge with the resolver in bind 4.9.3-P1. 1996-02-02 15:22:14 +00:00
ghudson 1ca8e01f30 Don't read the network address as an alias when there isn't whitespace
after the network address.  Closes PR 1940.
1996-01-14 05:02:41 +00:00
pk 70a905904f Remove call to abort() (from John Kohl; PR#1764). 1995-11-16 08:35:33 +00:00
mycroft c7ad9c47f1 Fill in sin_len. 1995-06-03 22:24:45 +00:00
mycroft 800709ce22 Use inet_aton(), not inet_addr(). 1995-05-21 15:50:45 +00:00
jtc 528957a005 Winning Strategies has placed this code into the Public Domain 1995-04-28 23:19:22 +00:00
chopps 09072f5bd9 include proper links to ethers.3 1995-03-02 09:09:07 +00:00
chopps 204556053e indicate const'ness of args. 1995-02-27 09:45:26 +00:00
cgd 4879d5dc50 don't forget to take address before deref'ing thru. from fvdl. 1995-02-27 01:03:47 +00:00
cgd c2ee3d850f mention the functions that need to be provided, instead of providing dflts. 1995-02-25 17:10:57 +00:00
cgd 83b55061cc oops; fix the cleanup. 1995-02-25 06:58:58 +00:00
cgd ef0582f1e7 clean up import. also convert everything to new Id format. 1995-02-25 06:20:26 +00:00
cgd 547fd46929 4.4-Lite lib/libc/net 1995-02-25 03:54:36 +00:00
cgd 32b5bdd221 use NetBSD rather than ID 1995-02-25 03:34:50 +00:00
cgd b42e80ba75 list the files needed on the alpha. 1995-02-10 17:46:48 +00:00
cgd ae9172d6cd specify man pages the new way. 1994-12-22 09:57:51 +00:00
cgd 510290ed54 make sure link for inet_aton is in alphabetical order in MLINKS. 1994-12-18 09:42:18 +00:00
christos 876c50bcb3 Added code to handle netgroups in user authorization. 1994-12-04 18:13:11 +00:00
dean a7d9360c57 Include files for pmax 1994-11-14 23:46:52 +00:00
deraadt 65609b558b another type change 1994-11-02 09:17:27 +00:00
deraadt 41614869d6 one more u_long -> u_int32_t change 1994-11-02 07:19:51 +00:00
glass 2999135c5d link inet.3 for inet_aton() 1994-10-31 06:53:48 +00:00
mycroft 0aeeefdc23 Fix typo in previous. 1994-10-28 17:59:47 +00:00
mycroft 6f553ba1a3 Properly document what iruserok(3) does. 1994-10-28 17:56:40 +00:00
cgd b7d1866d65 fix bug 535, reported by Brian Moore. 1994-10-28 17:30:22 +00:00
cgd bf8067b9da maybe they should actually... WORK! 1994-10-19 03:27:52 +00:00
cgd f546ad9c8a casts for happiness. 1994-10-19 03:21:15 +00:00
cgd f5e2eec480 get return type right. 1994-10-19 03:20:30 +00:00