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

[217472][ftp] Error copying files with very short filenames

This commit is contained in:
Martin Oberhuber 2008-09-16 22:01:57 +00:00
parent 6c1d3cb6c3
commit dd7af8dd5c

View file

@ -80,6 +80,7 @@
* Martin Oberhuber (Wind River) - [235360][ftp][ssh][local] Return proper "Root" IHostFile * Martin Oberhuber (Wind River) - [235360][ftp][ssh][local] Return proper "Root" IHostFile
* Martin Oberhuber (Wind River) - [240738][ftp] Incorrect behavior on getFile for non-existing folder * Martin Oberhuber (Wind River) - [240738][ftp] Incorrect behavior on getFile for non-existing folder
* David McKnight (IBM) - [243921] FTP subsystem timeout causes error when expanding folders * David McKnight (IBM) - [243921] FTP subsystem timeout causes error when expanding folders
* Martin Oberhuber (Wind River) - [217472][ftp] Error copying files with very short filenames
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.internal.services.files.ftp; package org.eclipse.rse.internal.services.files.ftp;
@ -1366,7 +1367,7 @@ public class FTPService extends AbstractFileService implements IFTPService, IFil
File tempFile = null; File tempFile = null;
try { try {
tempFile = File.createTempFile(srcName, String.valueOf(srcParent.hashCode())); tempFile = File.createTempFile("ftpcp" + String.valueOf(srcParent.hashCode()), "temp");
tempFile.deleteOnExit(); tempFile.deleteOnExit();
} catch (IOException e) { } catch (IOException e) {
throw new RemoteFileIOException(e); throw new RemoteFileIOException(e);