From e3835f38f6747167edd0e83bf737d48f32892cdf Mon Sep 17 00:00:00 2001
From: ballen4705 <ballen4705@4ea69e1a-61f1-4043-bf83-b5c94c648137>
Date: Sat, 16 Nov 2002 18:23:37 +0000
Subject: [PATCH] =?UTF-8?q?Fixed=20inverted=20logic=20pointed=20out=20by?=
 =?UTF-8?q?=20=20Erik=20Inge=20Bols=C3=B8"=20<knan@mo.himolde.no>?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@286 4ea69e1a-61f1-4043-bf83-b5c94c648137
---
 sm5/smartd.c   | 4 ++--
 sm5/smartd.cpp | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sm5/smartd.c b/sm5/smartd.c
index 797780fbd..fa0b6fee6 100644
--- a/sm5/smartd.c
+++ b/sm5/smartd.c
@@ -45,7 +45,7 @@
 
 // CVS ID strings
 extern const char *CVSid1, *CVSid2;
-const char *CVSid6="$Id: smartd.c,v 1.64 2002/11/13 10:59:32 ballen4705 Exp $" 
+const char *CVSid6="$Id: smartd.c,v 1.65 2002/11/16 18:23:37 ballen4705 Exp $" 
 CVSID1 CVSID2 CVSID3 CVSID4 CVSID7;
 
 // global variable used for control of printing, passing arguments, etc.
@@ -448,7 +448,7 @@ int scsidevicescan(scsidevices_t *devices, cfgfile *cfg){
   printout(LOG_INFO,"Device: %s, opened\n", device);
   
   // check that it's ready for commands
-  if (!testunitready(fd)){
+  if (testunitready(fd)){
     printout(LOG_INFO,"Device: %s, Failed Test Unit Ready\n", device);
     close(fd);
     return 2;
diff --git a/sm5/smartd.cpp b/sm5/smartd.cpp
index 51275e061..962f428a9 100644
--- a/sm5/smartd.cpp
+++ b/sm5/smartd.cpp
@@ -45,7 +45,7 @@
 
 // CVS ID strings
 extern const char *CVSid1, *CVSid2;
-const char *CVSid6="$Id: smartd.cpp,v 1.64 2002/11/13 10:59:32 ballen4705 Exp $" 
+const char *CVSid6="$Id: smartd.cpp,v 1.65 2002/11/16 18:23:37 ballen4705 Exp $" 
 CVSID1 CVSID2 CVSID3 CVSID4 CVSID7;
 
 // global variable used for control of printing, passing arguments, etc.
@@ -448,7 +448,7 @@ int scsidevicescan(scsidevices_t *devices, cfgfile *cfg){
   printout(LOG_INFO,"Device: %s, opened\n", device);
   
   // check that it's ready for commands
-  if (!testunitready(fd)){
+  if (testunitready(fd)){
     printout(LOG_INFO,"Device: %s, Failed Test Unit Ready\n", device);
     close(fd);
     return 2;
-- 
GitLab