[gnome-software] Fix permissions of the extra AppStream file



commit 0b77b925431c68cc4bf9d9acf532377b0f0ee52d
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Fri Oct 14 23:38:08 2016 +0200

    Fix permissions of the extra AppStream file
    
    The temporary files that get the contents of the downloaded extra
    AppStream files have 0600 as the default permissions, so when they
    were moved into the system location by the helper script (run as root)
    it would result in a file not readable by the user.
    This patch gives reading permissions to the file before moving it.

 src/plugins/gnome-software-install-appstream.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gnome-software-install-appstream.in b/src/plugins/gnome-software-install-appstream.in
index b0fa04e..e0efe06 100644
--- a/src/plugins/gnome-software-install-appstream.in
+++ b/src/plugins/gnome-software-install-appstream.in
@@ -5,4 +5,5 @@ TARGET_FILE=$2
 APPSTREAM_SYSTEM_LOCATION=@localstatedir@/cache/app-info/xmls
 
 mkdir -p "${APPSTREAM_SYSTEM_LOCATION}"
+chmod a+r "${APPSTREAM_FILE}"
 mv "${APPSTREAM_FILE}" "${APPSTREAM_SYSTEM_LOCATION}/${TARGET_FILE}"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]