aboutsummaryrefslogtreecommitdiff
path: root/openssl/tools/c_rehash.in
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/tools/c_rehash.in')
-rw-r--r--openssl/tools/c_rehash.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/openssl/tools/c_rehash.in b/openssl/tools/c_rehash.in
index 887e92712..b086ff9cf 100644
--- a/openssl/tools/c_rehash.in
+++ b/openssl/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;