Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove support for automatically checking files out of RCS. The | 2015-07-26 | 1 | -25/+1 | |
| | | | | | behavior is confusing to users and even GNU patch no longer does it by default. OK krw@ guenther@ | ||||
* | Replace <sys/param.h> with <limits.h> and other less dirty headers where | 2015-01-16 | 1 | -4/+3 | |
| | | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol) | ||||
* | The function savestr allows NULL return values during Plan A patching so in | 2014-12-13 | 1 | -1/+17 | |
| | | | | | | case of out of memory conditions, Plan B can step in. In many cases, NULL value is not properly handled, so use xstrdup here (it's outside Plan A/B patching, which means that even Plan B relies on successful operations). | ||||
* | Remove SCCS support. For this to work, we would need "get", which we don't | 2014-11-22 | 1 | -5/+3 | |
| | | | | | | even have in ports. XSI functionality of POSIX, therefore optional. ok deraadt, schwarze, tedu | ||||
* | unsigned char casts for ctype | 2013-11-26 | 1 | -5/+5 | |
| | | | | ok krw | ||||
* | Send normal output to stdout instead of everything to stderr. This | 2010-07-24 | 1 | -3/+3 | |
| | | | | | | | | | | 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 | 1 | -5/+1 | |
| | | | | | | | 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 | ||||
* | type police and assorted cleanup. From Lionel Fourquaux; ok ray@ | 2006-03-11 | 1 | -2/+3 | |
| | |||||
* | umask juggling not needed; with Lionel Fourquaux. | 2005-06-20 | 1 | -6/+3 | |
| | | | | ok millert@ espie@ | ||||
* | Do not call out mkdir -p, but reuse the code from mkdir(1). | 2005-05-16 | 1 | -9/+8 | |
| | | | | | | | | | | | 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@ | ||||
* | 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@ | ||||
* | spacing | 2004-08-05 | 1 | -2/+2 | |
| | |||||
* | o fairly major man page reorganization | 2003-10-31 | 1 | -20/+31 | |
| | | | | | | 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@ | ||||
* | Add license from patch.c to original source files missing a license. | 2003-08-15 | 1 | -2/+28 | |
| | | | | ok deraadt@ | ||||
* | - use stdbool.h instead of roll-your-own booleans | 2003-08-01 | 1 | -4/+4 | |
| | | | | | | | | | - 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@ | ||||
* | Unbreak relative directory handling. Tweak from millert@ | 2003-07-31 | 1 | -4/+5 | |
| | | | | ok millert@ | ||||
* | 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 | 1 | -6/+8 | |
| | | | | | | o ignore empty TMPDIR environment variable o strip any trailing slashes from TMPDIR otto@ OK | ||||
* | 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 | 1 | -32/+29 | |
| | | | | | | some rewriting of code to make it more readable and more KNF. ok millert@ tedu@ deraadt@ | ||||
* | Make patch(1) exit value match POSIX and be consistent with diff. | 2003-07-28 | 1 | -5/+5 | |
| | | | | Comments and OK from otto@ | ||||
* | Add POSIX -b option but don't change the default beahvior wrt backups | 2003-07-25 | 1 | -86/+67 | |
| | | | | yet. The old -b option is now -z (matches GNU patch). | ||||
* | just about nothing | 2003-07-22 | 1 | -3/+3 | |
| | |||||
* | More cleanup. | 2003-07-22 | 1 | -12/+35 | |
| | | | | ok millert@ tedu@ | ||||
* | fix header | 2003-07-21 | 1 | -2/+2 | |
| | |||||
* | remove a bit more junk | 2003-07-21 | 1 | -3/+3 | |
| | |||||
* | knf and other cleanup; ok otto | 2003-07-21 | 1 | -317/+311 | |
| | |||||
* | remove junk; ok otto tedu | 2003-07-18 | 1 | -107/+98 | |
| | |||||
* | strcpy trashing, help from tedu; ok tedu | 2003-04-08 | 1 | -3/+3 | |
| | |||||
* | string fixes; ok miod henning | 2003-04-05 | 1 | -3/+3 | |
| | |||||
* | a few more overflows gone | 1999-12-04 | 1 | -40/+19 | |
| | |||||
* | revert strlcpy to strcpy for one case. | 1999-12-04 | 1 | -3/+3 | |
| | |||||
* | avoid overflows | 1999-12-04 | 1 | -9/+12 | |
| | |||||
* | fix seg fault on sparc | 1999-01-11 | 1 | -3/+3 | |
| | |||||
* | Use libc basename(3) and dirname(3) instead of defining our own. Also clean up some nasty assumptions that basename() returns a pointer that lies within its argument | 1999-01-03 | 1 | -14/+11 | |
| | |||||
* | Start of -Wall and cleaning up icky bits. | 1997-09-22 | 1 | -25/+18 | |
| | |||||
* | sprintf -> snprintf except where guaranteed safe. | 1996-09-24 | 1 | -4/+4 | |
| | |||||
* | Support the long options that FSF's patch version has. $OpenBSD$ added | 1996-06-10 | 1 | -1/+3 | |
| | |||||
* | initial import of NetBSD tree | 1995-10-18 | 1 | -0/+441 | |