diff options
author | Mark Wielaard <mjw@redhat.com> | 2010-02-14 21:42:06 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2010-02-14 21:42:06 +0100 |
commit | c8408b459b88a5aa5f4325e690aef95b5da7c2eb (patch) | |
tree | adeb950c427fdd0b4efb3124ef9f85677523030a | |
parent | a7367d45ca743e8842bf824b0fa2285054d26f74 (diff) | |
download | systemtap-steved-c8408b459b88a5aa5f4325e690aef95b5da7c2eb.tar.gz systemtap-steved-c8408b459b88a5aa5f4325e690aef95b5da7c2eb.tar.xz systemtap-steved-c8408b459b88a5aa5f4325e690aef95b5da7c2eb.zip |
PR11281 Allow negative values for -D argument.
Change regexp match to "^[a-z_][a-z_0-9]*(=-?[a-z_0-9]+)?$".
* main.cxx (main): case 'D' allow optional single minus sign after equal
in assert_regexp_match().
-rw-r--r-- | main.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -821,7 +821,7 @@ main (int argc, char * const argv []) break; case 'D': - assert_regexp_match ("-D parameter", optarg, "^[a-z_][a-z_0-9]*(=[a-z_0-9]+)?$"); + assert_regexp_match ("-D parameter", optarg, "^[a-z_][a-z_0-9]*(=-?[a-z_0-9]+)?$"); if (client_options) client_options_disallowed += client_options_disallowed.empty () ? "-D" : ", -D"; s.macros.push_back (string (optarg)); |