[gvdb/fix-symlink-issue] Do not replace file destination
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvdb/fix-symlink-issue] Do not replace file destination
- Date: Fri, 7 Feb 2020 13:06:02 +0000 (UTC)
commit e2dc3cd6d9735b7a83e391d955fadb2aac9cf3cc
Author: Jan-Michael Brummer <jan brummer tabos org>
Date: Mon Feb 3 18:14:47 2020 +0100
Do not replace file destination
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
gvdb-builder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]