summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2015-01-20Adjust <sys/param.h> comments regarding use of use of MAXFRAG, orTheo de Raadt
delete <sys/param.h> if now possible ok guenther
2015-01-19remove #ifndef #define blocks trying to handle lack of BUFSIZTheo de Raadt
ok millert
2015-01-19cleanup of the SMALL hiding from Mathias SvenssonTheo de Raadt
2015-01-19cleanup sys/param.h commentTheo de Raadt
2015-01-16Document behavior of killing process 0, matching the text in kill(2).Todd C. Miller
From Theo Buehler
2015-01-16remove useless escaping; mandoc warned about some of thisIngo Schwarze
2015-01-16Properly escape punctuation when given as an argument to a macro;Ingo Schwarze
this was the only mandoc warning in src/bin.
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2015-01-16move to PATH_MAX, etc; normalize includes for life in the <limits.h> universeTheo de Raadt
ok guenther millert
2015-01-15remove .Tn; from Jan Stary <hans at stare dot cz>Ingo Schwarze
2015-01-05use the correct read count when determining how swabbing is necessary.Ted Unangst
bug report from Martin Wolters
2015-01-05simplify realloc loop by not using realloc. we don't care about old data,Ted Unangst
so don't make realloc copy it. just allocate what we need. ok deraadt guenther
2014-12-14Remove unused <stdlib.h>Brian Callahan
ok lteo@ krw@ deraadt@
2014-12-13Sort members by size to reduce structure paddingPhilip Guenther
2014-12-13Add .Xr to chflagsat(2)Philip Guenther
2014-12-13Correct the handling of symbolic links by chmod/chgrp/chown/chflags,Philip Guenther
making them more resistant to TOCTOU race conditions too. ok tobias@
2014-12-13Properly validate ranges:Tobias Stoeckmann
- avoid out of boundary access on very short program names - fix compiler warning when converting values between 0 and INT_MAX ok deraadt, millert
2014-12-12Range check the value of the base for typeset -i base x=y. Instead ofJonathan Gray
erroring for values outside of the range switch to base 10 to match the behaviour of ksh93. As we have a smaller digit alphabet than ksh93 the accepted range is smaller (2-36) than ksh93 (2-64). The other form of setting a base, typeset -i x=base#y already has a range check that errors (as ksh93 also does for that syntax). Fixes a crash found with the afl fuzzer.
2014-12-11use a local swapbytes function instead of relying on undefinedTed Unangst
overlapping swab behavior. vaguely ok kettenis
2014-12-09put back some information what the character classes actually mean;Ingo Schwarze
while here, remove the lie that regex(3) character classes would depend on the locale; ok jmc@
2014-12-09no more ctype(3);Jason McIntyre
2014-12-08Don't need special complex rand vs arc4random code. If theTheo de Raadt
standards-mandated "seed" method is used, simply call srand_deterministic() and the subsystem switches out of strong random mode into C89 crap mode. ok millert
2014-12-08fix crash when trying to apply ++ without an lvalue; ok millert@ jsg@Otto Moerbeek
2014-12-04obvious cases of missing NAME .Nm entriesIngo Schwarze
2014-12-04document some more commands that are POSIX extensions. ok jmc@Daniel Dickman
2014-12-04Allow POSIX 0i; from Jeremy Mates.Daniel Dickman
Tested to match gnu by sobrado@; on solaris you probably need to use xpg6 utils to get this behaviour. ok krw@, deraadt@.
2014-12-02Remove prototypes for functions that were already removed.Todd C. Miller
From Benjamin Scher Purcell.
2014-12-02posix fix: should behave like [ when invoked as /bin/[Ted Unangst
matches freebsd and other implementations ok deraadt millert
2014-12-02The t.t test is missing and so the t.* test is not being run.Daniel Dickman
Reconstruct a passing t.t based on the input data (t.d) and the expected result (t.r).
2014-11-26Prefer setvbuf() to setlinebuf() for portability; ok deraadt@Todd C. Miller
2014-11-26document in STANDARDS that we do not mark eols with $;Jason McIntyre
originally reported by ezequiel garz?n
2014-11-23Don't pull in <tzfile.h> just for a number that's hardcoded in the C standardPhilip Guenther
2014-11-23Use PATH_MAX from <limits.h> instead of MAXPATHLEN from <sys/param.h>Philip Guenther
Eliminate a couple unneeded #includes
2014-11-23Don't leak the fds for "." and the tty to the compression processPhilip Guenther
2014-11-20remove sys/file.h includes in favor of fcntl.h where needed.Ted Unangst
ok deraadt guenther
2014-11-20Don't allow embedded nul characters in strings.Jonathan Gray
Fixes a pfctl crash with an anchor name containing an embedded nul found with the afl fuzzer. pfctl parse.y patch from and ok deraadt@
2014-11-16Correct an allocation size (was too large) by using sizeof(*ptr)Philip Guenther
instead of sizeof(type). diff from Nicolas Bedos (nicolas.bedos (at) gmail.com)
2014-11-16Convert the logic in yyerror(). Instead of creating a temporaryAlexander Bluhm
format string, create a temporary message. OK doug@
2014-11-14Add gcc printf format attributes to yyerror() in parse.y files.Doug Hogan
No yyerror() calls needed to be changed. ok bluhm@
2014-10-25Remove unnecessary netinet/in_systm.h include.Lawrence Teo
ok millert@
2014-10-17no need for realloc() front ends anymoreTheo de Raadt
2014-10-16Use reallocarray() and remove a few archaic memory allocation practices.Theo de Raadt
ok deraadt
2014-10-16Kill the alloc command, which tried to measure behaviour based on sbrk.Theo de Raadt
Discussed with guenther.
2014-10-13remove unused variableCharles Longeau
ok guenther@
2014-10-13Remove duplicate and misleading vcmp() prototype;Ingo Schwarze
patch from Martin <Natano at natano dot net>; ok deraadt
2014-10-13jmc@ found another manpage i broke when i touched inetd.David Gwynne
use kill -HUP 1 as an example of a hangup signal that does something useful and non-contrived. ok jmc@
2014-10-06In case of invalid syntax like "chmod -Pr -w tf" (trailing mode letterIngo Schwarze
in a group of option letters), do not silently ignore the syntax error and do something undefined, but instead error out properly. Found because miod@ said "read the code" (not to me, though). ok doug@
2014-09-14Error out when negative values are given for sizes on the command line.Ingo Schwarze
Do not error out when the maximum permissible value is given, but only when it is exceeded. Patch from William Orr <will at worrbase dot com> using feedback from tedu@. ok millert@
2014-09-13Replace all queue *_END macro calls except CIRCLEQ_END with NULL.Doug Hogan
CIRCLEQ_* is deprecated and not called in the tree. The other queue types have *_END macros which were added for symmetry with CIRCLEQ_END. They are defined as NULL. There's no reason to keep the other *_END macro calls. ok millert@
2014-09-08obvious cases of missing .An;Ingo Schwarze
found with the new mandoc(1) MANDOCERR_AN_MISSING warning; no text changes