This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/11325] Spaces and exclamation marks invalid as module arguments
- From: "wenji dot huang at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 19 Mar 2010 02:19:09 -0000
- Subject: [Bug runtime/11325] Spaces and exclamation marks invalid as module arguments
- References: <20100225211044.11325.chwang@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From wenji dot huang at oracle dot com 2010-03-19 02:19 -------
(In reply to comment #2)
> I suspect we'll need some additional quoting to do the job right
> (consider options[i] itself containing \" or other special chars.)
>
Same idea occurred to me. But I found the track of parameter is
argv -> modoptions -> options
The quoting will be removed in argv. For example,
$staprun mod1.ko var1="hello foo"
argv[N] : var1=hello foo
modoptions: var1=hello foo
options: var1=hello foo
So init_module regards foo as parameter and reports error.
Guess we need reorganize the passing way of parameter to
completely resolve the problem. Seems the above patch can
be temporary workaround.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11325
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.