From afb3e96f8a25d1b3cfdef64786ef689af27e1536 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sat, 5 Oct 1996 17:40:20 +0000 Subject: [PATCH] When MODE SELECT'ing, the ``device-specific parameter'' field is reserved by the SCSI-2 specs. Hence, zero it out. Some drives (correctly) complain about this otherwise. Reviewed by: craigs@os.com (Craig Shrimpton) --- sbin/scsi/scsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/scsi/scsi.c b/sbin/scsi/scsi.c index 52658c3b427..eb399a1d1c1 100644 --- a/sbin/scsi/scsi.c +++ b/sbin/scsi/scsi.c @@ -39,7 +39,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: scsi.c,v 1.10 1995/07/30 12:58:47 joerg Exp $ + * $Id: scsi.c,v 1.11 1996/04/06 11:00:28 joerg Exp $ */ #include @@ -820,7 +820,7 @@ mode_edit(int fd, int page, int edit, int argc, char *argv[]) bcopy((char *)mph, ((char *)mh) + sizeof(*mh), sizeof(*mph) + mph->page_length); - mh->bdl = 0; + mh->bdl = mh->dev_spec_par = 0; mph = (struct mode_page_header *) (((char *)mh) + sizeof(*mh)); mode_pars = ((char *)mph) + 2;