File: upstream_e9793802_Add-break-after-pubkey-partial-auth.patch

package info (click to toggle)
kio-extras 4%3A25.04.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,936 kB
  • sloc: cpp: 28,907; ansic: 3,084; perl: 1,048; xml: 116; sh: 92; python: 28; makefile: 9
file content (26 lines) | stat: -rw-r--r-- 904 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From e979380220b5e8894cc21c9be636c0eef005a967 Mon Sep 17 00:00:00 2001
From: Facundo Almeida <facundoalmeida@gmail.com>
Date: Tue, 20 May 2025 21:44:26 -0300
Subject: [PATCH] Add break after pubkey partial auth

This will stop trying other pubkeys and will move on to the next
supported authentication method (keyboard-interactive)
---
 sftp/kio_sftp.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sftp/kio_sftp.cpp b/sftp/kio_sftp.cpp
index b5882989d..27c345e0a 100644
--- a/sftp/kio_sftp.cpp
+++ b/sftp/kio_sftp.cpp
@@ -890,6 +890,7 @@ Result SFTPWorker::openConnectionWithoutCloseOnError()
             }
             if (rc == SSH_AUTH_PARTIAL) {
                 method = ssh_auth_list(mSession);
+                break;
             }
             if (rc != SSH_AUTH_DENIED || !mPublicKeyAuthInfo || !mPublicKeyAuthInfo->isModified()) {
                 clearPubKeyAuthInfo();
-- 
GitLab