Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 76964 Details for
Bug 174690
[ssh] cannot delete symbolic links on remote systems
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
workaround
rse-link.diff (text/plain), 1.21 KB, created by
Benjamin Muskalla
on 2007-08-24 19:51:37 EDT
(
hide
)
Description:
workaround
Filename:
MIME Type:
Creator:
Benjamin Muskalla
Created:
2007-08-24 19:51:37 EDT
Size:
1.21 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rse.services.ssh >Index: src/org/eclipse/rse/internal/services/ssh/files/SftpFileService.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.tm.rse/plugins/org.eclipse.rse.services.ssh/src/org/eclipse/rse/internal/services/ssh/files/SftpFileService.java,v >retrieving revision 1.20 >diff -u -r1.20 SftpFileService.java >--- src/org/eclipse/rse/internal/services/ssh/files/SftpFileService.java 10 Aug 2007 11:37:27 -0000 1.20 >+++ src/org/eclipse/rse/internal/services/ssh/files/SftpFileService.java 24 Aug 2007 23:50:04 -0000 >@@ -671,6 +671,11 @@ > String fullPathQuoted = PathUtility.enQuoteUnix(fullPath); > int rv = runCommand("rm -rf "+fullPathQuoted, monitor); //$NON-NLS-1$ > ok = (rv==0); >+ } else if(e.id == ChannelSftp.SSH_FX_NO_SUCH_FILE) { >+ // this could be a link to a directory too, if it really doesn't exist, this will throw an exception >+ // this is just a workaround for bug 174690 as attrs.isLink() always seems to return false for soft/hard links >+ getChannel("SftpFileService.delete.rm").rm(fullPath); //$NON-NLS-1$ >+ ok=true; > } else { > throw e; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
mober.at+eclipse
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 174690
: 76964