Skip to content

Commit

Permalink
Default to strict crypt, since we can't determine glibc version.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Apr 7, 2015
1 parent 0bab673 commit 8c09f1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/mri/ruby/test_m17n_comb.rb
Expand Up @@ -731,7 +731,8 @@ def test_str_count
end

def test_str_crypt
strict_crypt = nil
strict_crypt = true # default to skipping non-alphanum salt

# glibc 2.16 or later denies salt contained other than [0-9A-Za-z./] #7312
if defined? Etc::CS_GNU_LIBC_VERSION
glibcver = Etc.confstr(Etc::CS_GNU_LIBC_VERSION).scan(/\d+/).map(&:to_i)
Expand Down

0 comments on commit 8c09f1c

Please sign in to comment.