(operate_one_file): remove unescape of source and destination filenames.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2018-07-01 20:00:36 +03:00
parent aea06fbc7a
commit f75430d68c

View File

@ -2000,21 +2000,12 @@ operate_one_file (const WPanel * panel, FileOperation operation, file_op_total_c
temp = build_dest (ctx, src, dest, &value); temp = build_dest (ctx, src, dest, &value);
if (temp != NULL) if (temp != NULL)
{ {
char *src2, *temp2; dest = temp;
src2 = strutils_shell_unescape (src);
temp2 = strutils_shell_unescape (temp);
g_free (temp);
src = src2;
dest = temp2;
switch (operation) switch (operation)
{ {
case OP_COPY: case OP_COPY:
/* we use file_mask_op_follow_links only with OP_COPY */ /* we use file_mask_op_follow_links only with OP_COPY */
vfs_path_free (src_vpath);
src_vpath = vfs_path_from_str (src);
ctx->stat_func (src_vpath, src_stat); ctx->stat_func (src_vpath, src_stat);
is_file = !S_ISDIR (src_stat->st_mode); is_file = !S_ISDIR (src_stat->st_mode);
@ -2037,8 +2028,7 @@ operate_one_file (const WPanel * panel, FileOperation operation, file_op_total_c
abort (); abort ();
} }
g_free (src2); g_free (temp);
g_free (temp2);
} }
} }