summaryrefslogtreecommitdiffstats
path: root/runtime/staprun
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-09-03 14:31:02 -0700
committerJosh Stone <jistone@redhat.com>2009-09-03 14:31:02 -0700
commit06e0b6262393b095a33e9cc6e7ab7bc5d4fe9c95 (patch)
tree8029267099eec7bd898e6532bf6152c8b946f8ba /runtime/staprun
parentb969d16b2986a491eb37706e09da888d9914a7dd (diff)
parentd0822e28934cd0387c2af4349cf52c52c368c55a (diff)
downloadsystemtap-steved-06e0b6262393b095a33e9cc6e7ab7bc5d4fe9c95.tar.gz
systemtap-steved-06e0b6262393b095a33e9cc6e7ab7bc5d4fe9c95.tar.xz
systemtap-steved-06e0b6262393b095a33e9cc6e7ab7bc5d4fe9c95.zip
Merge branch 'master' of sourceware.org:/git/systemtap
Diffstat (limited to 'runtime/staprun')
-rw-r--r--runtime/staprun/staprun.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/runtime/staprun/staprun.c b/runtime/staprun/staprun.c
index 7eb7f28f..da3e304b 100644
--- a/runtime/staprun/staprun.c
+++ b/runtime/staprun/staprun.c
@@ -145,19 +145,11 @@ static int enable_uprobes(void)
static int insert_stap_module(void)
{
char special_options[128];
- char *bufptr = special_options;
/* Add the _stp_bufsize option. */
- if (snprintf_chk(bufptr, sizeof (special_options), "_stp_bufsize=%d", buffer_size))
+ if (snprintf_chk(special_options, sizeof (special_options), "_stp_bufsize=%d", buffer_size))
return -1;
- /* Add the _stp_unprivileged_user option. */
- bufptr += strlen (bufptr);
- if (snprintf_chk(bufptr,
- sizeof (special_options) - (bufptr - special_options),
- " _stp_unprivileged_user=%d", unprivileged_user))
- return -1;
-
return insert_module(modpath, special_options, modoptions);
}