1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 07:05:24 +02:00

[238703][ssh] getFile() needs to lstat for consistency with internalFetch()

This commit is contained in:
Martin Oberhuber 2008-09-16 20:25:39 +00:00
parent c8ae8fad10
commit 909f995c39

View file

@ -33,6 +33,7 @@
* Martin Oberhuber (Wind River) - [235477][ssh] SftpFileService.createFolder() fails for file named "a?*"
* Martin Oberhuber (Wind River) - [235360][ftp][ssh][local] Return proper "Root" IHostFile
* David McKnight (IBM) - [235472] [ssh] RSE doesn't show correct properties of the file system root ("/")
* Martin Oberhuber (Wind River) - [238703] getFile() needs to lstat for consistency with internalFetch()
*******************************************************************************/
package org.eclipse.rse.internal.services.ssh.files;
@ -470,7 +471,7 @@ public class SftpFileService extends AbstractFileService implements ISshService,
String fullPath = concat(remoteParent, fileName);
if (fDirChannelMutex.waitForLock(monitor, fDirChannelTimeout)) {
try {
attrs = getChannel("SftpFileService.getFile: " + fullPath).stat(recodeSafeForJsch(fullPath)); //$NON-NLS-1$
attrs = getChannel("SftpFileService.getFile: " + fullPath).lstat(recodeSafeForJsch(fullPath)); //$NON-NLS-1$
Activator.trace("SftpFileService.getFile <--"); //$NON-NLS-1$
node = makeHostFile(remoteParent, fileName, attrs);
} catch(Exception e) {