Use converted file name for dst_path.

This commit is contained in:
wbaumann
2009-05-21 07:48:50 +00:00
parent 61351de196
commit 81517d457c
2 changed files with 6 additions and 2 deletions

View File

@ -1840,7 +1840,7 @@ move_dirty(dav_node *src, dav_node *dst, dav_node *dst_parent,
char *dst_path;
if (!dst) {
char *dst_conv = dav_conv_to_server_enc(dst_name);
dst_path = ne_concat(dst_parent->path, dst_name, NULL);
dst_path = ne_concat(dst_parent->path, dst_conv, NULL);
free(dst_conv);
} else {
dst_path = ne_strdup(dst->path);
@ -1910,7 +1910,7 @@ move_reg(dav_node *src, dav_node *dst, dav_node *dst_parent,
char *dst_path;
if (!dst) {
char *dst_conv = dav_conv_to_server_enc(dst_name);
dst_path = ne_concat(dst_parent->path, dst_name, NULL);
dst_path = ne_concat(dst_parent->path, dst_conv, NULL);
free(dst_conv);
} else {
dst_path = ne_strdup(dst->path);