freebsd-skq/usr.bin/patch
Stefan Eßer 6b239879f8 Fix target selection logic, which did not comply with the man page.
Instead of using the file with the least order of path name components,
shortest filename and finally the shortest basename (with the search
stopping as soon as one of these conditions is true), the first filename
checked was used as the reference, and another filename was only selected
if all of the above comparisons are in favour of the latter file.

This was wrong, because filenames with path less components were only
considered, if both of the other conditions were true as well. In fact,
the first filename to be checked had good chances to be selected in the
end, since it only needed to be better with regard to any one of the
three criteria ...

Reviewed by:	delphij@freebsd.org
2013-05-23 20:57:20 +00:00
..
backupfile.c
backupfile.h
common.h
inp.c
inp.h
Makefile
mkpath.c
patch.1 Remove contractions. 2013-04-11 18:46:41 +00:00
patch.c
pathnames.h
pch.c Fix target selection logic, which did not comply with the man page. 2013-05-23 20:57:20 +00:00
pch.h
util.c patch: Follow original versioning convention. 2013-02-08 19:39:15 +00:00
util.h