Blame SOURCES/evince-3.14.2-copy-permissions.patch

f10997
From d9c747da91f937fb9fda422615860008bb1d3b4c Mon Sep 17 00:00:00 2001
f10997
From: Marek Kasik <mkasik@redhat.com>
f10997
Date: Wed, 19 Aug 2015 17:46:34 +0200
f10997
Subject: [PATCH] libdocument: Don't copy permissions from original file
f10997
f10997
Consider copy as a new file and use default permissions for it
f10997
when saving a copy of opened document.
f10997
f10997
https://bugzilla.gnome.org/show_bug.cgi?id=753019
f10997
---
f10997
 libdocument/ev-file-helpers.c | 3 ++-
f10997
 1 file changed, 2 insertions(+), 1 deletion(-)
f10997
f10997
diff --git a/libdocument/ev-file-helpers.c b/libdocument/ev-file-helpers.c
f10997
index 6691a55..59d7b1e 100644
f10997
--- a/libdocument/ev-file-helpers.c
f10997
+++ b/libdocument/ev-file-helpers.c
f10997
@@ -456,7 +456,8 @@ ev_file_copy_metadata (const char *from,
f10997
         target_file = g_file_new_for_uri (to);
f10997
 
f10997
         result = g_file_copy_attributes (source_file, target_file,
f10997
-                                         G_FILE_COPY_ALL_METADATA,
f10997
+                                         G_FILE_COPY_ALL_METADATA |
f10997
+                                         G_FILE_COPY_TARGET_DEFAULT_PERMS,
f10997
                                          NULL, error);
f10997
 
f10997
         g_object_unref (target_file);
f10997
-- 
f10997
2.4.3
f10997