fix for #14313, don't migrate on top of an existing directory.

This commit is contained in:
sspitzer%netscape.com 2000-04-24 05:28:49 +00:00
Родитель 4fc9172ea9
Коммит 94a652a4bd
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -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;