change mount usage for parted magic mtab issue

This commit is contained in:
IgnorantGuru 2012-06-29 06:17:30 -06:00
parent 4dcabb2a8d
commit a0e9b8f71e
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,8 @@
0.2.8+ 0.2.8+
fixed POTFILES.in to correct build deb problem #2
users can mount/umount tmpfs and ramfs if in allowed_types; updated conf users can mount/umount tmpfs and ramfs if in allowed_types; updated conf
conf allow option sync for nfs; remove noatime,utf8 for smbfs/cifs #3 conf allow option sync for nfs; remove noatime,utf8 for smbfs/cifs #3
change mount usage for parted magic mtab issue
0.2.8 2012-06-15: 0.2.8 2012-06-15:
ssh:// support ssh:// support
use cifs by default instead of smbfs use cifs by default instead of smbfs

View File

@ -1998,11 +1998,12 @@ static gboolean mount_knows( const char* device_file )
{ {
int status = 0; int status = 0;
int exit_status = 1; int exit_status = 1;
gchar *argv[4] = { NULL }; gchar *argv[5] = { NULL };
int a = 0; int a = 0;
argv[a++] = g_strdup( read_config( "mount_program", NULL ) ); argv[a++] = g_strdup( read_config( "mount_program", NULL ) );
if ( !argv[0] ) if ( !argv[0] )
return FALSE; return FALSE;
argv[a++] = g_strdup( "-n" ); // required by parted magic
argv[a++] = g_strdup( "--fake" ); argv[a++] = g_strdup( "--fake" );
argv[a++] = g_strdup( device_file ); argv[a++] = g_strdup( device_file );