зеркало из https://github.com/mozilla/gecko-dev.git
fix for #14313, don't migrate on top of an existing directory.
This commit is contained in:
Родитель
4fc9172ea9
Коммит
94a652a4bd
|
@ -1266,7 +1266,13 @@ nsProfile::MigrateProfile(const PRUnichar* profileName, PRBool showProgressAsMod
|
|||
|
||||
newSpec->GetFileSpec(&newProfDir);
|
||||
newProfDir += profileName;
|
||||
|
||||
newProfDir.MakeUnique();
|
||||
if (newProfDir.Exists()) {
|
||||
#ifdef DEBUG_profile
|
||||
printf("directory already exists\n");
|
||||
#endif
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
// Call migration service to do the work.
|
||||
nsCOMPtr <nsIPrefMigration> pPrefMigrator;
|
||||
|
|
Загрузка…
Ссылка в новой задаче