Assert update script is set executable.
authorMichael Andres <ma@suse.de>
Fri, 27 Nov 2009 09:57:06 +0000 (10:57 +0100)
committerMichael Andres <ma@suse.de>
Fri, 27 Nov 2009 09:57:06 +0000 (10:57 +0100)
zypp/target/TargetImpl.cc

index d74c590..7ae3bae 100644 (file)
@@ -241,6 +241,9 @@ namespace zypp
             if ( (*sit)[prefix.size()] != '\0' && (*sit)[prefix.size()] != '-' )
               continue; // if not exact match it had to continue with '-'
 
+            // Assert it's set executable
+            filesystem::addmod( script.path(), 0500 );
+
             Pathname localPath( scriptsPath_r/(*sit) ); // without root prefix
             if ( abort || aborting_r )
             {