[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Fix test for CTC devices from yesterday.



---
 pyanaconda/isys/devices.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/isys/devices.c b/pyanaconda/isys/devices.c
index 5d509c3..a30f006 100644
--- a/pyanaconda/isys/devices.c
+++ b/pyanaconda/isys/devices.c
@@ -172,7 +172,7 @@ storagedone:
             }
 
             /* S390 channel-to-channnel devices have type 256 */
-            if (type != 1 && !strncmp(ent->d_name, "ctc", 3) && type != 256)
+            if (type != 1 || (!strncmp(ent->d_name, "ctc", 3) && type != 256))
                 continue;
 
             new = calloc(1, sizeof(struct device));
-- 
1.7.1.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]