From d3c740d7256303bd9fb11aa856cb3770d51257d9 Mon Sep 17 00:00:00 2001 From: jwise Date: Wed, 24 Feb 1999 18:51:39 +0000 Subject: [PATCH] Code to check if a cooked device was specified was failing even if the cooked device was opened successfully. Also fix a typo. Fixes second part of PR bin/6883 for Soren S. Jorvang --- sbin/scsictl/scsi_sense.c | 4 ++-- sbin/scsictl/scsictl.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sbin/scsictl/scsi_sense.c b/sbin/scsictl/scsi_sense.c index ba39fdf4c4e7..0aaa2fa29d29 100644 --- a/sbin/scsictl/scsi_sense.c +++ b/sbin/scsictl/scsi_sense.c @@ -1,4 +1,4 @@ -/* $NetBSD: scsi_sense.c,v 1.1 1998/10/15 21:44:39 thorpej Exp $ */ +/* $NetBSD: scsi_sense.c,v 1.2 1999/02/24 18:51:39 jwise Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -220,7 +220,7 @@ static const struct { { 0x3B, 0x0C, "Position Past Beginning Of Medium" }, { 0x3B, 0x0D, "Medium Destination Element Full" }, { 0x3B, 0x0E, "Medium Source Element Empty" }, -{ 0x3D, 0x00, "Invalid Bits In IDENTFY Message" }, +{ 0x3D, 0x00, "Invalid Bits In IDENTIFY Message" }, { 0x3E, 0x00, "Logical Unit Has Not Self-Configured Yet" }, { 0x3F, 0x00, "Target Operating Conditions Have Changed" }, { 0x3F, 0x01, "Microcode Has Changed" }, diff --git a/sbin/scsictl/scsictl.c b/sbin/scsictl/scsictl.c index b1c17f05e556..f9ebb99a9e3e 100644 --- a/sbin/scsictl/scsictl.c +++ b/sbin/scsictl/scsictl.c @@ -1,4 +1,4 @@ -/* $NetBSD: scsictl.c,v 1.4 1998/11/12 01:16:09 thorpej Exp $ */ +/* $NetBSD: scsictl.c,v 1.5 1999/02/24 18:51:39 jwise Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -134,8 +134,8 @@ main(argc, argv) sizeof(dvname_store), 1); if (fd == -1) err(1, "%s", dvname); - } - err(1, "%s", dvname); + } else + err(1, "%s", dvname); } /*