]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Quell Coverity for diskinfo(8)
authorAlan Somers <asomers@FreeBSD.org>
Wed, 4 Jan 2017 00:39:06 +0000 (00:39 +0000)
committerAlan Somers <asomers@FreeBSD.org>
Wed, 4 Jan 2017 00:39:06 +0000 (00:39 +0000)
commit4c9f98e28a0c934eaa4afb7666715b8a311529b2
tree7fe63da857542d238f05403cd4ac327a26b99036
parent0642856a1e7aa5af07fcaa6e4a95a956878433d1
Quell Coverity for diskinfo(8)

* CID 1198994: Don't run the speed disk on a disk with no sectors
* CID 1011442: Don't call close(2) if open(2) fails
* CID 1011161: Use snprintf instead of sprintf
* CID 1009825: Check the return value of lseek

Reported by: Coverity
CID: 1198994 1011442 1011161 1009825
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
usr.sbin/diskinfo/diskinfo.c