summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-20 17:07:41 +0100
committerinfirit <[email protected]>2014-11-20 19:40:55 +0100
commit5bbef29864117a6ca1caf4e64e18e909bb655256 (patch)
treeec36733d0c261861efe0b0989d30465f9ad97ac4
parent767a768ac9dbb4f50f870607351d39193e960659 (diff)
downloadengrampa-5bbef29864117a6ca1caf4e64e18e909bb655256.tar.bz2
engrampa-5bbef29864117a6ca1caf4e64e18e909bb655256.tar.xz
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 <[email protected]>
-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);