From 0a3db5d691cadb02080292f761c16f9c94ec547e Mon Sep 17 00:00:00 2001 From: Gregor Harlan Date: Tue, 9 Nov 2021 00:32:44 +0100 Subject: [PATCH] Fix controlPath (length < 104) (#2740) --- src/Component/Ssh/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Component/Ssh/Client.php b/src/Component/Ssh/Client.php index 719ce081..f94db8a1 100644 --- a/src/Component/Ssh/Client.php +++ b/src/Component/Ssh/Client.php @@ -259,7 +259,7 @@ class Client $controlPath = "$homeDir/.ssh/deployer_$connectionData"; } $tryLongestPossible++; - } while (strlen($controlPath) + $connectionHashLength > $unixMaxPath); // Unix socket max length + } while (strlen($controlPath) + $connectionHashLength >= $unixMaxPath); // Unix socket max length return $controlPath; }