diff options
author | jh <jh@FreeBSD.org> | 2009-12-12 18:18:46 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2009-12-12 18:18:46 +0000 |
commit | 6f2f9130ae5714e33ad56898dfeb3e346eabe1ac (patch) | |
tree | baf10a3cfd8781a67dfd541bad7dcfd9be5bec94 /sys/kern/kern_lock.c | |
parent | 1cb0051d8fdfdee7a6f9572c91c5c1f89d419c53 (diff) | |
download | FreeBSD-src-6f2f9130ae5714e33ad56898dfeb3e346eabe1ac.zip FreeBSD-src-6f2f9130ae5714e33ad56898dfeb3e346eabe1ac.tar.gz |
Don't read the newline character to line buffer because lines are passed
to wcscoll(3). Newline characters could cause incorrect results when
comparing lines.
Also, if an input line didn't contain a newline character, it was
omitted from the output. According to my interpretation, SUSv3 requires
that the newline is always printed.
Add regression tests for the cases. [1]
PR: bin/140976
Submitted by: D'Arcy Cain (original version) [1]
Approved by: trasz (mentor)
Diffstat (limited to 'sys/kern/kern_lock.c')
0 files changed, 0 insertions, 0 deletions