From d92415acfb3f10388d0aebee62e6f0770409929e Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Sat, 4 Dec 1999 01:39:16 +0000 Subject: [PATCH] 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 --- profile/src/nsProfile.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/profile/src/nsProfile.cpp b/profile/src/nsProfile.cpp index e34546a2631..316979f58d6 100644 --- a/profile/src/nsProfile.cpp +++ b/profile/src/nsProfile.cpp @@ -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)