Closed
Bug 263974
Opened 20 years ago
Closed 20 years ago
A profile name with a space causes the startup script to parse options incorrectly
Categories
(Toolkit :: Startup and Profile System, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: iketo2, Assigned: benjamin)
Details
Attachments
(1 file)
280 bytes,
patch
|
bryner
:
review-
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
Line 166 of the "firefox" script reads
[ $i = ${_optLast} ] && break
$i iterate through all options; and ${_optLast} is one of the options as well.
If the option contains anything that has an option that contains a space, $i
will expand to two words, and the "=" test will fail, saying that there are more
arguments than expected.
Reproducible: Always
Steps to Reproduce:
1.Make a profile, using the default "Default User" as profile name.
2.Start firefox using that profile with "firefox -P 'Default User'".
Actual Results:
A warning is shown in the terminal showing that options are not parsed correctly.
Expected Results:
The variables mentioned should be guarded by quotes, i.e.,
[ "$i" = "${_optLast}" ] && break
Comment 1•20 years ago
|
||
patch which adds the quote marks
Assignee | ||
Updated•20 years ago
|
Attachment #161839 -
Flags: review?(bryner)
Comment 2•20 years ago
|
||
Comment on attachment 161839 [details] [diff] [review]
patch which adds quote marks
Let's land the patch from bug 251772 instead, that will sync with the trunk.
Attachment #161839 -
Flags: review?(bryner) → review-
Assignee | ||
Comment 3•20 years ago
|
||
Fixed by bug 251772
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•