Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Check fstat return value. Also, use off_t for file size and offsets as | 2014-11-17 | 1 | -37/+39 | ||
| | | | | | | suggested by bluhm@. ok schwarze@ | |||||
* | Call munmap with the same size argument as mmap. | 2014-11-15 | 1 | -2/+2 | ||
| | | | | ok millert, otto | |||||
* | userland reallocarray audit. | 2014-10-08 | 1 | -2/+2 | ||
| | | | | | | | Replace malloc() and realloc() calls that may have integer overflow in the multiplication of the size argument with reallocarray(). ok deraadt@ | |||||
* | Use errc/warnc to simplify code. | 2014-05-20 | 1 | -2/+2 | ||
| | | | | | | Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@ | |||||
* | patch was moved from user portability (UP) to base in issue 7 | 2014-04-15 | 1 | -8/+5 | ||
| | | | | and is no longer optional; | |||||
* | unsigned char casts for ctype | 2013-11-26 | 5 | -44/+49 | ||
| | | | | ok krw | |||||
* | pull in local .h files to satisfy proto | 2013-11-12 | 1 | -1/+4 | ||
| | ||||||
* | Bring file selection in accordance with the man page; from Stefan Esser | 2013-07-11 | 1 | -35/+33 | ||
| | | | | ok millert@ | |||||
* | Fix confusing patch(1) output on failure when using -C. From | 2012-05-15 | 1 | -8/+7 | ||
| | | | | dragonflybsd via Loganaden Velvindron. OK mikeb@ and deraadt@ | |||||
* | Silence gcc warnings. | 2012-04-11 | 1 | -1/+3 | ||
| | | | | ok deraadt@ | |||||
* | Don't try to mmap a zero length file, from NetBSD. | 2012-04-10 | 1 | -6/+10 | ||
| | | | | | | Needed after the recent mmap(2) change. ok ariane@ | |||||
* | add an EXIT STATUS section for /usr/bin; | 2010-09-03 | 1 | -18/+18 | ||
| | ||||||
* | Send normal output to stdout instead of everything to stderr. This | 2010-07-24 | 2 | -8/+6 | ||
| | | | | | | | | | | is currently done in the latest versions of GNU patch. Please watch out for output appearing out-of-order. Discussed with millert and deraadt. OK deraadt | |||||
* | Don't leak memory after strdup() in makedirs(). | 2010-01-08 | 1 | -2/+4 | ||
| | | | | | | From Igor Zinovik; thanks! ok stsp@, millert@ | |||||
* | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | 2009-10-27 | 5 | -25/+5 | ||
| | | | | | | | 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 | |||||
* | If no patch can be found in input, in addition to complaining on stderr, | 2009-04-05 | 1 | -2/+10 | ||
| | | | | | | | | have the exit code indicate failure, not success. Discrepancy with GNU patch pointed out by Arfrever Frehtes Taifersar Arahesis. Help from and ok djm@, "sounds good to me" millert@ | |||||
* | updates to IEEE Std 1003.1-2008; | 2009-02-08 | 1 | -2/+2 | ||
| | ||||||
* | bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few | 2009-02-08 | 1 | -5/+5 | ||
| | | | | updates to follow; | |||||
* | over-rule -> overrule; from Thomas Pfaff | 2008-10-19 | 1 | -3/+3 | ||
| | ||||||
* | The code to detect multiple applied diffs to empty files I introduced 4 | 2008-08-20 | 1 | -9/+3 | ||
| | | | | | | years ago is not correct if the diff has an empty context for other reasons, so revert that change. Problem found by Joerg Sonnenberger; ok tedu@ millert@ | |||||
* | update the description of -b and STANDARDS; suggested by grunk | 2008-06-06 | 1 | -7/+14 | ||
| | | | | ok millert | |||||
* | providing MLINKS for shell builtins makes little sense: what we had was out | 2008-01-11 | 1 | -5/+4 | ||
| | | | | | | | | | | | of date for ever (no ksh builtins), and since we have two shells, pointing to one page or the other is never going to work; so remove MLINKS for csh(1); the cd(1) and wait(1) pages (also builtins); and update any trailing Xr's; please, there are tools like whence, man, and locate for finding this stuff; ok deraadt miod | |||||
* | use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg | 2007-09-02 | 1 | -5/+5 | ||
| | ||||||
* | convert to new .Dd format; | 2007-05-31 | 1 | -2/+2 | ||
| | ||||||
* | - note some apps which are xpg4, not posix | 2007-05-31 | 1 | -1/+14 | ||
| | | | | | | - note that some apps are optional to posix after some discussion w/ otto | |||||
* | adds a detailed synopsis to the man page; sorts options in | 2007-04-18 | 2 | -57/+96 | ||
| | | | | | | | | the description list and adds missing arguments; syncs usage() written with a lot of useful advice by jmc@ ok by jmc@ | |||||
* | type police and assorted cleanup. From Lionel Fourquaux; ok ray@ | 2006-03-11 | 6 | -24/+27 | ||
| | ||||||
* | constuct -> construct | 2005-11-14 | 1 | -3/+3 | ||
| | ||||||
* | umask juggling not needed; with Lionel Fourquaux. | 2005-06-20 | 3 | -14/+8 | ||
| | | | | ok millert@ espie@ | |||||
* | Do not call out mkdir -p, but reuse the code from mkdir(1). | 2005-05-16 | 4 | -12/+91 | ||
| | | | | | | | | | | | Removes the possibility of nasty stuff happening thanks to unquoted arguments in system(1). Also plug a small memory leak. Problems noticed by Lionel Fourquaud. okay millert@, deraadt@ | |||||
* | Write reject file in unified format if the original diff was in | 2004-11-19 | 1 | -4/+84 | ||
| | | | | | unified format. ok deraadt@ | |||||
* | Allow for path names containing spaces and other funny chars (except | 2004-11-19 | 1 | -4/+6 | ||
| | | | | | | | | tab) by scanning for the tab that separates the date from the pathname. If no tab is found, revert back to the old behaviour. Posix says there should be a space between the pathname and the date, but all known implementations of diff(1) use a tab. ok kurt@ deraadt@ | |||||
* | remove unused variable | 2004-09-14 | 1 | -4/+3 | ||
| | ||||||
* | spacing | 2004-08-05 | 5 | -21/+21 | ||
| | ||||||
* | Properly detect if a patch already has been applied, even if there | 2004-07-09 | 2 | -4/+25 | ||
| | | | | | | are no eols at eofs involved. Tested by quite some people. ok deraadt@ | |||||
* | Unbreak handling of standard diffs (which have an empty context). | 2004-06-18 | 1 | -4/+9 | ||
| | | | | ok @millert | |||||
* | Teach patch(1) to detect if a diff creating a file (or one adding | 2004-06-14 | 1 | -5/+5 | ||
| | | | | | lines to an empty file) already has been applied; be a bit less chatty about empty contexts. Testing hshoexer@ ok millert@ | |||||
* | Fix a segv when patch cannot find a file and the user indicates | 2004-01-28 | 1 | -3/+3 | ||
| | | | | | | to use the file anyway. Problem found by david@ ok david@ millert@ | |||||
* | MAP_FILE is the default and MAP_PRIVATE has to be given or produces evil warnings in debug kernel | 2003-12-08 | 1 | -3/+3 | ||
| | ||||||
* | madvise(sequential) the mmap()ed file and plug an fd leak on mmap() failure; millert@ ok | 2003-11-21 | 1 | -2/+5 | ||
| | ||||||
* | o fairly major man page reorganization | 2003-10-31 | 7 | -256/+495 | ||
| | | | | | | o add --posix option for strict POSIX conformance o change filename determination to match GNU patch Tested by various people, including a full ports build by naddy@ | |||||
* | realloc(3) cleanup. | 2003-09-28 | 2 | -12/+35 | ||
| | | | | ok cloder@ tedu@ | |||||
* | Add license from patch.c to original source files missing a license. | 2003-08-15 | 7 | -10/+192 | ||
| | | | | ok deraadt@ | |||||
* | Fix no newline at end of file case for Plan B. | 2003-08-12 | 1 | -7/+16 | ||
| | | | | ok millert@ tedu@ | |||||
* | Do not add an extra newline at the end if the last line of the input | 2003-08-10 | 3 | -19/+31 | ||
| | | | | | | | file contains no newline and the diff does not touch the last line. Contributions from millert@. ok millert@ tedu@ | |||||
* | Warn if the diff is a context or unified diff and the context | 2003-08-10 | 1 | -3/+10 | ||
| | | | | | | is empty. In this case, a previously applied patch cannot be detected. ok millert@ tedu@ | |||||
* | Avoid scanning the input file twice. | 2003-08-08 | 1 | -21/+35 | ||
| | | | | ok millert@ tedu@ | |||||
* | spacing | 2003-08-05 | 2 | -16/+16 | ||
| | ||||||
* | - Use mmap(2) instead of malloc(3) and read(2) to get an image of the input | 2003-08-05 | 1 | -27/+61 | ||
| | | | | | | | file into memory. Some suggestions by tedu@. - Add a debug option to force using Plan B. ok millert@ deraadt@ | |||||
* | - use stdbool.h instead of roll-your-own booleans | 2003-08-01 | 6 | -181/+184 | ||
| | | | | | | | | | - fix some -Wall warnings - fix asserts: in some cases remove them, in other cases they have become Internal errors or detection of malformed patch files. - fix some free() related code ok millert@ tedu@ |