summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
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
2014-08-27promote "times" to posix special built-in;Jason McIntyre
ok guenther
2014-08-25Delete secret or secret-derived data with explicit_bzero.Doug Hogan
concept ok deraadt@ diff looks ok tedu@
2014-08-17update the built-ins list:Jason McIntyre
- "times" is both promoted to posix and special (ooh!) - "pwd" is promoted to posix, but not special (aah!) while here, jiggle the text somewhat to clarify that "non-POSIX" actually meant when posix mode is off, not mandated by posix joint work with guenther
2014-08-16reduce cutoff for "hours only" start times to reduce window of ambiguity.Ted Unangst
ok deraadt
2014-08-11Still need to separately set FD_CLOEXEC if the new fd was >= FDBASE.Philip Guenther
Affects scripts that directly use 9 of the first 10 fds. noted by miod@
2014-08-10Only need <stdint.h> and not all of <inttypes.h> herePhilip Guenther
2014-08-10Replace F_DUPFD followed by setting FD_CLOEXEC with just F_DUPFD_CLOEXECPhilip Guenther
ok matthew@ millert@
2014-08-10Add F_DUPFD_CLOEXEC handlingPhilip Guenther
2014-08-10Add newer errnosPhilip Guenther
2014-08-09Switch from calloc() to reallocarray() where the zeroing isn't neededPhilip Guenther
2014-07-21don't try to be clever and name the _PATH_CP exec "mv", since thisTheo de Raadt
breaks the instbin argv[0] mechanism found by landry, ok guenther
2014-07-20Make sure the correct errno is reported by warn* or err* and notPhilip Guenther
the errno of an intervening cleanup operation like close/unlink/etc. Diff from Doug Hogan (doug (at) acyclic.org)