[gparted] Remove absolute paths from /usr/bin/xxd and /bin/dd



commit 9238e47bc2df297149e2f8ebb3f0a0a05754659a
Author: Curtis Gedak <gedakc gmail com>
Date:   Thu May 14 14:45:11 2009 -0600

    Remove absolute paths from /usr/bin/xxd and /bin/dd
---
 src/GParted_Core.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index b0ba6df..dd714f3 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -2586,7 +2586,7 @@ bool GParted_Core::update_bootsector( const Partition & partition, OperationDeta
 
 		Glib::ustring output, error, command ;
 		command = 
-			"echo " + reversed_hex + " | /usr/bin/xxd -r -p | /bin/dd conv=notrunc of=" + partition .get_path() + " bs=1 seek=28" ;
+			"echo " + reversed_hex + " | xxd -r -p | dd conv=notrunc of=" + partition .get_path() + " bs=1 seek=28" ;
 
 		operationdetail .get_last_child() .add_child( OperationDetail( command, STATUS_NONE, FONT_BOLD_ITALIC ) ) ;
 		bool succes = ! Utils::execute_command( command, output, error ) ;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]