From 565127b0d8a4a94d7b164841a3dc3952afae9bb9 Mon Sep 17 00:00:00 2001 From: Bart Hakvoort Date: Sun, 29 Jan 2006 19:28:50 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ src/FileSystem.cc | 1 + src/jfs.cc | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e0d22b52..67bc3910 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-01-29 Bart Hakvoort + + * src/FileSystem.cc: sometimes certain commands couldn't be found + because PATH was overridden. fixed. + 2006-01-28 Bart Hakvoort * src/Utils.cc: fixed small bug in unmount() diff --git a/src/FileSystem.cc b/src/FileSystem.cc index 66439d2a..487f0542 100644 --- a/src/FileSystem.cc +++ b/src/FileSystem.cc @@ -65,6 +65,7 @@ int FileSystem::execute_command( std::vector argv, std::string & ou { std::vector envp ; envp .push_back( "LC_ALL=C" ) ; + envp .push_back( "PATH=" + Glib::getenv( "PATH" ) ) ; try { diff --git a/src/jfs.cc b/src/jfs.cc index d5b57600..9d7c5abb 100644 --- a/src/jfs.cc +++ b/src/jfs.cc @@ -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