aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/backport
blob: 9e2ccdd36268f2e291254f394e9301597cec8145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Replace (map|set)::emplace with insert.
Author: Timo Weingärtner <timo@tiwe.de>

--- ssh-agent-filter-0.3.orig/ssh-agent-filter.C
+++ ssh-agent-filter-0.3/ssh-agent-filter.C
@@ -245,7 +245,7 @@ void setup_filters () {
 			if (debug) std::clog << "key allowed by matching comment" << std::endl;
 		}
 		
-		if (allow) allowed_pubkeys.emplace(std::move(key));
+		if (allow) allowed_pubkeys.insert(std::move(key));
 		else {
 			bool confirm{false};
 			
@@ -266,7 +266,7 @@ void setup_filters () {
 				if (debug) std::clog << "key allowed with confirmation by catch-all (-A)" << std::endl;
 			}
 			
-			if (confirm) confirmed_pubkeys.emplace(std::move(key), std::move(comm));
+			if (confirm) confirmed_pubkeys.insert(make_pair(std::move(key), std::move(comm)));
 		}
 
 		if (debug) std::clog << std::endl;