GH-228 do not follow symlinks during instance copy on unix

Windows will need a more complex solution.
This commit is contained in:
Petr Mrázek
2015-04-07 18:16:02 +02:00
parent 58840ac10c
commit 0220fe4f9d
3 changed files with 32 additions and 12 deletions

View File

@ -501,7 +501,7 @@ InstanceList::copyInstance(InstancePtr &newInstance, InstancePtr &oldInstance, c
QDir rootDir(instDir);
qDebug() << instDir.toUtf8();
if (!copyPath(oldInstance->instanceRoot(), instDir))
if (!copyPath(oldInstance->instanceRoot(), instDir, false))
{
rootDir.removeRecursively();
return InstanceList::CantCreateDir;