From 0311db3d073af618f625b81c9bb5e7e06104ae5e Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sun, 19 Aug 2012 21:13:28 +0000 Subject: - Use a short hashed form of the connection path for SSH ControlPath settings, to aid length issues with the new sandbox-safe temporary folders being used - Clean up SSH argument code --- Source/SPFileManagerAdditions.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/SPFileManagerAdditions.m') diff --git a/Source/SPFileManagerAdditions.m b/Source/SPFileManagerAdditions.m index 779ed8ba..2e63b120 100644 --- a/Source/SPFileManagerAdditions.m +++ b/Source/SPFileManagerAdditions.m @@ -159,8 +159,10 @@ static NSString *DirectoryLocationDomain = @"DirectoryLocationDomain"; if (!tempDir) { tempDir = @"/tmp"; + } else if ([tempDir characterAtIndex:([tempDir length] - 1)] == '/') { + tempDir = [tempDir substringToIndex:([tempDir length] - 1)]; } - + return tempDir; } -- cgit v1.2.3