summaryrefslogtreecommitdiff
path: root/usr.bin/apply
AgeCommit message (Collapse)Author
2018-04-01With malloc option J, the first realloc(3) in apply(1) would returnAlexander Bluhm
memory that is filled with junk only. Allocate the empty string with malloc(3) and initialize it explicitly with the NUL terminator. OK tb@ tobias@
2018-03-27Fix possibly wrong execution of commands and out of boundary write withTobias Stoeckmann
unusual input. Correction and regression tests based on FreeBSD bin/95079. While at it, fix another segmentation fault when using ' ' as magic character and also disallow '\0' as magic character. This cannot make any sense and avoids a theoretical out of boundary read. ok tb@
2015-10-10pledge "stdio proc exec" works.Theo de Raadt
ok doug
2014-09-08obvious cases of missing .An;Ingo Schwarze
found with the new mandoc(1) MANDOCERR_AN_MISSING warning; no text changes
2013-11-25variety of unsigned char casts (or conversions) for ctypeTheo de Raadt
ok krw
2011-04-29small tidy. contribution from patrick keshishian and extra tab spot by ↵lum
halex. Thanks. ok nicm@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-09Remove shadowed, redundant variable. From Bret Lambert.Ray Lai
OK jaredy@.
2006-12-14"apply echo *" operates similarly to ls(1), not "apply echo a*";Jason McIntyre
from sat@freebsd ok otto
2005-11-14use asprintf()Theo de Raadt
2005-05-15- simplify usageJared Yanovich
- update/rearrange examples help & ok jmc
2005-03-25Use the return value from getopt() instead of optopt in non-errorJared Yanovich
cases since optopt is not set in these cases, and it is not required by POSIX that it should be. ok millert otto
2005-02-24Store result of snprintf() in a signed type and check it for -1.Jonathan Gray
Do not depend on errno being set for snprintf, use errx() instead of err(). ok otto@, earlier version ok deraadt@ some time ago
2004-09-14unalias system() copy from libc versionTheo de Raadt
2003-11-10c2 cannot be const as it produces all kinds of conflictsMichael Shalayeff
2003-09-26better realloc. ok deraadt@Ted Unangst
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-10- section reorderJason McIntyre
- COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-06snprintf; ok millertTheo de Raadt
he also suggested i use a strlcpy instead of the existing "%s" it used..
2003-04-04snprintf; ok from espie tedu and othersTheo de Raadt
2003-03-12more .LiTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-13When you give command examples and etc., in a manual page prefix them with:Mike Pechkin
$ command or # command deraadt@ ok
2001-09-04Replace the deprecated BSD sigsetmask/sigblock/sigpause functions with their ↵Todd C. Miller
POSIX counterparts.
2001-07-09correct type on last arg to execl(); nordin@cse.ogi.eduTheo de Raadt
2001-05-01Remove completely redundant introductory sentences in ENVIRONMENT sections.Aaron Campbell
2001-05-01Reformat EXAMPLES section.Aaron Campbell
2000-12-24Sync usage() with man page.Aaron Campbell
2000-11-20fixes; mpech@prosoft.org.lvTheo de Raadt
2000-11-10- Section shuffling: comply to the section ordering outlined in mdoc(7).Aaron Campbell
- Some .Nm trimming. - .Sh AUTHOR -> .Sh AUTHORS - Other miscellaneous fixes here and there.
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-01-08Formatting fixes + better description of -a.Aaron Campbell
1999-12-05- Document -d option.Aaron Campbell
- Add SEE ALSO section and Xr xargs(1) - Miscellaneous cleanup.
1999-12-03off by one for string length calculationTheo de Raadt
1999-07-04correct use of .Nm; some other formatting nitsAaron Campbell
1999-06-05- remove trailing white spaceAaron Campbell
- remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/
1998-09-23usr.bin/ man page repairs, a - eAaron Campbell
1998-05-13fix .Sh ENVIRONMENTTheo de Raadt
1998-04-28use Xr more oftenTheo de Raadt
1997-09-21$OpenBSD$Theo de Raadt
1997-08-31union wait diesTheo de Raadt
1997-07-29Changed vfork() to fork() -- pointed out by Theobitblt
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-09-27correct quotes; netbsd pr#2781; msaitoh@spa.is.uec.ac.jpTheo de Raadt
1996-06-26rcsidTheo de Raadt
1996-04-21sync to netbsd 960418Theo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt