summaryrefslogtreecommitdiff
path: root/sys/scsi/scsi_base.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-12-31 01:22:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-12-31 01:22:11 +0000
commit4ba726044a9cf6e9ec84f0d00f00b5f179805a5e (patch)
treee3b774a864a15dc45e98b51c0a2fc4b3cca7ed4d /sys/scsi/scsi_base.c
parent4d809f40b956f65639595bf2637c3742f1f0b8cd (diff)
return EROFS for write protect; is
Diffstat (limited to 'sys/scsi/scsi_base.c')
-rw-r--r--sys/scsi/scsi_base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index 5986bc6577b..454ef793028 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_base.c,v 1.19 1997/09/11 21:05:22 niklas Exp $ */
+/* $OpenBSD: scsi_base.c,v 1.20 1997/12/31 01:22:10 deraadt Exp $ */
/* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */
/*
@@ -685,7 +685,7 @@ scsi_interpret_sense(xs)
error = EIO;
break;
case 0x7: /* DATA PROTECT */
- error = EACCES;
+ error = EROFS;
break;
case 0x8: /* BLANK CHECK */
error = 0;