summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/common.h
Commit message (Collapse)AuthorAgeFilesLines
* MFC r306560, r306561:pfg2016-10-091-4/+3
| | | | | | | | | patch(1): make some macros look boolean. Minor cleanup inspired by a new patch(1) variant in schily tools. For reference: https://sourceforge.net/p/schillix-on/
* Remove automatic checkout feature.delphij2015-08-151-6/+0
| | | | | | Obtained from: DragonFly via OpenBSD Relnotes: yes MFC: never
* Fix shell injection vulnerability in patch(1) and drop SCCSdelphij2015-07-281-4/+2
| | | | | | | | | support by replacing system() with execve(). Future revisions may remove the functionality completely. Obtained from: Bitrig Security: CVE-2015-1416
* patch(1): avoid line number overflowspfg2014-12-081-0/+1
| | | | | | | | | | | | | Introduce strtolinenum to properly check line numbers while parsing: no signs, no spaces, just digits, 0 <= x <= LONG_MAX Properly validate line ranges supplied in diff file to prevent overflows. Also fixes an out of boundary memory access because the resulting values are used as array indices. PR: 195436 Obtained from: OpenBSD (CVS pch.c rev 1.45, 1,46, common.h rev 1.28) MFC after: 1 week
* Various style(9) fixes and typos in grep, sort and patch.pfg2014-04-211-23/+23
| | | | MFC after: 3 days
* - Refresh code with latest OpenBSD revisions.delphij2013-01-291-3/+1
| | | | | | | | | - Remove $DragonFly$ tags as they are using git nowadays and VCS tags will not help merging. - Other changes to Copyright headers to make them consistent with other source code, we intend to fork from this point. Reviewed by: pfg
* - Add a BSD-licensed patch, ported by Pedro F. Giffuni (pfg) fromgabor2013-01-291-0/+121
| | | | | | | | DragonflyBSD and install it as bsdpatch. WITH_BSD_PATCH makes it default and installs GNU patch as gnupatch. Submitted by: pfg Obtained from: The DragonflyBSD Project
* kill the undeadpeter1997-07-131-138/+0
|
* Finish importing Lite2's src/usr.bin, except for ex, diff, grep, mail,bde1997-07-061-0/+138
| | | | | pascal and vmstat.sparc. All changed files on the vendor branch should already have been imported.
* recording cvs-1.6 file deathpeter1995-12-301-138/+0
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+138
OpenPOWER on IntegriCloud