From f0129ad176d6dd6f5f12ca93263d561d91b8f259 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Fri, 27 Oct 2006 09:19:53 +0000 Subject: [PATCH] Ignore scPhaseErr on SCSIRead() --- libscsi/scsi_command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libscsi/scsi_command.c b/libscsi/scsi_command.c index 9ab4686..4556bf7 100644 --- a/libscsi/scsi_command.c +++ b/libscsi/scsi_command.c @@ -10,6 +10,7 @@ #include #include +#include #include "libscsi.h" @@ -43,7 +44,7 @@ int scsi_command(int target, char* cdb, int count, TIB_t* tib) } err = SCSIRead(tib); - if (err != noErr) + if ((err != scPhaseErr) && (err != noErr)) { printf("Cannot read data (%d)\n", err); goto complete;