]> sourceware.org Git - systemtap.git/commitdiff
staprun: tweak the -o path-pattern length limiting
authorFrank Ch. Eigler <fche@redhat.com>
Sun, 27 Mar 2016 18:43:56 +0000 (14:43 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Sun, 27 Mar 2016 18:43:56 +0000 (14:43 -0400)
cpuNNN is too limited, considering we can have cpus beyond serial
number 999.  Bump it way up.  999999 cpus should be enough for
anybody.

staprun/common.c

index 010bcbbe88ff5876f22c4f6291a0d3b81aff7bae..f16e56a33b5148c249932e63b4f81b6befc33f11 100644 (file)
@@ -278,7 +278,8 @@ void parse_args(int argc, char **argv)
                        err(_("File name is too long.\n"));
                        usage(argv[0],1);
                }
-               ret = stap_strfloctime(tmp, PATH_MAX - 18, /* = _cpuNNN.SSSSSSSSSS */
+               ret = stap_strfloctime(tmp, PATH_MAX - 21,
+                                       /* = _cpuNNNNNN.SSSSSSSSSS */
                                       outfile_name, time(NULL));
                if (ret < 0) {
                        err(_("Filename format is invalid or too long.\n"));
This page took 0.028157 seconds and 5 git commands to generate.