diff options
author | dsmith <dsmith> | 2007-08-20 14:02:47 +0000 |
---|---|---|
committer | dsmith <dsmith> | 2007-08-20 14:02:47 +0000 |
commit | 51d74220e22628126489527776af8c13e339c1ec (patch) | |
tree | 3cce72771ef82d0b6b94f9b573d2b765e0cfd77d /runtime/staprun | |
parent | 5c5eb9aa3b383a9bd0b7e5a6b7fcdafc090b0049 (diff) | |
download | systemtap-steved-51d74220e22628126489527776af8c13e339c1ec.tar.gz systemtap-steved-51d74220e22628126489527776af8c13e339c1ec.tar.xz systemtap-steved-51d74220e22628126489527776af8c13e339c1ec.zip |
2007-08-20 David Smith <dsmith@redhat.com>
From Lai Jiangshan <laijs@cn.fujitsu.com>
* common.c (parse_args): Make sure the '-c' and '-x' options can't
be specified together.
Diffstat (limited to 'runtime/staprun')
-rw-r--r-- | runtime/staprun/ChangeLog | 6 | ||||
-rw-r--r-- | runtime/staprun/common.c | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/runtime/staprun/ChangeLog b/runtime/staprun/ChangeLog index dd3eb90e..771e375d 100644 --- a/runtime/staprun/ChangeLog +++ b/runtime/staprun/ChangeLog @@ -1,3 +1,9 @@ +2007-08-20 David Smith <dsmith@redhat.com> + + From Lai Jiangshan <laijs@cn.fujitsu.com> + * common.c (parse_args): Make sure the '-c' and '-x' options can't + be specified together. + 2007-08-15 David Smith <dsmith@redhat.com> * staprun.c (main): Quit if effective uid is not root. diff --git a/runtime/staprun/common.c b/runtime/staprun/common.c index cbe88be0..9056c710 100644 --- a/runtime/staprun/common.c +++ b/runtime/staprun/common.c @@ -104,6 +104,11 @@ void parse_args(int argc, char **argv) "option only has an effect when the module is inserted.\n"); usage(argv[0]); } + + if (target_cmd && target_pid) { + err("You can't specify the '-c' and '-x' options together.\n"); + usage(argv[0]); + } } void usage(char *prog) |