User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv: 1.4) Gecko/20030625
If I set general.config.filename in all.js, and also set general.config.filename
in prefs.js, mozilla tries to load the config file defined in prefs.js.
Steps to Reproduce:
1. create mozilla.cfg in $MOZILLA_HOME
2. edit $MOZILLA_HOME/default/prefs/all.js, add
3. edit $HOME/.mozilla/[..]/prefs.js, add:
Mozilla doesn't start, complains about not being able to read the config file.
strace shows that mozilla tries to open $MOZILLA_HOME/ttt.cfg, instead of
Mozilla should have picked the $MOZILLA_HOME/mozilla.cfg file.
Since this allows the user to override the config file, the user may be able
to create an own configuration instead of the locked down default configuration.
Confirming with current SeaMonkey trunk build, this probably also affects FF and TB.
Created attachment 189091 [details] [diff] [review]
David, can you review this patch for us?
Patch has been checked in, probably 2nd patch will follow which will fix another
part of code (not required i think, but nice-to-have).
this breaks MCD, as near as I can tell...will attach a fix for that in a few minutes.
Created attachment 253396 [details] [diff] [review]
the mcd.cfg file sets prefs on the main branch, not the default branch, so we need to be checking the auto-admin prefs from the main branch.
fix landed for 2.0 - will land on the trunk when the tree is a bit greener.