X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fopenssl%2F005-Make-c_rehash-match-commands-starting-with-minus-inste.patch;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fopenssl%2F005-Make-c_rehash-match-commands-starting-with-minus-inste.patch;h=5db95d636b81955df5614ce77080fa94df3f6408;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/openssl/005-Make-c_rehash-match-commands-starting-with-minus-inste.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/openssl/005-Make-c_rehash-match-commands-starting-with-minus-inste.patch new file mode 100644 index 0000000..5db95d6 --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/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 +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 +--- + 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 +