--- src/simple-mtpfs-fuse.cpp~ +++ src/simple-mtpfs-fuse.cpp @@ -383,11 +383,9 @@ bool SMTPFileSystem::exec() } #ifdef HAVE_LIBUSB1 - if (m_options.m_device_file) { - // Try to use device file first, if provided - if (!m_device.connect(m_options.m_device_file)) - return false; - } else + // Try to use device file first, ignore otherwise + if (!m_options.m_device_file || + !m_device.connect(m_options.m_device_file)) #endif // HAVE_LIBUSB1 { // Connect to MTP device by order number, if no device file supplied