From 57425ecba42507d72d1895a13eb1972b51a790cb Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 17 Oct 2020 02:34:21 +0100 Subject: [PATCH] Fix getting type for SCSI magneto-optical devices in Linux. --- .idea/modules.xml | 5 ----- linux/device.c | 7 +++++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.idea/modules.xml b/.idea/modules.xml index e0016cd..d321f88 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -1,10 +1,5 @@ - - - - - diff --git a/linux/device.c b/linux/device.c index cd0d27a..31cb3a1 100644 --- a/linux/device.c +++ b/linux/device.c @@ -133,8 +133,11 @@ int32_t GetDeviceType(void* device_ctx) if(tmp_string) { - if(strncmp(tmp_string, "cd", 2) == 0 || strncmp(tmp_string, "disk", 4) == 0) - { device_type = AARUREMOTE_DEVICE_TYPE_SCSI; } + if(strncmp(tmp_string, "cd", 2) == 0 || strncmp(tmp_string, "disk", 4) == 0 || + strncmp(tmp_string, "optical", 7) == 0) + { + device_type = AARUREMOTE_DEVICE_TYPE_SCSI; + } free((void*)tmp_string); }