changeset 68:d70c50c4a07c

Permissions
author Chris Cannam
date Thu, 13 Feb 2020 11:34:45 +0000
parents 38cd115c91d4
children 6b2b4bcbe4e5
files installer.cpp
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/installer.cpp	Thu Feb 13 10:56:15 2020 +0000
+++ b/installer.cpp	Thu Feb 13 11:34:45 2020 +0000
@@ -441,6 +441,9 @@
                << ": isLibraryNewer(installed, packaged) returns "
                << isLibraryNewer(installed, info.pluginVersions)
                << endl;
+    } else {
+        SVCERR << "Note: library " << library
+               << " is not yet installed, not comparing versions" << endl;
     }
     
     SVCERR << "Copying " << library.toStdString() << " to "
@@ -472,6 +475,17 @@
             SVCERR << "Failed to copy " << e.toStdString()
                    << " to target " << destination.toStdString()
                    << " (ignoring)" << endl;
+            continue;
+        }
+        if (!QFile::setPermissions
+            (destination,
+             QFile::ReadOwner | QFile::WriteOwner |
+             QFile::ReadGroup |
+             QFile::ReadOther)) {
+            SVCERR << "Failed to set permissions on "
+                   << destination.toStdString()
+                   << " (ignoring)" << endl;
+            continue;
         }
     }
 }