[openssl-commits] [openssl] master update

Richard Levitte levitte at openssl.org
Wed Mar 14 17:37:57 UTC 2018


The branch master has been updated
       via  65865cb9cc53b97e6cb0d0ce932328ad558784fa (commit)
      from  d35b2c72487dd07ca4e88a9c6bf4031a34e92dc1 (commit)


- Log -----------------------------------------------------------------
commit 65865cb9cc53b97e6cb0d0ce932328ad558784fa
Author: Patrick Steuer <patrick.steuer at de.ibm.com>
Date:   Mon Mar 12 12:53:21 2018 +0000

    Fix test_out_option
    
    Random path generation code in test/recipes/15-test_out_option.t
    does not work: The code sets rand_path to "/test.pem". I.e. the
    test will fail as expected for unprivileged user but will pass
    for root user.
    
    Signed-off-by: Patrick Steuer <patrick.steuer at de.ibm.com>
    
    Reviewed-by: Bernd Edlinger <bernd.edlinger at hotmail.de>
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/5595)

-----------------------------------------------------------------------

Summary of changes:
 test/recipes/15-test_out_option.t | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/recipes/15-test_out_option.t b/test/recipes/15-test_out_option.t
index 018ff3d..f50001d 100644
--- a/test/recipes/15-test_out_option.t
+++ b/test/recipes/15-test_out_option.t
@@ -36,7 +36,8 @@ test_illegal_path('../');
 
 # Test for trying to create a file in a non-exist directory
 my @chars = ("A".."Z", "a".."z", "0".."9");
-my $rand_path = $chars[rand @chars] for 1..32;
+my $rand_path = "";
+$rand_path .= $chars[rand @chars] for 1..32;
 $rand_path .= "/test.pem";
 
 test_illegal_path($rand_path);


More information about the openssl-commits mailing list