mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 06:45:43 +02:00
[285948] Avoid recursive deletion over symbolic links
This commit is contained in:
parent
db3e6c68dd
commit
056ebcef40
1 changed files with 2 additions and 1 deletions
|
@ -82,6 +82,7 @@
|
||||||
* 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
|
* Martin Oberhuber (Wind River) - [217472][ftp] Error copying files with very short filenames
|
||||||
* Martin Oberhuber (Wind River) - [285942] Throw exception when listing a non-folder
|
* Martin Oberhuber (Wind River) - [285942] Throw exception when listing a non-folder
|
||||||
|
* Martin Oberhuber (Wind River) - [285948] Avoid recursive deletion over symbolic links
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.services.files.ftp;
|
package org.eclipse.rse.internal.services.files.ftp;
|
||||||
|
@ -1176,7 +1177,7 @@ public class FTPService extends AbstractFileService implements IFTPService, IFil
|
||||||
if (curName == null || curName.equals(".") || curName.equals("..")) { //$NON-NLS-1$ //$NON-NLS-2$
|
if (curName == null || curName.equals(".") || curName.equals("..")) { //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
internalDelete(ftpClient, newParentPath, curName, fileNames[i].isFile(), monitor);
|
internalDelete(ftpClient, newParentPath, curName, fileNames[i].isFile() || fileNames[i].isSymbolicLink(), monitor);
|
||||||
}
|
}
|
||||||
|
|
||||||
//remove empty folder
|
//remove empty folder
|
||||||
|
|
Loading…
Add table
Reference in a new issue