mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
fix for #14313, don't migrate on top of an existing directory.
This commit is contained in:
parent
4fc9172ea9
commit
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;
|
||||
|
Loading…
Reference in New Issue
Block a user