]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
diff: restore compatibility with GNU diff regarding -N option
authorbapt <bapt@FreeBSD.org>
Mon, 1 Jun 2020 09:09:36 +0000 (09:09 +0000)
committerbapt <bapt@FreeBSD.org>
Mon, 1 Jun 2020 09:09:36 +0000 (09:09 +0000)
commit33b4e3576a320eda446bc86b05aece313b5a3111
tree31f7afbaab01cc5c615ef7bfc62977a153957cf3
parent5fe43caddefce2112c4fa2e56b49a0d2ffce731b
diff: restore compatibility with GNU diff regarding -N option

When -N is used the missing files are treated as empty.

PR: 233402
Submitted by: Fehmi Noyan Isi <fnoyanisi@yahoo.com>
Reported by: Roman Neuhauser <roman@sigpipe.cz>
MFC after: 3 days
Differential Revision: D25081
usr.bin/diff/diff.c
usr.bin/diff/tests/diff_test.sh