aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFileManagerAdditions.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-08-19 21:13:28 +0000
committerrowanbeentje <rowan@beent.je>2012-08-19 21:13:28 +0000
commit0311db3d073af618f625b81c9bb5e7e06104ae5e (patch)
tree3e9efa48e2210c67a73efb8dfa3ed541079f6fa2 /Source/SPFileManagerAdditions.m
parent62c8fd59519b2539a7ed031f5fa815a86efd85e1 (diff)
downloadsequelpro-0311db3d073af618f625b81c9bb5e7e06104ae5e.tar.gz
sequelpro-0311db3d073af618f625b81c9bb5e7e06104ae5e.tar.bz2
sequelpro-0311db3d073af618f625b81c9bb5e7e06104ae5e.zip
- 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
Diffstat (limited to 'Source/SPFileManagerAdditions.m')
-rw-r--r--Source/SPFileManagerAdditions.m4
1 files changed, 3 insertions, 1 deletions
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;
}