diff --git a/smb/kio_smb_browse.cpp b/smb/kio_smb_browse.cpp --- a/smb/kio_smb_browse.cpp +++ b/smb/kio_smb_browse.cpp @@ -469,7 +469,15 @@ } else { - if (errNum == EPERM || errNum == EACCES) { + if (errNum == EPERM || errNum == EACCES || + /* Treating the following return code as "invalid\unavailable login credentials" + * is a workaround for a regression in libsmbclient 4.7. + * This should be removed once this gets fixed or a more appropriate workaround + * is found. + * + * Upstream bug report: https://bugzilla.samba.org/show_bug.cgi?id=13050 + */ + errNum == EEXIST) { if (checkPassword(m_current_url)) { redirection( m_current_url ); finished();