summaryrefslogtreecommitdiff
path: root/usr.bin/patch/util.c
AgeCommit message (Expand)Author
2019-08-17signal handlers should not call exit() due to possibility of reenteringTheo de Raadt
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2018-12-30Delete unnecessary <libgen.h> #includesPhilip Guenther
2018-04-07Remove unused pathnames.h header since patch was refactoring into not invokinganton
2015-07-26Remove support for automatically checking files out of RCS. TheTodd C. Miller
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-12-13The function savestr allows NULL return values during Plan A patching so inTobias Stoeckmann
2014-11-22Remove SCCS support. For this to work, we would need "get", which we don'tTobias Stoeckmann
2013-11-26unsigned char casts for ctypeTheo de Raadt
2010-07-24Send normal output to stdout instead of everything to stderr. ThisRay Lai
2010-01-08Don't leak memory after strdup() in makedirs().Owain Ainsworth
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2006-03-11type police and assorted cleanup. From Lionel Fourquaux; ok ray@Otto Moerbeek
2005-06-20umask juggling not needed; with Lionel Fourquaux.Otto Moerbeek
2005-05-16Do not call out mkdir -p, but reuse the code from mkdir(1).Marc Espie
2004-11-19Allow for path names containing spaces and other funny chars (exceptOtto Moerbeek
2004-08-05spacingTheo de Raadt
2003-10-31o fairly major man page reorganizationTodd C. Miller
2003-08-15Add license from patch.c to original source files missing a license.Otto Moerbeek
2003-08-01- use stdbool.h instead of roll-your-own booleansOtto Moerbeek
2003-07-31Unbreak relative directory handling. Tweak from millert@Otto Moerbeek
2003-07-30Make prompting POSIX-compliant. POSIX states "The patch utilityTodd C. Miller
2003-07-29o add pathnames.hTodd C. Miller
2003-07-28Don't treat consecutive slashes as path components; matches POSIXTodd C. Miller
2003-07-28More cleanup: sprinkled some const, removed ugly EXTERN/INTERN.h,Otto Moerbeek
2003-07-28Make patch(1) exit value match POSIX and be consistent with diff.Todd C. Miller
2003-07-25Add POSIX -b option but don't change the default beahvior wrt backupsTodd C. Miller
2003-07-22just about nothingTheo de Raadt
2003-07-22More cleanup.Otto Moerbeek
2003-07-21fix headerTheo de Raadt
2003-07-21remove a bit more junkTheo de Raadt
2003-07-21knf and other cleanup; ok ottoTheo de Raadt
2003-07-18remove junk; ok otto teduTheo de Raadt
2003-04-08strcpy trashing, help from tedu; ok teduTheo de Raadt
2003-04-05string fixes; ok miod henningTheo de Raadt
1999-12-04a few more overflows goneNiels Provos
1999-12-04revert strlcpy to strcpy for one case.Niels Provos
1999-12-04avoid overflowsNiels Provos
1999-01-11fix seg fault on sparcMarco S Hyman
1999-01-03Use libc basename(3) and dirname(3) instead of defining our own. Also clean ...Todd C. Miller
1997-09-22Start of -Wall and cleaning up icky bits.Todd C. Miller
1996-09-24sprintf -> snprintf except where guaranteed safe.Todd C. Miller
1996-06-10Support the long options that FSF's patch version has. $OpenBSD$ addedNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt