summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2000-07-24 07:40:02 +0000
committergreen <green@FreeBSD.org>2000-07-24 07:40:02 +0000
commit78de2a5609da41a8912ba2871a611e139cee265a (patch)
tree4e6e4be28c3e2ed2fcda23d948909c8f70426abf /contrib
parentacc66855bf5786e46e7a1f2c9805ca96cc90c681 (diff)
downloadFreeBSD-src-78de2a5609da41a8912ba2871a611e139cee265a.zip
FreeBSD-src-78de2a5609da41a8912ba2871a611e139cee265a.tar.gz
Get rid of the stupid bug where diff sticks trash in your generated
diff output; there being no trailing newline caused it to bitch and moan and ruin diffs. That's dumb, if I may say so myself. Yes, this file is coming off the vendor branch. It hasn't been updated in 6 years. Approved by: peter
Diffstat (limited to 'contrib')
-rw-r--r--contrib/diff/util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/diff/util.c b/contrib/diff/util.c
index 07b24a7..3cd3f91 100644
--- a/contrib/diff/util.c
+++ b/contrib/diff/util.c
@@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License
along with GNU DIFF; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+/* $FreeBSD$ */
+
#include "diff.h"
#ifndef PR_PROGRAM
@@ -481,9 +483,6 @@ print_1_line (line_flag, line)
}
output_1_line (text, limit, flag_format, line_flag);
-
- if ((!line_flag || line_flag[0]) && limit[-1] != '\n')
- fprintf (out, "\n\\ No newline at end of file\n");
}
/* Output a line from TEXT up to LIMIT. Without -t, output verbatim.
OpenPOWER on IntegriCloud