[openssl-commits] [openssl] master update

Rich Salz rsalz at openssl.org
Tue Jun 2 15:24:55 UTC 2015


The branch master has been updated
       via  8846adbd36c1de2b0d38a73ca32e28fde50083b8 (commit)
      from  0baaff1a76d4c91b9c1121059be63175454d7b03 (commit)


- Log -----------------------------------------------------------------
commit 8846adbd36c1de2b0d38a73ca32e28fde50083b8
Author: Olaf Johansson <olof at ethup.se>
Date:   Tue Jun 2 07:41:35 2015 -0400

    GH249: Fix bad regexp in arg parsing.
    
    Signed-off-by: Rich Salz <rsalz at akamai.com>
    Reviewed-by: Richard Levitte <levitte at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 tools/c_rehash.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/c_rehash.in b/tools/c_rehash.in
index 887e927..b086ff9 100644
--- a/tools/c_rehash.in
+++ b/tools/c_rehash.in
@@ -15,13 +15,13 @@ my $symlink_exists=eval {symlink("",""); 1};
 my $removelinks = 1;
 
 ##  Parse flags.
-while ( $ARGV[0] =~ '-.*' ) {
+while ( $ARGV[0] =~ /^-/ ) {
     my $flag = shift @ARGV;
     last if ( $flag eq '--');
-    if ( $flag =~ /-old/) {
+    if ( $flag eq '-old') {
 	    $x509hash = "-subject_hash_old";
 	    $crlhash = "-hash_old";
-    } elsif ( $flag =~ /-h/) {
+    } elsif ( $flag eq '-h') {
 	    help();
     } elsif ( $flag eq '-n' ) {
 	    $removelinks = 0;


More information about the openssl-commits mailing list