From 5bbef29864117a6ca1caf4e64e18e909bb655256 Mon Sep 17 00:00:00 2001 From: infirit Date: Thu, 20 Nov 2014 17:07:41 +0100 Subject: fixed bug when pasting files in another path remove the leading directory separator from the original name before moving the file in the new location. Based on FR commit: 25eea1c2b80200af7c166fa317bcefbc4874de7d From: Paolo Bacchilega --- src/fr-window.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); -- cgit v1.2.1