diff --git a/ChangeLog b/ChangeLog index ba3b68d1..08010975 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-12-29 Bart Hakvoort + + * src/GParted_Core.cc: replaced access() with Glib::file_test in wait_for_node() + 2005-12-29 Bart Hakvoort * src/Win_GParted.cc: disable treeview and graphical partition display at scantime diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc index eb9e98b2..7d5888cc 100644 --- a/src/GParted_Core.cc +++ b/src/GParted_Core.cc @@ -923,9 +923,9 @@ bool GParted_Core::wait_for_node( const Glib::ustring & node ) //we'll loop for 10 seconds or till 'node' appeares... for( short t = 0 ; t < 50 ; t++ ) { - if ( access( node .c_str(), F_OK ) == 0 ) + if ( Glib::file_test( node, Glib::FILE_TEST_EXISTS ) ) { - sleep( 1 ) ; //apperantly the node isn't available immediatly after access returns succesfully :/ + sleep( 1 ) ; //apperantly the node isn't available immediatly after file_test returns succesfully :/ return true ; } else