mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-24 01:07:21 +01:00
Also coerce diff(1) into working the other way (from no-\n to \n).
Taking out the evil warning fixed it one way, but didn't make the other way any better, so replace it with printing a single \n.
This commit is contained in:
parent
5c83e80d3f
commit
0fbf304b54
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65889
@ -483,6 +483,9 @@ print_1_line (line_flag, line)
|
||||
}
|
||||
|
||||
output_1_line (text, limit, flag_format, line_flag);
|
||||
|
||||
if ((!line_flag || line_flag[0]) && limit[-1] != '\n')
|
||||
fputc ('\n', out);
|
||||
}
|
||||
|
||||
/* Output a line from TEXT up to LIMIT. Without -t, output verbatim.
|
||||
|
Loading…
Reference in New Issue
Block a user