[yast-commit] r49740 - in /trunk/storage/libstorage/src: DmraidCo.cc StorageDefines.h
Author: aschnell
Date: Tue Aug 5 22:11:22 2008
New Revision: 49740
URL: http://svn.opensuse.org/viewcvs/yast?rev=49740&view=rev
Log:
- shell quoting
Modified:
trunk/storage/libstorage/src/DmraidCo.cc
trunk/storage/libstorage/src/StorageDefines.h
Modified: trunk/storage/libstorage/src/DmraidCo.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/DmraidCo.cc?rev=49740&r1=49739&r2=49740&view=diff
==============================================================================
--- trunk/storage/libstorage/src/DmraidCo.cc (original)
+++ trunk/storage/libstorage/src/DmraidCo.cc Tue Aug 5 22:11:22 2008
@@ -10,6 +10,7 @@
#include "y2storage/SystemCmd.h"
#include "y2storage/AppUtil.h"
#include "y2storage/Storage.h"
+#include "y2storage/StorageDefines.h"
using namespace std;
using namespace storage;
@@ -30,7 +31,7 @@
void DmraidCo::getRaidData( const string& name )
{
y2milestone( "name:%s", name.c_str() );
- SystemCmd c( "dmraid -s -c -c -c " + quote(name));
+ SystemCmd c(DMRAIDBIN " -s -c -c -c " + quote(name));
list<string>::const_iterator ci;
list<string> sl;
if( c.numLines()>0 )
@@ -110,11 +111,11 @@
if( val )
{
Dm::activate(true);
- c.execute( "dmraid -ay -p " );
+ c.execute(DMRAIDBIN " -ay -p");
}
else
{
- c.execute( "dmraid -an " );
+ c.execute(DMRAIDBIN " -an");
}
active = val;
}
@@ -123,7 +124,7 @@
void DmraidCo::getRaids( list<string>& l )
{
l.clear();
- SystemCmd c( "dmraid -s -c -c -c" );
+ SystemCmd c(DMRAIDBIN " -s -c -c -c");
for( unsigned i=0; i
participants (1)
-
aschnell@svn.opensuse.org