sometimes certain commands couldn't be found because PATH was overridden.
* src/FileSystem.cc: sometimes certain commands couldn't be found because PATH was overridden. fixed.
This commit is contained in:
parent
100dccb20c
commit
565127b0d8
|
@ -1,3 +1,8 @@
|
|||
2006-01-29 Bart Hakvoort <hakvoort@cvs.gnome.org>
|
||||
|
||||
* src/FileSystem.cc: sometimes certain commands couldn't be found
|
||||
because PATH was overridden. fixed.
|
||||
|
||||
2006-01-28 Bart Hakvoort <hakvoort@cvs.gnome.org>
|
||||
|
||||
* src/Utils.cc: fixed small bug in unmount()
|
||||
|
|
|
@ -65,6 +65,7 @@ int FileSystem::execute_command( std::vector<std::string> argv, std::string & ou
|
|||
{
|
||||
std::vector<std::string> envp ;
|
||||
envp .push_back( "LC_ALL=C" ) ;
|
||||
envp .push_back( "PATH=" + Glib::getenv( "PATH" ) ) ;
|
||||
|
||||
try
|
||||
{
|
||||
|
|
|
@ -67,7 +67,7 @@ void jfs::Set_Used_Sectors( Partition & partition )
|
|||
argv .push_back( "sh" ) ;
|
||||
argv .push_back( "-c" ) ;
|
||||
argv .push_back( "echo dm | jfs_debugfs " + partition .partition ) ;
|
||||
|
||||
|
||||
if ( ! execute_command( argv, output ) )
|
||||
{
|
||||
//blocksize
|
||||
|
|
Loading…
Reference in New Issue