summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Michael Brummer <jan.brummer@tabos.org>2020-02-03 18:14:47 +0100
committerPhilip Withnall <withnall@endlessm.com>2020-02-07 13:05:33 +0000
commite2dc3cd6d9735b7a83e391d955fadb2aac9cf3cc (patch)
tree9299fbacac4f07c4788e6c2fc1799c286d0e9f66
parente01f111ed339bc6fcd4b96a5fde2bc6e4811bbe3 (diff)
downloadgvdb-fix-symlink-issue.tar.gz
Do not replace file destinationfix-symlink-issue
Replacing file destination will also remove a symlink in case the user has moved the real file to another location. Fix this by removing G_FILE_CREATE_REPLACE_DESTINATION flag. See also: https://gitlab.gnome.org/GNOME/epiphany/issues/198
-rw-r--r--gvdb-builder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gvdb-builder.c b/gvdb-builder.c
index e36e9ab..3942667 100644
--- a/gvdb-builder.c
+++ b/gvdb-builder.c
@@ -612,7 +612,7 @@ gvdb_table_write_contents_async (GHashTable *table,
g_bytes_get_data (bytes, NULL),
g_bytes_get_size (bytes),
NULL, FALSE,
- G_FILE_CREATE_PRIVATE | G_FILE_CREATE_REPLACE_DESTINATION,
+ G_FILE_CREATE_PRIVATE,
cancellable, replace_contents_cb, g_steal_pointer (&task));
g_bytes_unref (bytes);