Mailinglist Archive: zypp-commit (232 mails)

< Previous Next >
[zypp-commit] <libzypp> master : Assert update script is set executable.
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Fri, 27 Nov 2009 10:57:06 +0100
  • Message-id: <E1NDxZf-0000Pt-Mn@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 50265cd8bbb5ff9a6042428b4a7df18b67538c1b
Author: Michael Andres <ma@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages