Changeset 76
- Timestamp:
- 12/27/05 14:44:09 (3 years ago)
- Files:
-
- trunk/AgentController.m (modified) (1 diff)
- trunk/Libs/SSHAgent.m (modified) (2 diffs)
- trunk/UpdateController.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/AgentController.m
r75 r76 709 709 theOutput = [[[NSString alloc] initWithData:[[thePipe fileHandleForReading] readDataToEndOfFile] encoding:NSASCIIStringEncoding] autorelease]; 710 710 711 if (strstr([theOutput cString], "ScreenSaverEngine.app") != nil)711 if ([theOutput rangeOfString:@"ScreenSaverEngine.app"].location != NSNotFound) 712 712 { 713 713 if((([[NSUserDefaults standardUserDefaults] integerForKey:OnScreensaverString] == 2) trunk/Libs/SSHAgent.m
r75 r76 183 183 /* Split the line with delimiter " ". */ 184 184 columns = [[lines objectAtIndex:i] componentsSeparatedByString:@" "]; 185 if ([columns count] != 3) 186 continue; 185 187 186 188 /* If 2nd column matches "SSH_AUTH_SOCK", then 3rd column is the socket path. */ 187 if (([columns count] == 3) && (strcmp([[columns objectAtIndex:1] cString], "SSH_AUTH_SOCK") == 0))189 if ([@"SSH_AUTH_SOCK" isEqualToString:[columns objectAtIndex:1]]) 188 190 { 189 191 [agentSocketPathLock lock]; … … 193 195 194 196 /* If 2nd column matches "SSH_AGENT_PID", then 3rd column is the PID. */ 195 if (([columns count] == 3) && (strcmp([[columns objectAtIndex:1] cString], "SSH_AGENT_PID") == 0))197 if ([@"SSH_AGENT_PID" isEqualToString:[columns objectAtIndex:1]]) 196 198 { 197 199 [thePidLock lock]; trunk/UpdateController.m
r49 r76 89 89 } 90 90 91 else if (strcmp([latestVersion cString], [currentVersion cString]) > 0)91 else if ([latestVersion compare:currentVersion] == NSOrderedDescending) 92 92 { 93 93 if((downloadURL) && (changesURL))
