From 399aaf8ca1d8eca80d4fa98e040ec3dbd6e58e6b 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. (cherry-picked from 78a66df196d0d99c3985f2247f010f36e350471a) Change-Id: Idc16ab06bb06d5770fed2e05bd091fb53dd3307e 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 e6e26fd..b522c3d 100644 --- a/src/serialport/qserialportinfo_unix.cpp +++ b/src/serialport/qserialportinfo_unix.cpp @@ -95,8 +95,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