Skip to contentSkip to conversation

openssl: fix c_rehash dumbness

PATCH New Gustavo Zacarias 2 participants 2 messages Jan 27, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openssl: fix c_rehash dumbness

The new c_rehash from openssl 1.0.2 can't take a minus in the directory string since the regex for matching commands checks for - in any position instead of just the beginning to trigger the command parser. Fixes:
http://autobuild.buildroot.net/results/ee6/ee683569350d5deaf0ccc603ed7066bffb83cbe3/

---
 ...-match-commands-starting-with-minus-inste.patch | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 package/openssl/005-Make-c_rehash-match-commands-starting-with-minus-inste.patch
package/openssl/005-Make-c_rehash-match-commands-starting-with-minus-inste.patch new file +27 -0
new file mode 100644
index 0000000..5db95d6
@@ -0,0 +1,27 @@
+From 079cae9d7628f16b9efdf5723d2bfae5bdc2ba4e Mon Sep 17 00:00:00 2001
+From: Gustavo Zacarias <[email protected]>
+Date: Tue, 27 Jan 2015 18:27:32 -0300
+Subject: [PATCH] Make c_rehash match commands starting with - (minus) instead
+ of minus in any starting position, otherwise a directory named a-b breaks it
+
+Signed-off-by: Gustavo Zacarias <[email protected]>
+---
+ tools/c_rehash.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tools/c_rehash.in b/tools/c_rehash.in
+index 887e927..1df2fab 100644
+--- a/tools/c_rehash.in
++++ b/tools/c_rehash.in
+@@ -15,7 +15,7 @@ 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/) {
+-- 
+2.0.5
+
Signature · 1 line
2.0.5
#1 lore raw

PATCH 1/1 openssl: fix c_rehash dumbness

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

The new c_rehash from openssl 1.0.2 can't take a minus in the directory string since the regex for matching commands checks for - in any position instead of just the beginning to trigger the command parser. Fixes:
http://autobuild.buildroot.net/results/ee6/ee683569350d5deaf0ccc603ed7066bffb83cbe3/

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard