From 78a66df196d0d99c3985f2247f010f36e350471a Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Tue, 11 Aug 2015 18:27:27 +0300 Subject: Do not append a non-serial ports on Free BSD Commit 4328ab9709561842c680bc8bb7e4f2abc3ea3852 does not fix an issue, because need to analyze ends of the deviceAbsoluteFilePath variable. Change-Id: Idc16ab06bb06d5770fed2e05bd091fb53dd3307e Reviewed-by: Sergey Belyashov Reviewed-by: Denis Shienkov --- src/serialport/qserialportinfo_unix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serialport/qserialportinfo_unix.cpp b/src/serialport/qserialportinfo_unix.cpp index 0fc5046..69c39dc 100644 --- a/src/serialport/qserialportinfo_unix.cpp +++ b/src/serialport/qserialportinfo_unix.cpp @@ -87,8 +87,8 @@ static QStringList filteredDeviceFilePaths() #ifdef Q_OS_FREEBSD // it is a quick workaround to skip the non-serial devices - if (deviceFilePaths.endsWith(QLatin1String(".init")) - || deviceFilePaths.endsWith(QLatin1String(".lock"))) { + if (deviceAbsoluteFilePath.endsWith(QLatin1String(".init")) + || deviceAbsoluteFilePath.endsWith(QLatin1String(".lock"))) { continue; } #endif -- cgit v1.2.1