提交 99aeeecb 编写于 作者: R Richard Levitte

Configure: die if there are other arguments with 'reconf'

It's better to inform the user about this than silently ignoring
something that the user might expect to work, somehow.
Reviewed-by: NAndy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4818)
上级 a064c615
...@@ -211,6 +211,8 @@ $config{builddir} = abs2rel($blddir); ...@@ -211,6 +211,8 @@ $config{builddir} = abs2rel($blddir);
my @argvcopy=@ARGV; my @argvcopy=@ARGV;
if (grep /^reconf(igure)?$/, @argvcopy) { if (grep /^reconf(igure)?$/, @argvcopy) {
die "reconfiguring with other arguments present isn't supported"
if scalar @argvcopy > 1;
if (-f "./configdata.pm") { if (-f "./configdata.pm") {
my $file = "./configdata.pm"; my $file = "./configdata.pm";
unless (my $return = do $file) { unless (my $return = do $file) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册