]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r316501, r316523
authorasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 30 May 2017 22:02:55 +0000 (22:02 +0000)
committerasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 30 May 2017 22:02:55 +0000 (22:02 +0000)
commitcc55ca7bebd3eb091714f106fe85a2a5e7c06b53
tree42ef502a3b4e0cb3f6ec13255ec167a6c9d29e6f
parent4a77c68912a3e271b2fda42ba79f05f2160593e9
MFC r316501, r316523

r316501:
Fix file descriptor and memory leaks in pr(1)

Also, hook NetBSD's pr test into the build, and add three more test cases.

Reported by: Coverity, Valgrind
CID: 271650 271651 271652 271653 271654 271655 271656 271656
CID: 271657 271658 271659 1006939 1006940 1006941 1006942 1009098
Reviewed by: ngie
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D9137

r316523:
Remove a duplicate fclose() that snuck into r316501

Reported by: Coverity
CID: 1373338
X-MFC-With: 316501
Sponsored by: Spectra Logic Corp

git-svn-id: svn://svn.freebsd.org/base/stable/10@319257 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
etc/mtree/BSD.tests.dist
usr.bin/pr/Makefile
usr.bin/pr/pr.c
usr.bin/pr/tests/Makefile [new file with mode: 0644]
usr.bin/pr/tests/across.out [new file with mode: 0644]
usr.bin/pr/tests/basic2_test.sh [new file with mode: 0644]
usr.bin/pr/tests/merge.out [new file with mode: 0644]
usr.bin/pr/tests/other.in [new file with mode: 0644]
usr.bin/pr/tests/threecol.out [new file with mode: 0644]