From 7b2c26cc3cdb6d627079310d83f28c4f47930496 Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Wed, 20 Aug 2014 14:57:17 +0200 Subject: [PATCH] Don't apply realpath() to entered subdirs in Selector This way, symlinks stay in the path, so when we go up a level we end up in the previous directory instead of in the linked directory's parent. --- src/selector.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/selector.cpp b/src/selector.cpp index 30be9f6..7056112 100644 --- a/src/selector.cpp +++ b/src/selector.cpp @@ -206,11 +206,7 @@ int Selector::exec(int startSelection) { if (subdir == "..") { selected = goToParentDir(fl); } else { - dir += subdir; - char *buf = realpath(dir.c_str(), NULL); - dir = (string) buf + '/'; - free(buf); - + dir += subdir + '/'; prepare(fl); selected = 0; }