From: short <> Date: Sat, 6 Dec 2003 18:25:29 +0000 (+0000) Subject: captive_file_parent_move(): Update 'captive_file_parent_object->pathname'. X-Git-Tag: captive-1_1_3~11 X-Git-Url: http://git.jankratochvil.net/?p=captive.git;a=commitdiff_plain;h=f7b4f990e4d0d234e5554cc555af507e01f8d34a;ds=sidebyside captive_file_parent_move(): Update 'captive_file_parent_object->pathname'. --- diff --git a/src/libcaptive/client/file-parent.c b/src/libcaptive/client/file-parent.c index e0348ff..1d0da83 100644 --- a/src/libcaptive/client/file-parent.c +++ b/src/libcaptive/client/file-parent.c @@ -531,8 +531,11 @@ gint retried=0; return r; if (GNOME_VFS_ERROR_SERVICE_NOT_AVAILABLE !=(r=captive_sandbox_parent_file_move(captive_file_parent_object_old,pathname_new,force_replace))) { - if (GNOME_VFS_OK==r) + if (GNOME_VFS_OK==r) { + g_free(captive_file_parent_object_old->pathname); + captive_file_parent_object_old->pathname=g_strdup(pathname_new); captive_parent_connector_set_dirty(CAPTIVE_PARENT_CONNECTOR(captive_file_parent_object_old)); + } return r; } } while (!retried++);