mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-08 18:36:17 +01:00
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
This commit is contained in:
parent
e01f111ed3
commit
e2dc3cd6d9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user