redboot-cmdline can not cope with slashes in cmdline
Bug #462605 reported by
Oliver Grawert
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
redboot-tools (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: redboot-tools
the current redboot-cmdline gets unhappy if slashes show up in the cmdline, input should be parsed through
sed s/\\\//'\\'\\\//g
or different quoting should be applied to the script.
Changed in redboot-tools (Ubuntu): | |
assignee: | nobody → Oliver Grawert (ogra) |
importance: | Undecided → Medium |
status: | New → Triaged |
To post a comment you must log in.
Note that there is a possible quoting error on line 88 of the original redboot-cmdline script:
NEWSCRIPT= "$(echo "$(${CMD})"|sed s/\"[^] ]*\"/\" "${CMDLINE} "\"/g)\ \"
The sed command executed inside the command substitution is ]*\"/\" "${CMDLINE} "\"/g
sed s/\"[^]
I think the [^]]* is unquoted, so glob expansion will be done on the whole word s/...[^]]*.../.../g
You'd have to be really unlucky for that to match some existing file though :P Usually therefore the [^]]* falls through unmodified.
(But then trying to understand non-trivial shell quoting cases always ties my brain in knots...)