"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "zuluMount-cli/main.c" between
zuluCrypt-5.7.0.tar.xz and zuluCrypt-5.7.1.tar.xz

About: zuluCrypt is a simple but feature rich solution for hard drives encryption. It can manage PLAIN dm-crypt, LUKS, TrueCrypt and VeraCrypt encrypted volumes.

main.c  (zuluCrypt-5.7.0.tar.xz):main.c  (zuluCrypt-5.7.1.tar.xz)
skipping to change at line 336 skipping to change at line 336
return 0 ; return 0 ;
} }
static int _zuluMountExe( ARGS * args ) static int _zuluMountExe( ARGS * args )
{ {
const char * device = args->device ; const char * device = args->device ;
const char * action = args->action ; const char * action = args->action ;
const char * uuid = args->uuid ; const char * uuid = args->uuid ;
const char * offset = args->offset ; const char * offset = args->offset ;
size_t uid = args->uid ; uid_t uid = args->uid ;
string_t st ; string_t st ;
int r ; int r ;
if( StringsAreEqual( action,"-L" ) ){ if( StringsAreEqual( action,"-L" ) ){
return zuluMountPrintDeviceProperties( device,uuid,uid ) ; return zuluMountPrintDeviceProperties( device,uuid,uid ) ;
} }
if( StringsAreEqual( action,"-s" ) ){ if( StringsAreEqual( action,"-s" ) ){
st = _zuluCryptGetFileSystemFromDevice( device ) ; st = _zuluCryptGetFileSystemFromDevice( device ) ;
if( StringContains( st,zuluCryptBitLockerType() ) ){ zuluCryptSecurityGainElevatedPrivileges() ;
r = zuluCryptDeviceManagedByDislocker( device,uid ) ;
zuluCryptSecurityDropElevatedPrivileges() ;
if( StringContains( st,zuluCryptBitLockerType() ) && r ){
r = zuluMountPrintBitLockerProperties( device,uid ) ; r = zuluMountPrintBitLockerProperties( device,uid ) ;
}else if( offset != NULL || st == StringVoid || StringStartsWith( }else if( offset != NULL ||
st,"crypto_" ) ){ st == StringVoid ||
StringsAreEqual_2( st,"Nil" ) ||
StringStartsWith( st,"crypto_" ) ){
r = zuluMountVolumeStatus( device,uuid,uid ) ; r = zuluMountVolumeStatus( device,uuid,uid ) ;
}else{ }else{
r = zuluMountUnEncryptedVolumeStatus( device,NULL,NULL ) ; r = zuluMountUnEncryptedVolumeStatus( device,NULL,NULL ) ;
} }
StringDelete( &st ) ; StringDelete( &st ) ;
return r ; return r ;
} }
 End of changes. 3 change blocks. 
4 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)