parent
74fcc22e1f
commit
97e8bef63c
@ -1 +1 @@
|
||||
gparted-0.3.6.tar.gz
|
||||
gparted-0.3.7.tar.bz2
|
||||
|
@ -1,3 +1,3 @@
|
||||
USER=root
|
||||
PROGRAM=/usr/bin/run-gparted
|
||||
PROGRAM=/usr/sbin/gparted
|
||||
SESSION=true
|
||||
|
@ -1,79 +0,0 @@
|
||||
--- src/GParted_Core.cc 2008-03-26 11:00:50.000000000 -0400
|
||||
+++ src/GParted_Core.cc.new 2008-03-28 17:26:10.000000000 -0400
|
||||
@@ -39,8 +39,6 @@
|
||||
#include "../include/ufs.h"
|
||||
|
||||
#include <cerrno>
|
||||
-#include <cstdio>
|
||||
-#include <csignal>
|
||||
#include <sys/statvfs.h>
|
||||
|
||||
std::vector<Glib::ustring> libparted_messages ; //see ped_exception_handler()
|
||||
@@ -48,13 +46,6 @@
|
||||
namespace GParted
|
||||
{
|
||||
|
||||
-// Clean up the fdi when terminating
|
||||
-void sig_fdi_cleanup( int signum )
|
||||
-{
|
||||
- remove( "/usr/share/hal/fdi/policy/gparted-disable-automount.fdi" );
|
||||
- raise( signum );
|
||||
-}
|
||||
-
|
||||
GParted_Core::GParted_Core()
|
||||
{
|
||||
lp_device = NULL ;
|
||||
@@ -64,44 +55,6 @@
|
||||
|
||||
ped_exception_set_handler( ped_exception_handler ) ;
|
||||
|
||||
- //make sure that the fdi is cleaned up on all but the most forceful
|
||||
- //program exits
|
||||
- struct sigaction sa;
|
||||
- sa.sa_handler = sig_fdi_cleanup;
|
||||
- sigemptyset( &sa.sa_mask );
|
||||
- sa.sa_flags = SA_RESETHAND;
|
||||
- if( sigaction( SIGHUP, &sa, NULL ) == -1 ||
|
||||
- sigaction( SIGINT, &sa, NULL ) == -1 ||
|
||||
- sigaction( SIGQUIT, &sa, NULL ) == -1 ||
|
||||
- sigaction( SIGILL, &sa, NULL ) == -1 ||
|
||||
- sigaction( SIGABRT, &sa, NULL ) == -1 ||
|
||||
- sigaction( SIGFPE, &sa, NULL ) == -1 ||
|
||||
- sigaction( SIGSEGV, &sa, NULL ) == -1 ||
|
||||
- sigaction( SIGPIPE, &sa, NULL ) == -1 ||
|
||||
- sigaction( SIGALRM, &sa, NULL ) == -1 ||
|
||||
- sigaction( SIGTERM, &sa, NULL ) == -1 ||
|
||||
- sigaction( SIGUSR1, &sa, NULL ) == -1 ||
|
||||
- sigaction( SIGUSR2, &sa, NULL ) == -1 ||
|
||||
- sigaction( SIGBUS, &sa, NULL ) == -1 ||
|
||||
- sigaction( SIGXCPU, &sa, NULL ) == -1 ||
|
||||
- sigaction( SIGXFSZ, &sa, NULL ) == -1 )
|
||||
- perror( "Could not set signal handler" );
|
||||
-
|
||||
- //disable automount //FIXME: temporary hack, till i find a better solution...
|
||||
- std::ofstream fdi_file( "/usr/share/hal/fdi/policy/gparted-disable-automount.fdi" ) ;
|
||||
- if ( fdi_file )
|
||||
- {
|
||||
- fdi_file << "<deviceinfo version='0.2'>" ;
|
||||
- fdi_file << "<device>" ;
|
||||
- fdi_file << "<match key='storage.hotpluggable' bool='true'>" ;
|
||||
- fdi_file << "<merge key='storage.automount_enabled_hint' type='bool'>false</merge>" ;
|
||||
- fdi_file << "</match>" ;
|
||||
- fdi_file << "</device>" ;
|
||||
- fdi_file << "</deviceinfo>" ;
|
||||
-
|
||||
- fdi_file .close() ;
|
||||
- }
|
||||
-
|
||||
//get valid flags ...
|
||||
for ( PedPartitionFlag flag = ped_partition_flag_next( static_cast<PedPartitionFlag>( NULL ) ) ;
|
||||
flag ;
|
||||
@@ -2372,8 +2325,6 @@
|
||||
if ( p_filesystem )
|
||||
delete p_filesystem ;
|
||||
|
||||
- //remove .fdi file..
|
||||
- remove( "/usr/share/hal/fdi/policy/gparted-disable-automount.fdi" ) ;
|
||||
}
|
||||
|
||||
} //GParted
|
Loading…
Reference in new issue