From aa1814cb2256d94264d1d3ab7be1e7a993c16e0a Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Sat, 4 Sep 2010 11:24:05 -0400 Subject: [PATCH] Let the COPY command update the _mtime of the destination element path. --- src/commands.c | 2 ++ src/xml.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/commands.c b/src/commands.c index 1a9f13e9..4ec9c3a1 100644 --- a/src/commands.c +++ b/src/commands.c @@ -3624,6 +3624,8 @@ static gint copy_command(assuan_context_t ctx, gchar *line) goto fail; } + rc = update_element_mtime(xmlDocGetRootElement(client->doc) == ndst->parent ? ndst : ndst->parent); + fail: if (req) g_strfreev(req); diff --git a/src/xml.h b/src/xml.h index eadb1432..f9c76051 100644 --- a/src/xml.h +++ b/src/xml.h @@ -71,5 +71,6 @@ gpg_error_t convert_elements(xmlDocPtr doc); gpg_error_t validate_import(xmlNodePtr); xmlNodePtr find_element(xmlNodePtr node, gchar *element, xmlNodePtr stop); gpg_error_t update_element_mtime(xmlNodePtr n); +gpg_error_t unlink_node(xmlNodePtr n); #endif -- 2.11.4.GIT