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


- Log -----------------------------------------------------------------
commit 65865cb9cc53b97e6cb0d0ce932328ad558784fa
Author: Patrick Steuer <[email protected]>
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 <[email protected]>
    
    Reviewed-by: Bernd Edlinger <[email protected]>
    Reviewed-by: Richard Levitte <[email protected]>
    (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);
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to