Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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@ | |||||
* | Historically, patch would treat a bare -p as -p0. This contradicts | 2003-07-31 | 2 | -9/+7 | ||
| | | | | | 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"). | |||||
* | Unbreak relative directory handling. Tweak from millert@ | 2003-07-31 | 1 | -4/+5 | ||
| | | | | ok millert@ | |||||
* | Print a maximum of one invalid line number warning per patch in a patch file. | 2003-07-31 | 3 | -6/+12 | ||
| | | | | | | Thanks to espie@ for spotting the problem. ok millert@ henning@ espie@ | |||||
* | Add POSIX -i option; tedu@ OK | 2003-07-30 | 2 | -10/+24 | ||
| | ||||||
* | Make prompting POSIX-compliant. POSIX states "The patch utility | 2003-07-30 | 1 | -34/+18 | ||
| | | | | | | shall write a prompt to standard output and request a filename interactively from the controlling terminal (for example, /dev/tty)." OK deraadt@ and otto@ | |||||
* | o add pathnames.h | 2003-07-29 | 4 | -32/+47 | ||
| | | | | | | o ignore empty TMPDIR environment variable o strip any trailing slashes from TMPDIR otto@ OK | |||||
* | minor knf and cleanups; otto ok | 2003-07-28 | 4 | -28/+25 | ||
| | ||||||
* | Don't treat consecutive slashes as path components; matches POSIX | 2003-07-28 | 1 | -7/+7 | ||
| | | | | OK otto@ and deraadt@ | |||||
* | More cleanup: sprinkled some const, removed ugly EXTERN/INTERN.h, | 2003-07-28 | 11 | -233/+157 | ||
| | | | | | | some rewriting of code to make it more readable and more KNF. ok millert@ tedu@ deraadt@ | |||||
* | Be more exact on how backup files are handled. | 2003-07-28 | 1 | -3/+3 | ||
| | | | | ok millert@ tedu@ | |||||
* | Be more exact on how backup files are handled. | 2003-07-28 | 1 | -59/+114 | ||
| | | | | ok millert@ tedu@ | |||||
* | Make patch(1) exit value match POSIX and be consistent with diff. | 2003-07-28 | 4 | -20/+29 | ||
| | | | | Comments and OK from otto@ | |||||
* | Add POSIX -b option but don't change the default beahvior wrt backups | 2003-07-25 | 5 | -111/+121 | ||
| | | | | yet. The old -b option is now -z (matches GNU patch). | |||||
* | "options" not "switches"; jmc@ OK | 2003-07-24 | 1 | -13/+12 | ||
| | | | | also update Larry's email address while I am at it ;-) | |||||
* | Don't talk about ~ and # suffixes for orig and reject files since we | 2003-07-24 | 1 | -19/+5 | ||
| | | | | use .orig and .rej. | |||||
* | mdoc version; | 2003-07-24 | 1 | -316/+325 | ||
| | | | | ok millert@ | |||||
* | New version of invalid line number fix. Passes patch(1) regressions. | 2003-07-23 | 2 | -10/+19 | ||
| | | | | ok millert@ deraadt@ | |||||
* | Missed this in the rejname commit. | 2003-07-22 | 1 | -2/+1 | ||
| | ||||||
* | Make rejname[] static to patch.c and crank its size to NAME_MAX+1 | 2003-07-22 | 1 | -3/+8 | ||
| | ||||||
* | Use getopt_long() to parse options instead of rolling our own. | 2003-07-22 | 2 | -222/+143 | ||
| | | | | OK deraadt@ and otto@ | |||||
* | just about nothing | 2003-07-22 | 4 | -13/+13 | ||
| | ||||||
* | nicer | 2003-07-22 | 1 | -4/+4 | ||
| | ||||||
* | POSIX defines allowed commands as {a,c,d,i,s} but patch was only | 2003-07-22 | 1 | -6/+5 | ||
| | | | | | recognizing {a,c,d}. We need to recognize 's' (substitute) for the "dot alone on a line" bug fix in diff(1). | |||||
* | More cleanup. | 2003-07-22 | 10 | -325/+296 | ||
| | | | | ok millert@ tedu@ | |||||
* | Back out invalid line number fix. It core dumps in some cases. Problem found by | 2003-07-21 | 2 | -11/+6 | ||
| | | | | | marc@. ok henning@ | |||||
* | fix header | 2003-07-21 | 13 | -18/+19 | ||
| | ||||||
* | remove a bit more junk | 2003-07-21 | 4 | -41/+20 | ||
| | ||||||
* | knf | 2003-07-21 | 1 | -8/+14 | ||
| |