gecko-dev/profile
sspitzer%netscape.com dd8d913ed5 use #defines where possible to clean up the code, reduce the risk of errors,
and make the code more portable.
create directories with 00700 permissions, not PR_RDWR.  On UNIX, PR_RDWR would
create directories with d______r__. 00700 gives us drwx______ which is want we
want.  change the signature of ProcessPrefs() so that we just return the result,instead of
setting an out parameter.  remove ComputeMailPath(), it is unused.
instead of doing PR_MALLOC in the beginning, set char *'s to nsnull, and use
PR_smprintf() and CopyCharPref() to allocate the memory.  (the PR_FREEIF()s
are still correct, though.)
use NS_SUCCEEDED() and NS_FAILED() instead of comparing against NS_OK directly.
don't execute the GetSizes(), GetDriveName() and CheckForSpace() methods
on UNIX, as they are not UNIX friendly.  hold onto the nsIFileSpec that points
to the prefs file, so we can save it when we are done using SavePrefFileAs()
Change the signature of GetDirFromPref() and GetDriveName().  The out parameters
were char *'s.  they need to be char **'s for them to work.
Change GetDirFromPref() to also take the oldProfilePathStr and the new directory leaf name.
These are used on UNIX, where we to do some magic because in
4.x the directory structure on UNIX was much different that on Mac and Windows
fix leak in GetDriveName().  we were leaking *driveName in the loop.
initialize variables.
add some printfs to remind me that there is more todo.
fix various comments to reflect the new signatures to methods.
check parameters of GetDirFromPref() and GetDriveName()
1999-09-13 00:10:13 +00:00
..
Acct Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people. 1999-09-01 01:13:14 +00:00
Acctidl
defaults Cleaned it up and eliminated the pointless #!gmake. 1999-09-02 00:06:06 +00:00
idlservices change the nsIProfileService interface and implemenation. add an Init() method 1999-09-11 22:15:24 +00:00
macbuild added files: mozilla/profile/public/nsIProfile.idl 1999-09-10 00:51:45 +00:00
pref-migrator use #defines where possible to clean up the code, reduce the risk of errors, 1999-09-13 00:10:13 +00:00
public profile changes on windows 1999-09-10 00:51:22 +00:00
resources Fixing bug #13518 1999-09-10 00:34:45 +00:00
src use #defines where possible to clean up the code, reduce the risk of errors, 1999-09-13 00:10:13 +00:00
.cvsignore
Makefile.in changes to get pref-migrator (think apprunner -installer) on UNIX. 1999-09-11 19:48:50 +00:00
makefile.win Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people. 1999-09-01 01:13:14 +00:00