[evince] libdocument: Don't copy permissions from original file
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] libdocument: Don't copy permissions from original file
- Date: Wed, 2 Sep 2015 12:58:36 +0000 (UTC)
commit 0abc378cf13d7eb322ff456772168464ff1d16ba
Author: Marek Kasik <mkasik redhat com>
Date: Wed Aug 19 17:46:34 2015 +0200
libdocument: Don't copy permissions from original file
Consider copy as a new file and use default permissions for it
when saving a copy of opened document.
https://bugzilla.gnome.org/show_bug.cgi?id=753019
libdocument/ev-file-helpers.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libdocument/ev-file-helpers.c b/libdocument/ev-file-helpers.c
index 6691a55..59d7b1e 100644
--- a/libdocument/ev-file-helpers.c
+++ b/libdocument/ev-file-helpers.c
@@ -456,7 +456,8 @@ ev_file_copy_metadata (const char *from,
target_file = g_file_new_for_uri (to);
result = g_file_copy_attributes (source_file, target_file,
- G_FILE_COPY_ALL_METADATA,
+ G_FILE_COPY_ALL_METADATA |
+ G_FILE_COPY_TARGET_DEFAULT_PERMS,
NULL, error);
g_object_unref (target_file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]