diff options
author | Jim Meyering <meyering@fb.com> | 2015-11-28 18:02:05 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2015-12-06 11:37:44 -0800 |
commit | a3ea9cd5cb911a0319c81b01e205b24c92a8535c (patch) | |
tree | d0128e5353d222f1e8e97eece6abc21bfebbcbe8 /po/en.po | |
parent | a1140dd45845d838401425f9a3c0af944abb5795 (diff) | |
download | diffutils-a3ea9cd5cb911a0319c81b01e205b24c92a8535c.tar.gz |
diff --brief no longer mistakenly reports diff. with 0-sized /proc/ files
Normally, it is safe to assume two regular files are different when
their st_size values are different. However, that assumption may
be invalid if either value is zero, as happens with files on Linux
/proc and /sys file systems. Since skipping this optimization will
usually cost very little (one read syscall, to read zero bytes),
it is fine to accommodate those unusual files.
* src/analyze.c (diff_2_files): Do not assume regular files differ
just because their st_size values differ when one or more is 0.
* src/diff.c (compare_files): Likewise.
* tests/brief-vs-proc-stat-zero: New test.
* tests/Makefile.am: Add it.
* NEWS (Bug fixes): Describe it.
Reported by Stephan Müller in http://debbugs.gnu.org/21942
Diffstat (limited to 'po/en.po')
0 files changed, 0 insertions, 0 deletions