Fix controlPath (length < 104) (#2740)

This commit is contained in:
Gregor Harlan 2021-11-09 00:32:44 +01:00 committed by GitHub
parent a2b3da8c32
commit 0a3db5d691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}