about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/container/bookmarks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/container/bookmarks.py b/ranger/container/bookmarks.py
index 846a6585..cbfc541a 100644
--- a/ranger/container/bookmarks.py
+++ b/ranger/container/bookmarks.py
@@ -187,8 +187,8 @@ class Bookmarks(FileManagerAware):
             os.chmod(path_new, old_perms.st_mode)
 
             if os.path.islink(self.path):
-                link_path = os.path.realpath(self.path)
-                os.rename(path_new, link_path)
+                target_path = os.path.realpath(self.path)
+                os.rename(path_new, target_path)
             else:
                 os.rename(path_new, self.path)