[partition] Don't autoremove the tempdir

- Dangerout since we're mounting things inside that tempdir,
   and then doing a "weak" unmount
This commit is contained in:
Adriaan de Groot 2018-11-02 11:58:49 -04:00
parent f1c1d07dca
commit bd1b482242

View File

@ -163,6 +163,7 @@ lookForFstabEntries( const QString& partitionPath )
{ {
FstabEntryList fstabEntries; FstabEntryList fstabEntries;
QTemporaryDir mountsDir; QTemporaryDir mountsDir;
mountsDir.setAutoRemove( false );
int exit = QProcess::execute( "mount", { partitionPath, mountsDir.path() } ); int exit = QProcess::execute( "mount", { partitionPath, mountsDir.path() } );
if ( !exit ) // if all is well if ( !exit ) // if all is well