Fix a constant reference.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5d6ed9081e
commit
741b7c46b8
@ -727,7 +727,7 @@ class TestM17NComb < Test::Unit::TestCase
|
||||
def test_str_crypt
|
||||
strict_crypt = nil
|
||||
# glibc 2.16 or later denies salt contained other than [0-9A-Za-z./] #7312
|
||||
if defined? Etc::Etc::CS_GNU_LIBC_VERSION
|
||||
if defined? Etc::CS_GNU_LIBC_VERSION
|
||||
glibcver = Etc.confstr(Etc::CS_GNU_LIBC_VERSION).scan(/\d+/).map(&:to_i)
|
||||
strict_crypt = (glibcver <=> [2, 16]) >= 0
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user