All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] openssl: fix c_rehash dumbness
@ 2015-01-27 21:33 Gustavo Zacarias
  2015-01-27 22:13 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2015-01-27 21:33 UTC (permalink / raw)
  To: buildroot

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/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 ...-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

diff --git a/package/openssl/005-Make-c_rehash-match-commands-starting-with-minus-inste.patch b/package/openssl/005-Make-c_rehash-match-commands-starting-with-minus-inste.patch
new file mode 100644
index 0000000..5db95d6
--- /dev/null
+++ b/package/openssl/005-Make-c_rehash-match-commands-starting-with-minus-inste.patch
@@ -0,0 +1,27 @@
+From 079cae9d7628f16b9efdf5723d2bfae5bdc2ba4e Mon Sep 17 00:00:00 2001
+From: Gustavo Zacarias <gustavo@zacarias.com.ar>
+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 <gustavo@zacarias.com.ar>
+---
+ 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
+
-- 
2.0.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] openssl: fix c_rehash dumbness
  2015-01-27 21:33 [Buildroot] [PATCH] openssl: fix c_rehash dumbness Gustavo Zacarias
@ 2015-01-27 22:13 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2015-01-27 22:13 UTC (permalink / raw)
  To: buildroot

>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> 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/

 > Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-27 22:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-27 21:33 [Buildroot] [PATCH] openssl: fix c_rehash dumbness Gustavo Zacarias
2015-01-27 22:13 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.