This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/11274] New: stap-client doesn't understand "--"
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 12 Feb 2010 01:08:30 -0000
- Subject: [Bug translator/11274] New: stap-client doesn't understand "--"
- Reply-to: sourceware-bugzilla at sourceware dot org
Using getopt, "--" is a special argument that stops further processing.
However, stap-client appears not to handle this, so it can be tricked into doing
things that it shouldn't.
$ stap-client -l syscall.open* -- -p5
syscall.open
syscall.openat
ERROR: Unable to canonicalize path "stap_8052.ko": No such file or directory
Retrying, after attempted removal of module stap_8052 (rc -1)
ERROR: Unable to canonicalize path "stap_8052.ko": No such file or directory
(staprun can't load a module we didn't actually build)
$ stap-client -l syscall.open* -- -rfoo
/usr/local/bin/stap-client: ERROR: Unable to connect to a server
(no server on my network claims to build for kernel foo)
AFAICT the server side correctly ignores these, so this is only an issue of what
is attempted locally.
--
Summary: stap-client doesn't understand "--"
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: jistone at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11274
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.