summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Historically, patch would treat a bare -p as -p0. This contradictsmillert2003-07-312-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@otto2003-07-311-4/+5
| | | | ok millert@
* Print a maximum of one invalid line number warning per patch in a patch file.otto2003-07-313-6/+12
| | | | | | Thanks to espie@ for spotting the problem. ok millert@ henning@ espie@
* Add POSIX -i option; tedu@ OKmillert2003-07-302-10/+24
|
* Make prompting POSIX-compliant. POSIX states "The patch utilitymillert2003-07-301-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.hmillert2003-07-294-32/+47
| | | | | | o ignore empty TMPDIR environment variable o strip any trailing slashes from TMPDIR otto@ OK
* minor knf and cleanups; otto okderaadt2003-07-284-28/+25
|
* Don't treat consecutive slashes as path components; matches POSIXmillert2003-07-281-7/+7
| | | | OK otto@ and deraadt@
* More cleanup: sprinkled some const, removed ugly EXTERN/INTERN.h,otto2003-07-2811-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.otto2003-07-281-3/+3
| | | | ok millert@ tedu@
* Be more exact on how backup files are handled.otto2003-07-281-59/+114
| | | | ok millert@ tedu@
* Make patch(1) exit value match POSIX and be consistent with diff.millert2003-07-284-20/+29
| | | | Comments and OK from otto@
* Add POSIX -b option but don't change the default beahvior wrt backupsmillert2003-07-255-111/+121
| | | | yet. The old -b option is now -z (matches GNU patch).
* "options" not "switches"; jmc@ OKmillert2003-07-241-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 wemillert2003-07-241-19/+5
| | | | use .orig and .rej.
* mdoc version;jmc2003-07-241-316/+325
| | | | ok millert@
* New version of invalid line number fix. Passes patch(1) regressions.otto2003-07-232-10/+19
| | | | ok millert@ deraadt@
* Missed this in the rejname commit.millert2003-07-221-2/+1
|
* Make rejname[] static to patch.c and crank its size to NAME_MAX+1millert2003-07-221-3/+8
|
* Use getopt_long() to parse options instead of rolling our own.millert2003-07-222-222/+143
| | | | OK deraadt@ and otto@
* just about nothingderaadt2003-07-224-13/+13
|
* nicerderaadt2003-07-221-4/+4
|
* POSIX defines allowed commands as {a,c,d,i,s} but patch was onlymillert2003-07-221-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.otto2003-07-2210-325/+296
| | | | ok millert@ tedu@
* Back out invalid line number fix. It core dumps in some cases. Problem found byotto2003-07-212-11/+6
| | | | | marc@. ok henning@
* fix headerderaadt2003-07-2113-18/+19
|
* remove a bit more junkderaadt2003-07-214-41/+20
|
* knfderaadt2003-07-211-8/+14
|
* knf and other cleanup; ok ottoderaadt2003-07-2113-2902/+2852
|
* remove junk; ok otto teduderaadt2003-07-1817-1450/+445
|
* Fix merge error.otto2003-07-171-4/+4
| | | | ok millert@ tedu@
* Teach patch how to deal with \ No newline at end of file.otto2003-07-161-2/+63
| | | | | From NetBSD. ok deraadt@
* Do not produce garbage if the patch file contains invalid line numbers.otto2003-07-162-7/+14
| | | | ok millert@ tedu@
* bump randomness of mktemp to from 6 to 10 X's, as recommended by mktemp(3)avsm2003-07-021-6/+6
|
* oh, and the false protos can goderaadt2003-04-081-3/+1
|
* Strcat and Strcpy are no longer usedderaadt2003-04-081-3/+1
|
* strcpy trashing, help from tedu; ok teduderaadt2003-04-082-6/+6
|
* another asprintf() simplifies things furthermillert2003-04-061-7/+3
|
* string fixes; ok miod henningderaadt2003-04-054-41/+27
|
* copyrights added;jmc2003-02-181-1/+21
| | | | | | ed(1): Andrew Moore patch(1): Larry Wall (thanks espie@ for help with this one) units(1): Adrian Mariano
* typo; jmc@prioris.mini.pw.edu.plderaadt2003-01-061-3/+3
|
* 4 unchecked mallocs; cloder@acm.orgderaadt2002-07-042-4/+14
|
* patch(1) is now free, thanks Larry!niklas2002-03-052-6/+36
|
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-6/+1
|
* kill more registersmpech2001-11-191-32/+32
| | | | millert@ ok
* make patch -f and -b actually skip patches for which the file can't bebeck2000-12-141-2/+3
| | | | found, instead of claiming it will and erroring out anyway.
* a few more overflows goneprovos1999-12-042-43/+22
|
* revert strlcpy to strcpy for one case.provos1999-12-041-3/+3
|
* avoid overflowsprovos1999-12-043-21/+28
|
* patch file should hold at least one patch, otherwise we're entitled toespie1999-08-311-2/+6
| | | | a diagnostic.