]> sourceware.org Git - systemtap.git/commitdiff
man/stap.1: small correction
authorJonathan Lebon <jlebon@redhat.com>
Tue, 30 Jul 2013 14:08:48 +0000 (10:08 -0400)
committerJonathan Lebon <jlebon@redhat.com>
Wed, 16 Oct 2013 14:25:23 +0000 (10:25 -0400)
This correction might be useful for those who want to parse the output.
Also add a small comment in stapsh.c to clarify the STAPSH_MAX_ARGS
comparison.

man/stap.1
staprun/stapsh.c

index 193731bfa9c15b1dbf1d3b9ee0ba7d04aebfb7da..5bde9bb77b94fd22278c8fa1cd27cb66b8bf83ed 100644 (file)
@@ -540,7 +540,7 @@ URL is available as a special loopback mode to run on the local host.
 
 .TP
 .BI \-\-remote\-prefix
-Prefix each line of remote output with "N:", where N is the index of the remote
+Prefix each line of remote output with "N: ", where N is the index of the remote
 execution target from which the given line originated.
 
 .TP
index b65b75ffc71ce27285e6ddf2adfd7c71bb8f8b6a..dbfac4c942474274e60edb05ea68e872f0c26573 100644 (file)
@@ -337,6 +337,8 @@ do_run()
   char* arg;
   while ((arg = strtok(NULL, STAPSH_TOK_DELIM)))
     {
+      // check if we have space left
+      // note that we have to keep at least one 0 at the end for posix_spawn
       if (nargs + 1 > STAPSH_MAX_ARGS)
         return reply ("ERROR: too many arguments\n");
       if (qpdecode(arg) != 0)
This page took 0.032501 seconds and 5 git commands to generate.