summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fr-window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fr-window.c b/src/fr-window.c
index 776c09e..a0fcae2 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -7886,6 +7886,8 @@ add_pasted_files (FrWindow *window,
fr_process_begin_command (window->archive->process, "mv");
fr_process_set_working_dir (window->archive->process, data->tmp_dir);
fr_process_add_arg (window->archive->process, "-f");
+ if (old_name[0] == '/')
+ old_name = old_name + 1;
fr_process_add_arg (window->archive->process, old_name);
fr_process_add_arg (window->archive->process, new_name);
fr_process_end_command (window->archive->process);