Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix a typo, decrement rem, don't increment for single digit hex bytes. | millert | 2016-12-07 | 1 | -2/+2 | |
| | | | | From Henri Kemppainen | |||||
* | CVE-2016-6559: fix potential buffer overflow(s) in link_ntoa(3). | millert | 2016-12-06 | 1 | -19/+35 | |
| | | | | | | | A specially crafted struct sockaddr_dl argument can trigger a stack overflow of a static buffer in libc. An attacker may be able to use this to write to arbitrary locations in the data segment. From FreeBSD (glebius); OK deraadt@ mestre@ | |||||
* | Delete casts to off_t and size_t that are implied by assignments | guenther | 2016-09-21 | 4 | -11/+10 | |
| | | | | | | | or prototypes. Ditto for some of the char* and void* casts too. verified no change to instructions on ILP32 (i386) and LP64 (amd64) ok natano@ abluhm@ deraadt@ millert@ | |||||
* | Obvious minor fixes: | schwarze | 2016-08-05 | 2 | -36/+57 | |
| | | | | | | | | * Add missing .Dv, .Ev, and .Fa macros. * Delete deprecated .Tn macros. * Mark up global variable names with .Va, not with .Fa or .Li. * Mark up config file commands with .Ic, not with .Fa. * Fix HISTORY, trivial to verify from the CSRG archive CD. | |||||
* | Make RES_OPTIONS point directly to resolv.conf(5) instead of going through | martijn | 2016-08-05 | 1 | -3/+3 | |
| | | | | | | resolver(3). OK jmc@ | |||||
* | Prefer AF_* over PF_* and 'address family' over 'protocol family' | guenther | 2016-05-29 | 1 | -9/+9 | |
| | | | | ok jung@ | |||||
* | rcmd(3) and rcmdsh(3) use getaddrinfo(3) not gethostbyname(3). | millert | 2016-05-28 | 2 | -9/+9 | |
| | ||||||
* | Use getaddrinfo() instead of the non-standard gethostbyname2(). | millert | 2016-05-28 | 1 | -5/+14 | |
| | | | | OK deraadt@ jca@ jung@ florian@ | |||||
* | Remove iruserok(_sa)? and __ivaliduser(sa)? | guenther | 2016-05-23 | 2 | -90/+20 | |
| | | | | ok millert@ deraadt@ | |||||
* | Eliminate __check_rhosts_file and __rcmd_errstr: they were only used by | guenther | 2016-05-23 | 1 | -5/+1 | |
| | | | | | | rlogind and rshd (remember them?) ok deraadt@ | |||||
* | Remove old NeXT-specific cruft. From mmcc@ | millert | 2016-05-01 | 1 | -13/+1 | |
| | ||||||
* | Prefer _MUTEX_*LOCK over _THREAD_PRIVATE_MUTEX_*LOCK() when thread-specific | guenther | 2016-04-05 | 1 | -4/+4 | |
| | | | | | | data isn't necessary. ok mpi@, ok&tweak natano@ | |||||
* | for some time now mandoc has not required MLINKS to function | jmc | 2016-03-30 | 1 | -54/+1 | |
| | | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung | |||||
* | un-vax; | jmc | 2016-03-10 | 1 | -3/+3 | |
| | ||||||
* | Remove NULL-checks before free() and a few related dead assignments. | mmcc | 2015-12-28 | 1 | -3/+2 | |
| | | | | ok and valuable input from millert@ | |||||
* | gethostbyname2() and gethostbyaddr() need <sys/socket.h>; discussed with | tim | 2015-12-19 | 1 | -6/+8 | |
| | | | | millert@ | |||||
* | tweak previous; | jmc | 2015-12-16 | 2 | -4/+5 | |
| | ||||||
* | Remove support for HOSTALIASES from the resolver. This "open and parse | deraadt | 2015-12-16 | 2 | -15/+6 | |
| | | | | | | | | any file indicated by an environment variable" feature inside the resolver is incompatible with what pledge "dns" is trying to be. It is a misguided "feature" added way back in history which almost noone uses, but everyone has to assume the risk from. ok eric florian kettenis | |||||
* | s/begining/beginning/g | mmcc | 2015-12-14 | 1 | -2/+2 | |
| | ||||||
* | syslog() here is pointless; ok millert | deraadt | 2015-11-25 | 1 | -2/+0 | |
| | ||||||
* | Use reentrant versions of getpw{nam,uid} and getgr{nam,gid} within | millert | 2015-11-24 | 2 | -7/+10 | |
| | | | | | | | libc to avoid reusing the static buffers returned by the non-reentrant versions. Since this is inside libc we can use constants for the buffer sizes instead of having to call sysconf(). OK guenther@ deraadt@ | |||||
* | point to netintro(4) rather than (now removed) networking(4); | jmc | 2015-11-21 | 2 | -6/+6 | |
| | ||||||
* | update NAME section to include all documented functions, | jmc | 2015-11-10 | 4 | -12/+12 | |
| | | | | | | or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze | |||||
* | inet(4), not inet(3); | jmc | 2015-11-08 | 1 | -3/+3 | |
| | ||||||
* | delete old lint ARGSUSED comments | guenther | 2015-11-01 | 1 | -2/+1 | |
| | ||||||
* | Switch if_nameindex(3) to use the new NET_RT_IFNAMES sysctl to get the | claudio | 2015-10-23 | 3 | -88/+73 | |
| | | | | | | | | list of interface names. At the same time switch if_nametoindex(3) and if_indextoname(3) to use if_nameindex(3) instead of getifaddrs(3). if_nameindex(3) exposes much less then getifaddrs(3) and is allowed by pledge(2). With and OK deraadt@ | |||||
* | Use waitpid() instead of wait() to avoid returning early from another child | guenther | 2015-10-23 | 1 | -2/+3 | |
| | | | | | | exiting, and loop the waitpid() on EINTR ok deraadt@ millert@ | |||||
* | Cast ctype function arguments to unsigned char. | mmcc | 2015-10-22 | 1 | -2/+2 | |
| | | | | ok guenther@ | |||||
* | Wrap <resolv.h> so that internal calls go direct | guenther | 2015-10-05 | 3 | -5/+11 | |
| | | | | ok millert@ | |||||
* | wrap __ivaliduser_sa() so the internal call is direct (at least until we | guenther | 2015-10-04 | 1 | -0/+2 | |
| | | | | stop exporting it) | |||||
* | recv() and send() aren't overriden by libpthread (vs recvfrom() and sendto()!) | guenther | 2015-10-04 | 2 | -2/+4 | |
| | | | | so wrap them to make internal calls go direct | |||||
* | Wrap <ifaddrs.h>, <netinet/in.h>, and <netinet/if_ether.h> so internal | guenther | 2015-09-14 | 3 | -3/+7 | |
| | | | | calls go direct and all the symbols are weak | |||||
* | Wrap <net/if.h> and <net/if_dl.h> so internal calls go direct and all the | guenther | 2015-09-14 | 2 | -2/+4 | |
| | | | | symbols are weak | |||||
* | Finish wrapping <netdb.h> so that calls go direct and the symbols are all weak | guenther | 2015-09-14 | 9 | -9/+24 | |
| | ||||||
* | Wrap <arpa/inet.h> and <arpa/nameser.h> so that calls go direct and the | guenther | 2015-09-13 | 5 | -5/+11 | |
| | | | | symbols without underbar prefix are all weak | |||||
* | Wrap <unistd.h> so that internal calls go direct and they're all weak symbols | guenther | 2015-09-12 | 4 | -2/+6 | |
| | | | | Delete unused 'fd' argument from internal function oldttyname() | |||||
* | _getnetbyaddr and _getnetbyname appear to be historical accidents in | deraadt | 2015-09-11 | 3 | -103/+2 | |
| | | | | our tree. ok guenther miod | |||||
* | tweak Nd after previous; ok mpi | jmc | 2015-09-10 | 1 | -2/+2 | |
| | ||||||
* | Remove link_addr(3). A function to encode the name of an interface in | mpi | 2015-09-10 | 3 | -136/+8 | |
| | | | | | | | | | | | | a sockaddr_dl is a questionnable interface. But now it makes it harder to properly reference ifp becauses of this. Set sdl_index to the index of the corresponding interface when constructing a routing message. Ridding previous libc crank. ok guenther@, deraadt@, dlg@ | |||||
* | Use nanosleep instead of sleep to avoid the extra layer and simplify later | guenther | 2015-08-30 | 1 | -5/+8 | |
| | | | | | | symbol hiding ok w/tweak deraadt@ | |||||
* | force reseeding if pid has changed. | eric | 2015-06-04 | 1 | -2/+7 | |
| | | | | ok deraadt@ | |||||
* | rev 1.3 introduced a check to an if statement without adding braces. | jsg | 2015-05-14 | 1 | -3/+1 | |
| | | | | | | | Claudio points out the size is checked by an earlier test so just remove it to restore the original handling of the partial octet case. Discussed with claudio and gilles. | |||||
* | Make rcmdsh(3) not fail if it is passed a non resolvable hostname. | halex | 2015-03-23 | 3 | -20/+16 | |
| | | | | | | | Instead, silently ignore the fact and instead let the underlying ssh (or $RSH) command handle it. ok millert@ | |||||
* | differentiate between a failed read, returning -1, and encountering | halex | 2015-03-22 | 1 | -2/+4 | |
| | | | | | | | end-of-file, returning 0, in order not to print an unrelated strerror(errno) in the latter case ok millert@ | |||||
* | unmute rcmd hostname lookup failure | halex | 2015-03-22 | 1 | -3/+2 | |
| | | | | ok millert@ jung@ | |||||
* | zap #if 0'd code that's been dead since '96 | halex | 2015-03-19 | 1 | -7/+0 | |
| | | | | ok todd@ | |||||
* | Amend documentation for AI_ADDRCONFIG | jca | 2015-02-16 | 1 | -2/+4 | |
| | | | | ok jmc@ | |||||
* | Use .Rv where appropriate, and move it to RETURN VALUES; | schwarze | 2015-01-29 | 1 | -9/+6 | |
| | | | | | remove .Tn, and a few minor macro adjustments. Patch from Kaspars at Bankovskis dot net. | |||||
* | Use ">", not ">=" when comparing length to HOST_NAME_MAX since | millert | 2015-01-16 | 1 | -3/+3 | |
| | | | | | otherwise we end up needlessly replacing a NUL with a NUL. OK deraadt@ | |||||
* | Replace HOST_NAME_MAX+1-1 with HOST_NAME_MAX. OK deraad@ | millert | 2015-01-16 | 2 | -8/+8 | |
| |