From 025d2d1748ea2a179b667012302f024062fafe34 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sun, 4 Jul 2021 19:35:27 +0200 Subject: [PATCH] fixed relative symlink resolution - fixes #4119 --- tabby-ssh/src/components/sftpPanel.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabby-ssh/src/components/sftpPanel.component.ts b/tabby-ssh/src/components/sftpPanel.component.ts index 26067792..dfa8c42d 100644 --- a/tabby-ssh/src/components/sftpPanel.component.ts +++ b/tabby-ssh/src/components/sftpPanel.component.ts @@ -77,7 +77,7 @@ export class SFTPPanelComponent { if (item.isDirectory) { this.navigate(item.fullPath) } 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) if (stat.isDirectory) { this.navigate(item.fullPath)