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