diff options
| author | Richard Levitte <[email protected]> | 2021-05-28 07:51:05 +0200 |
|---|---|---|
| committer | Richard Levitte <[email protected]> | 2021-05-29 11:02:37 +0200 |
| commit | e653b04bd29f35ee9703be8ee6691b4a640ee2b4 (patch) | |
| tree | f77bf0189ad1782a6a467a124dca0140162f2607 /configdata.pm.in | |
| parent | add zero strenght arguments to BN and RAND RNG calls (diff) | |
| download | openssl-e653b04bd29f35ee9703be8ee6691b4a640ee2b4.tar.gz openssl-e653b04bd29f35ee9703be8ee6691b4a640ee2b4.zip | |
configdata.pm: Allow extra arguments when --query is given.
That allows operations like this:
./configdata.pm --query 'get_sources(@ARGV)' file1 file2 file3
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from https://github.com/openssl/openssl/pull/15514)
Diffstat (limited to 'configdata.pm.in')
| -rw-r--r-- | configdata.pm.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configdata.pm.in b/configdata.pm.in index 57ad440fa41..14da489cd38 100644 --- a/configdata.pm.in +++ b/configdata.pm.in @@ -178,7 +178,10 @@ _____ 'man' => \$man) or die "Errors in command line arguments\n"; - if (scalar @ARGV > 0) { + # We allow extra arguments with --query. That allows constructs like + # this: + # ./configdata.pm --query 'get_sources(@ARGV)' file1 file2 file3 + if (!$query && scalar @ARGV > 0) { print STDERR <<"_____"; Unrecognised arguments. For more information, do '$0 --help' |
