diff options
author | Richard Hughes <richard@hughsie.com> | 2014-09-11 16:30:30 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-09-11 20:31:15 +0100 |
commit | 842f8715e5166503c2c641e9567a40522caa951d (patch) | |
tree | 175ff37ddfd0177e2ff5c15682a41d70d1785e74 | |
parent | a6a4e16fd316877c4a56fb9dd5f16e9de6904133 (diff) | |
download | appstream-glib-842f8715e5166503c2c641e9567a40522caa951d.tar.gz |
Install AppStream files with correct permissions
Resolves: https://github.com/hughsie/appstream-glib/issues/21
-rw-r--r-- | client/as-util.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/as-util.c b/client/as-util.c index 771bbe4..0831cf1 100644 --- a/client/as-util.c +++ b/client/as-util.c @@ -909,7 +909,10 @@ as_util_install_xml (const gchar *filename, /* actually copy file */ file_dest = g_file_new_for_path (path_dest); - if (!g_file_copy (file_src, file_dest, G_FILE_COPY_OVERWRITE, NULL, NULL, NULL, error)) + if (!g_file_copy (file_src, file_dest, + G_FILE_COPY_OVERWRITE | + G_FILE_COPY_TARGET_DEFAULT_PERMS, + NULL, NULL, NULL, error)) return FALSE; /* fix the origin */ |