[GH-ISSUE #2662] sftp无法处理无效的软链接 #1733

Open
opened 2026-02-27 00:04:38 +03:00 by kerem · 1 comment
Owner

Originally created by @SamThicker on GitHub (Oct 11, 2022).
Original GitHub issue: https://github.com/electerm/electerm/issues/2662

Electerm Version and download file extension(Electerm版本和下载文件后缀)

v1.23.8 mac-x64dmg && win-x64-installer.exe

Platform detail (平台详情)

MacOS12.4 & Windows11

What steps will reproduce the bug?(重新问题的详细步骤)

问题描述:当文件夹中包含一个指向不存在文件的软链接,sftp浏览窗口访问该文件夹时提示 NO SUCH FILE。

我从他人的tar包中把文件解压出来,发现有个文件夹无法访问,右下角弹窗提示“NO SUCH FILE”,起初怀疑与操作系统有关,遂切换操作系统,问题依旧。从ssh ls -l结果发现该文件夹包含一个软链接指向一个我本地不存在的文件,于是把该软链接删除,可正常访问文件夹。重试,问题可复现。

What should have happened?(期望的结果)

正常处理无效的软链接。

Would this happen in other terminal app(是否能够在其他同类软件重现这个问题)

其它软件如MobaXterm, winscp无该问题。

Additional information(其他任何相关信息)

No response

Originally created by @SamThicker on GitHub (Oct 11, 2022). Original GitHub issue: https://github.com/electerm/electerm/issues/2662 ### Electerm Version and download file extension(Electerm版本和下载文件后缀) v1.23.8 mac-x64dmg && win-x64-installer.exe ### Platform detail (平台详情) MacOS12.4 & Windows11 ### What steps will reproduce the bug?(重新问题的详细步骤) 问题描述:当文件夹中包含一个指向不存在文件的软链接,sftp浏览窗口访问该文件夹时提示 NO SUCH FILE。 我从他人的tar包中把文件解压出来,发现有个文件夹无法访问,右下角弹窗提示“NO SUCH FILE”,起初怀疑与操作系统有关,遂切换操作系统,问题依旧。从ssh ls -l结果发现该文件夹包含一个软链接指向一个我本地不存在的文件,于是把该软链接删除,可正常访问文件夹。重试,问题可复现。 ### What should have happened?(期望的结果) 正常处理无效的软链接。 ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) 其它软件如MobaXterm, winscp无该问题。 ### Additional information(其他任何相关信息) _No response_
Author
Owner

@zxdong262 commented on GitHub (Oct 13, 2022):

方便提供一个样品压缩包不,我试了创建一些软连接,删除被链接的文件,不能复现这个报错。如果可以请发zxdong@gmail.com

<!-- gh-comment-id:1277894818 --> @zxdong262 commented on GitHub (Oct 13, 2022): 方便提供一个样品压缩包不,我试了创建一些软连接,删除被链接的文件,不能复现这个报错。如果可以请发zxdong@gmail.com
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1733
No description provided.