ref: refs/heads/master
commit 50265cd8bbb5ff9a6042428b4a7df18b67538c1b
Author: Michael Andres
Date: Fri Nov 27 10:57:06 2009 +0100
Assert update script is set executable.
---
zypp/target/TargetImpl.cc | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/zypp/target/TargetImpl.cc b/zypp/target/TargetImpl.cc
index d74c590..7ae3bae 100644
--- a/zypp/target/TargetImpl.cc
+++ b/zypp/target/TargetImpl.cc
@@ -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 )
{
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org