Przeglądaj źródła

fixed relative symlink resolution - fixes #4119

Eugene Pankov 4 lat temu
rodzic
commit
025d2d1748

+ 1 - 1
tabby-ssh/src/components/sftpPanel.component.ts

@@ -77,7 +77,7 @@ export class SFTPPanelComponent {
         if (item.isDirectory) {
         if (item.isDirectory) {
             this.navigate(item.fullPath)
             this.navigate(item.fullPath)
         } else if (item.isSymlink) {
         } else if (item.isSymlink) {
-            const target = await this.sftp.readlink(item.fullPath)
+            const target = path.resolve(this.path, await this.sftp.readlink(item.fullPath))
             const stat = await this.sftp.stat(target)
             const stat = await this.sftp.stat(target)
             if (stat.isDirectory) {
             if (stat.isDirectory) {
                 this.navigate(item.fullPath)
                 this.navigate(item.fullPath)