[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:
parent
f1c1d07dca
commit
bd1b482242
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user