Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mention that ibuf_free() does not need a NULL check. | 2015-12-29 | 1 | -2/+5 | |
| | |||||
* | check for NULL in ibuf_free(). | 2015-12-29 | 1 | -1/+3 | |
| | | | | | ok and slight improvement, mmcco@ ok semarie@ and encouragement tedu@ krw@ | ||||
* | Switch login(3) from lseek+read/write to pread/pwrite and only do the pread() | 2015-12-28 | 2 | -14/+15 | |
| | | | | | | | | if the data is needed. Use O_CLOEXEC on the internal fd as MT paranoia. Fix cast in offset calculation; delete register keyword; prefer memset() over bzero() ok millert@ | ||||
* | Add a cast to silence a compiler warning by clang on FreeBSD. | 2015-12-09 | 1 | -2/+2 | |
| | | | | | From Craig Rodrigues. ok tedu@ | ||||
* | Do not loop on EAGAIN in imsg_read(). Better to return the error to the | 2015-12-05 | 2 | -9/+7 | |
| | | | | | caller and let him do another poll loop. This fixes spinning relayd processes seen on busy TLS relays. OK benno@ henning@ | ||||
* | Remove three NULL-checks before free(). ok millert@ | 2015-11-27 | 3 | -11/+7 | |
| | |||||
* | Use the backchannel for all error messages instead of syslog(3). | 2015-11-26 | 1 | -16/+15 | |
| | | | | OK deraadt@ beck@ | ||||
* | creat() -> open equiv; from Frederic Nowak | 2015-11-11 | 1 | -2/+2 | |
| | |||||
* | update NAME section to include all documented functions, | 2015-11-10 | 1 | -3/+3 | |
| | | | | | | or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze | ||||
* | Don't Xr flock, since that is not the locking method used. | 2015-10-15 | 1 | -3/+2 | |
| | | | | ok millert | ||||
* | Remove useless quoting from .Fo and .Fn function names, to prevent | 2015-09-14 | 1 | -3/+3 | |
| | | | | | | development of a cargo cult in case people look at existing files for examples. This achieves a consistent .Fo and .Fn quoting style across the whole tree. | ||||
* | in the SYNOPSIS, make void function arguments explicit | 2015-09-14 | 2 | -7/+7 | |
| | |||||
* | reduce more .Nd to one line and kill more .Tn | 2015-09-10 | 1 | -4/+3 | |
| | |||||
* | reduce .Nd to one line and kill .Tn while here | 2015-09-10 | 2 | -10/+6 | |
| | |||||
* | Remove lies about openpty(4) searching for a free pseudo-tty by iterating | 2015-08-28 | 1 | -12/+6 | |
| | | | | through all existing pseudo-tty devices in /dev. | ||||
* | remove cast of malloc(), since stdlib.h is included | 2015-08-20 | 1 | -2/+2 | |
| | |||||
* | Handle malloc(0) returning NULL (which can happen on some other | 2015-07-19 | 1 | -2/+4 | |
| | | | | | platforms) by explicitly making imsg->data = NULL when there is no data. ok deraadt | ||||
* | typo in manual page. | 2015-07-15 | 1 | -3/+3 | |
| | | | | ok jsing@ | ||||
* | Use memset instead of bzero for better portability. | 2015-07-12 | 2 | -10/+10 | |
| | | | | ok gilles claudio doug | ||||
* | typo in embedded code block; from Ben Cornett | 2015-07-11 | 1 | -3/+3 | |
| | |||||
* | bzero cmsgbuf before using it, silences valgrind warnings. | 2015-07-03 | 2 | -2/+4 | |
| | | | | henning@ "sure" | ||||
* | The correct semantic is to check msgbuf_write() for <= 0, not just < 0. | 2015-06-11 | 2 | -9/+9 | |
| | | | | | | | | Fix one occurence in imsg_flush() and clarify it the man page. Discussed with at least blambert@ jsg@ yasuoka@. OK gilles@ | ||||
* | Do not assume that asprintf() clears the pointer on failure, which | 2015-06-03 | 1 | -3/+2 | |
| | | | | | is non-portable. Also add missing asprintf() return value checks. OK deraadt@ guenther@ doug@ | ||||
* | Use strtonum() instead of strtoul() when parsing uid/gid so we get | 2015-04-24 | 1 | -49/+52 | |
| | | | | | | | consistent handling of negative ids on 32bit/64bit systems. The only negative uid/gid allowed is -1 which is special-cased so it can be preserved when writing the new master.passwd file instead of being written as an unsigned number. OK deraadt@ | ||||
* | tzfile.h is an internal header that should never have been installed. | 2015-03-15 | 1 | -4/+5 | |
| | | | | | | | | | What's worse, the tzfile.h that gets installed is over 20 years old and doesn't match the real tzfile.h in libc/time. This makes the tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE define has been moved to time.h temporarily until its usage is replaced by 1900 in the tree. Actual removal of tzfile.h is pending a ports build. Based on a diff from deraadt@ | ||||
* | Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@ | 2015-02-05 | 1 | -2/+2 | |
| | |||||
* | Move to the <limits.h> universe. | 2015-01-16 | 1 | -3/+4 | |
| | | | | review by millert, binary checking process with doug, concept with guenther | ||||
* | remove .Tn; from Jan Stary <hans at stare dot cz> | 2015-01-15 | 3 | -18/+10 | |
| | |||||
* | rename blocks to words. bcrypt "blocks" are unrelated to blowfish blocks, | 2015-01-12 | 1 | -6/+6 | |
| | | | | nor are they the same size. | ||||
* | declare a local version of MIN(), call it MINIMUM() | 2015-01-08 | 1 | -2/+4 | |
| | | | | (sorry, my other changes were accidentally premature) | ||||
* | declare a local version of MIN(), call it MINIMUM() | 2015-01-08 | 1 | -2/+4 | |
| | |||||
* | Do not need sys/param.h | 2015-01-07 | 2 | -4/+3 | |
| | |||||
* | typo in comment: ouput => output | 2014-12-30 | 1 | -2/+2 | |
| | |||||
* | return ERANGE instead of ENOMEM, so callers can differentiate real oom | 2014-12-25 | 1 | -2/+2 | |
| | | | | | | from this case where we have a static buffer and cant realloc. ok phessler, claudio, reyk | ||||
* | use the actual function name in .Dt and NAME .Nm, not an alias; | 2014-12-04 | 1 | -4/+4 | |
| | | | | found with mandoc.db(5) | ||||
* | no first person in man pages. | 2014-11-25 | 1 | -3/+3 | |
| | |||||
* | Explain why we deviate slightly from the PBKDF2 standard. | 2014-09-27 | 1 | -3/+5 | |
| | | | | | | | This explanation is based off of Ted's site. Also, fix a comment from the SHA-1 version. ok tedu@ | ||||
* | obvious cases of missing .An; | 2014-09-08 | 2 | -8/+13 | |
| | | | | | found with the new mandoc(1) MANDOCERR_AN_MISSING warning; no text changes | ||||
* | Delete secret or secret-derived data with explicit_bzero. | 2014-08-25 | 1 | -2/+2 | |
| | | | | | concept ok deraadt@ diff looks ok tedu@ | ||||
* | Use O_CLOEXEC wherever we open a file and then call fcntl(F_SETFD, FD_CLOEXEC) | 2014-08-15 | 1 | -10/+3 | |
| | | | | | | | on it, simplifying error checking, reducing system calls, and improving thread-safety for libraries. ok miod@ | ||||
* | include stdint.h for standard ints. from Jean-Philippe Ouellet | 2014-07-13 | 1 | -1/+2 | |
| | |||||
* | sys/types.h rather than sys/param.h, where applicable. avoid overreach. | 2014-06-30 | 7 | -14/+13 | |
| | |||||
* | sort includes much more sensibly | 2014-06-30 | 1 | -9/+8 | |
| | |||||
* | limits.h rather than sys/param.h | 2014-06-30 | 1 | -2/+3 | |
| | |||||
* | merge ohash into 1 source file, then we can revisit next roadmap items. | 2014-06-02 | 15 | -541/+334 | |
| | | | | ok espie | ||||
* | zap trailing whitespace; | 2014-05-13 | 1 | -4/+4 | |
| | |||||
* | move the ohash functions into libutil by popular demand. | 2014-05-12 | 17 | -2/+991 | |
| | | | | | | It's not a standard interface, so it doesn't belong in libc. I hate duplicating the code in client programs, so do beck@, kettenis@, schwarze@, millert@, miod@... and they agree with libutil. | ||||
* | fix an error in the stride calculations. the math only works for multiples | 2014-04-08 | 1 | -4/+9 | |
| | | | | | | | of the stride. don't overwrite past the end of the buffer, and also save that amount for later so the array is completely filled. ok deraadt djm reported by Dmitry Chestnykh (dchest) | ||||
* | explicit_bzero where useful | 2014-01-31 | 2 | -11/+11 | |
| | |||||
* | obvious .Pa fixes; found with mandocdb(8) | 2014-01-21 | 1 | -8/+8 | |
| |