summaryrefslogtreecommitdiff
path: root/usr.bin/patch
AgeCommit message (Expand)Author
2015-02-05Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@Todd C. Miller
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-12-14Handle ed command "s" as a one line command, which it is.Tobias Stoeckmann
2014-12-13The function savestr allows NULL return values during Plan A patching so inTobias Stoeckmann
2014-12-09Fix division by zero for files with long lines (> 1024) in Plan B modeTobias Stoeckmann
2014-12-08spacesTheo de Raadt
2014-12-01three trivial reallocarray() usesTheo de Raadt
2014-11-26Prefer setvbuf() to setlinebuf() for portability; ok deraadt@Todd C. Miller
2014-11-26Properly validate line ranges supplied in diff file to prevent overflows.Tobias Stoeckmann
2014-11-25Introduce strtolinenum to properly check line numbers while parsing:Tobias Stoeckmann
2014-11-25Prevent null pointer dereference on empty input files when diff requiresTobias Stoeckmann
2014-11-22Remove SCCS support. For this to work, we would need "get", which we don'tTobias Stoeckmann
2014-11-21Remove the README. It history from more than 20 years ago, and whileTheo de Raadt
2014-11-18Avoid iterating over end of string.Tobias Stoeckmann
2014-11-17Check fstat return value. Also, use off_t for file size and offsets asTobias Stoeckmann
2014-11-15Call munmap with the same size argument as mmap.Tobias Stoeckmann
2014-10-08userland reallocarray audit.Doug Hogan
2014-05-20Use errc/warnc to simplify code.Philip Guenther
2014-04-15patch was moved from user portability (UP) to base in issue 7Jason McIntyre
2013-11-26unsigned char casts for ctypeTheo de Raadt
2013-11-12pull in local .h files to satisfy protoTheo de Raadt
2013-07-11Bring file selection in accordance with the man page; from Stefan EsserOtto Moerbeek
2012-05-15Fix confusing patch(1) output on failure when using -C. FromTodd C. Miller
2012-04-11Silence gcc warnings.Antoine Jacoutot
2012-04-10Don't try to mmap a zero length file, from NetBSD.Antoine Jacoutot
2010-09-03add an EXIT STATUS section for /usr/bin;Jason McIntyre
2010-07-24Send normal output to stdout instead of everything to stderr. ThisRay Lai
2010-01-08Don't leak memory after strdup() in makedirs().Owain Ainsworth
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2009-04-05If no patch can be found in input, in addition to complaining on stderr,Stefan Sperling
2009-02-08updates to IEEE Std 1003.1-2008;Jason McIntyre
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
2008-10-19over-rule -> overrule; from Thomas PfaffJason McIntyre
2008-08-20The code to detect multiple applied diffs to empty files I introduced 4Otto Moerbeek
2008-06-06update the description of -b and STANDARDS; suggested by grunkJason McIntyre
2008-01-11providing MLINKS for shell builtins makes little sense: what we had was outJason McIntyre
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-31- note some apps which are xpg4, not posixJason McIntyre
2007-04-18adds a detailed synopsis to the man page; sorts options inIgor Sobrado
2006-03-11type police and assorted cleanup. From Lionel Fourquaux; ok ray@Otto Moerbeek
2005-11-14constuct -> constructMiod Vallat
2005-06-20umask juggling not needed; with Lionel Fourquaux.Otto Moerbeek
2005-05-16Do not call out mkdir -p, but reuse the code from mkdir(1).Marc Espie
2004-11-19Write reject file in unified format if the original diff was inOtto Moerbeek
2004-11-19Allow for path names containing spaces and other funny chars (exceptOtto Moerbeek
2004-09-14remove unused variableTheo de Raadt
2004-08-05spacingTheo de Raadt
2004-07-09Properly detect if a patch already has been applied, even if thereOtto Moerbeek
2004-06-18Unbreak handling of standard diffs (which have an empty context).Otto Moerbeek