summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-01-31 17:15:26 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2014-01-31 17:15:54 -0800
commitbc4b4b2bbf699267bab167af0484336780791953 (patch)
treef559a250090596a0a77361e86c271bb04fd1427e /NEWS
parent1875453ee6e1021d67c6856c46e7024bcecdbea8 (diff)
downloaddiffutils-bc4b4b2bbf699267bab167af0484336780791953.tar.gz
diff: exit with status 1, not 2, when binary files differ
Problem reported by Vincent Lefevre in <http://bugs.gnu.org/16608>. * NEWS: * doc/diffutils.texi (Binary, Invoking diff): Document this. * src/analyze.c (briefly_report): Return void, not int. All uses changed. Do not futz with exit status. Simplify. * tests/binary: Adjust to match new behavior.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 79517f2..aff7a9d 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,9 @@ GNU diffutils NEWS -*- outline -*-
** Bug fixes
+ When binary files differ, diff now exits with status 1 as POSIX requires.
+ Formerly it exited with status 2.
+
Unless the --ignore-file-name-case option is used, diff now
considers file names to be equal only if they are byte-for-byte
equivalent. This fixes a bug where diff in an English locale might