fix for #20198. always append the profile name to the native path the user

specifies.   this prevents the users from accidently removing more than they
expect when they delete the profile.
fix by racham, r=sspitzer
This commit is contained in:
sspitzer%netscape.com 1999-12-04 01:39:16 +00:00
Родитель 7a493ed3db
Коммит d92415acfb
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -1058,6 +1058,13 @@ NS_IMETHODIMP nsProfile::CreateNewProfile(const char* profileName, const char* n
}
else {
dirSpec = nativeProfileDir;
// this prevents people from choosing there profile directory
// or another directory, and remove it when they delete the profile
//
// append profile name
dirSpec += profileName;
dirSpec.MakeUnique();
}
#if defined(DEBUG_profile)