Age | Commit message (Collapse) | Author | |
---|---|---|---|
2010-09-03 | add an EXIT STATUS section for /usr/bin; | Jason McIntyre | |
2010-07-24 | Send normal output to stdout instead of everything to stderr. This | Ray Lai | |
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 | |||
2010-01-08 | Don't leak memory after strdup() in makedirs(). | Owain Ainsworth | |
From Igor Zinovik; thanks! ok stsp@, millert@ | |||
2009-10-28 | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | Theo 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 | |||
2009-04-05 | If no patch can be found in input, in addition to complaining on stderr, | Stefan Sperling | |
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@ | |||
2009-02-08 | updates to IEEE Std 1003.1-2008; | Jason McIntyre | |
2009-02-08 | bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few | Jason McIntyre | |
updates to follow; | |||
2008-10-19 | over-rule -> overrule; from Thomas Pfaff | Jason McIntyre | |
2008-08-20 | The code to detect multiple applied diffs to empty files I introduced 4 | Otto Moerbeek | |
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@ | |||
2008-06-06 | update the description of -b and STANDARDS; suggested by grunk | Jason McIntyre | |
ok millert | |||
2008-01-11 | providing MLINKS for shell builtins makes little sense: what we had was out | Jason McIntyre | |
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 | |||
2007-09-02 | use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg | Theo de Raadt | |
2007-05-31 | convert to new .Dd format; | Jason McIntyre | |
2007-05-31 | - note some apps which are xpg4, not posix | Jason McIntyre | |
- note that some apps are optional to posix after some discussion w/ otto | |||
2007-04-18 | adds a detailed synopsis to the man page; sorts options in | Igor Sobrado | |
the description list and adds missing arguments; syncs usage() written with a lot of useful advice by jmc@ ok by jmc@ | |||
2006-03-11 | type police and assorted cleanup. From Lionel Fourquaux; ok ray@ | Otto Moerbeek | |
2005-11-14 | constuct -> construct | Miod Vallat | |
2005-06-20 | umask juggling not needed; with Lionel Fourquaux. | Otto Moerbeek | |
ok millert@ espie@ | |||
2005-05-16 | Do not call out mkdir -p, but reuse the code from mkdir(1). | Marc Espie | |
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@ | |||
2004-11-19 | Write reject file in unified format if the original diff was in | Otto Moerbeek | |
unified format. ok deraadt@ | |||
2004-11-19 | Allow for path names containing spaces and other funny chars (except | Otto Moerbeek | |
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@ | |||
2004-09-14 | remove unused variable | Theo de Raadt | |
2004-08-05 | spacing | Theo de Raadt | |
2004-07-09 | Properly detect if a patch already has been applied, even if there | Otto Moerbeek | |
are no eols at eofs involved. Tested by quite some people. ok deraadt@ | |||
2004-06-18 | Unbreak handling of standard diffs (which have an empty context). | Otto Moerbeek | |
ok @millert | |||
2004-06-14 | Teach patch(1) to detect if a diff creating a file (or one adding | Otto Moerbeek | |
lines to an empty file) already has been applied; be a bit less chatty about empty contexts. Testing hshoexer@ ok millert@ | |||
2004-01-28 | Fix a segv when patch cannot find a file and the user indicates | Otto Moerbeek | |
to use the file anyway. Problem found by david@ ok david@ millert@ | |||
2003-12-08 | MAP_FILE is the default and MAP_PRIVATE has to be given or produces evil ↵ | Michael Shalayeff | |
warnings in debug kernel | |||
2003-11-21 | madvise(sequential) the mmap()ed file and plug an fd leak on mmap() failure; ↵ | Michael Shalayeff | |
millert@ ok | |||
2003-10-31 | o fairly major man page reorganization | Todd C. Miller | |
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@ | |||
2003-09-28 | realloc(3) cleanup. | Otto Moerbeek | |
ok cloder@ tedu@ | |||
2003-08-15 | Add license from patch.c to original source files missing a license. | Otto Moerbeek | |
ok deraadt@ | |||
2003-08-12 | Fix no newline at end of file case for Plan B. | Otto Moerbeek | |
ok millert@ tedu@ | |||
2003-08-10 | Do not add an extra newline at the end if the last line of the input | Otto Moerbeek | |
file contains no newline and the diff does not touch the last line. Contributions from millert@. ok millert@ tedu@ | |||
2003-08-10 | Warn if the diff is a context or unified diff and the context | Otto Moerbeek | |
is empty. In this case, a previously applied patch cannot be detected. ok millert@ tedu@ | |||
2003-08-08 | Avoid scanning the input file twice. | Otto Moerbeek | |
ok millert@ tedu@ | |||
2003-08-05 | spacing | Theo de Raadt | |
2003-08-05 | - Use mmap(2) instead of malloc(3) and read(2) to get an image of the input | Otto Moerbeek | |
file into memory. Some suggestions by tedu@. - Add a debug option to force using Plan B. ok millert@ deraadt@ | |||
2003-08-01 | - use stdbool.h instead of roll-your-own booleans | Otto Moerbeek | |
- 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@ | |||
2003-07-31 | Historically, patch would treat a bare -p as -p0. This contradicts | Todd C. Miller | |
POSIX and GNU patch has also removed this, so we will too. No objections on icb (no one even seemed to know about this "feature"). | |||
2003-07-31 | Unbreak relative directory handling. Tweak from millert@ | Otto Moerbeek | |
ok millert@ | |||
2003-07-31 | Print a maximum of one invalid line number warning per patch in a patch file. | Otto Moerbeek | |
Thanks to espie@ for spotting the problem. ok millert@ henning@ espie@ | |||
2003-07-30 | Add POSIX -i option; tedu@ OK | Todd C. Miller | |
2003-07-30 | Make prompting POSIX-compliant. POSIX states "The patch utility | Todd C. Miller | |
shall write a prompt to standard output and request a filename interactively from the controlling terminal (for example, /dev/tty)." OK deraadt@ and otto@ | |||
2003-07-29 | o add pathnames.h | Todd C. Miller | |
o ignore empty TMPDIR environment variable o strip any trailing slashes from TMPDIR otto@ OK | |||
2003-07-28 | minor knf and cleanups; otto ok | Theo de Raadt | |
2003-07-28 | Don't treat consecutive slashes as path components; matches POSIX | Todd C. Miller | |
OK otto@ and deraadt@ | |||
2003-07-28 | More cleanup: sprinkled some const, removed ugly EXTERN/INTERN.h, | Otto Moerbeek | |
some rewriting of code to make it more readable and more KNF. ok millert@ tedu@ deraadt@ | |||
2003-07-28 | Be more exact on how backup files are handled. | Otto Moerbeek | |
ok millert@ tedu@ | |||
2003-07-28 | Be more exact on how backup files are handled. | Otto Moerbeek | |
ok millert@ tedu@ |