]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Adjust a couple of error cases in camdd(8).
authorken <ken@FreeBSD.org>
Thu, 19 May 2016 19:13:43 +0000 (19:13 +0000)
committerken <ken@FreeBSD.org>
Thu, 19 May 2016 19:13:43 +0000 (19:13 +0000)
commit66efac2b7a4aaf2aef95964f57573551bb9e81d0
tree904322679cfe60f4a7560094cdb14a66b20d60a5
parenta17cbcde0a6c0d655fca3d82799c8d1ad343e666
Adjust a couple of error cases in camdd(8).

usr.sbin/camdd/camdd.c:
In camdd_probe_file(), fix an error case after fstat where
we were bailing out and leaving two lines of cleanup code
unexecuted.  Instead, just goto bailout_error.

In camdd_probe_pass(), fail if the sector size is 0.

Sponsored by: Spectra Logic
MFC after: 3 days
usr.sbin/camdd/camdd.c