freebsd-dev/usr.bin/patch
Kyle Evans 50dacbf6c2 patch(1): give /dev/null patches special treatment
We have a bad habit of duplicating contents of files that are sourced from
/dev/null and applied more than once... take the more sane (in most ways)
GNU route and complain if the file exists and offer reversal options.

This still falls short a little bit as selecting "don't reverse, apply
anyway" will still give you duplicated file contents. There's probably other
issues as well, but awareness is the first step to happiness.

MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D21535
2019-11-04 03:07:01 +00:00
..
tests patch(1): give /dev/null patches special treatment 2019-11-04 03:07:01 +00:00
backupfile.c
backupfile.h
common.h patch(1): Exit successfully if we're fed a 0-length patch 2019-03-01 01:20:21 +00:00
inp.c patch(1): Don't check for NUL bytes in Plan A 2018-01-11 15:01:48 +00:00
inp.h
Makefile patch(1): add some basic tests 2019-09-05 03:16:14 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mkpath.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
patch.1 patch(1): give /dev/null patches special treatment 2019-11-04 03:07:01 +00:00
patch.c patch(1): give /dev/null patches special treatment 2019-11-04 03:07:01 +00:00
pathnames.h Fix shell injection vulnerability in patch(1) via ed(1) by 2015-08-05 22:04:54 +00:00
pch.c patch(1): give /dev/null patches special treatment 2019-11-04 03:07:01 +00:00
pch.h patch(1): give /dev/null patches special treatment 2019-11-04 03:07:01 +00:00
util.c patch(1): give /dev/null patches special treatment 2019-11-04 03:07:01 +00:00
util.h Remove automatic checkout feature. 2015-08-15 00:42:33 +00:00