From a0e9b8f71e1627d1cfd1ed4f7200640ba3f50fad Mon Sep 17 00:00:00 2001 From: IgnorantGuru Date: Fri, 29 Jun 2012 06:17:30 -0600 Subject: [PATCH] change mount usage for parted magic mtab issue --- ChangeLog | 2 ++ src/udevil.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2e5434f..98184ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,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 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: ssh:// support use cifs by default instead of smbfs diff --git a/src/udevil.c b/src/udevil.c index 432ba81..3ed64b7 100644 --- a/src/udevil.c +++ b/src/udevil.c @@ -1998,11 +1998,12 @@ static gboolean mount_knows( const char* device_file ) { int status = 0; int exit_status = 1; - gchar *argv[4] = { NULL }; + gchar *argv[5] = { NULL }; int a = 0; argv[a++] = g_strdup( read_config( "mount_program", NULL ) ); if ( !argv[0] ) return FALSE; + argv[a++] = g_strdup( "-n" ); // required by parted magic argv[a++] = g_strdup( "--fake" ); argv[a++] = g_strdup( device_file );