File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1516,14 +1516,14 @@ def wrap_traverse(pre, post)
15161516
15171517 private
15181518
1519- $ fileutils_rb_have_lchmod = nil
1519+ @@ fileutils_rb_have_lchmod = nil
15201520
15211521 def have_lchmod?
15221522 # This is not MT-safe, but it does not matter.
1523- if $ fileutils_rb_have_lchmod == nil
1524- $ fileutils_rb_have_lchmod = check_have_lchmod?
1523+ if @@ fileutils_rb_have_lchmod == nil
1524+ @@ fileutils_rb_have_lchmod = check_have_lchmod?
15251525 end
1526- $ fileutils_rb_have_lchmod
1526+ @@ fileutils_rb_have_lchmod
15271527 end
15281528
15291529 def check_have_lchmod?
@@ -1534,14 +1534,14 @@ def check_have_lchmod?
15341534 return false
15351535 end
15361536
1537- $ fileutils_rb_have_lchown = nil
1537+ @@ fileutils_rb_have_lchown = nil
15381538
15391539 def have_lchown?
15401540 # This is not MT-safe, but it does not matter.
1541- if $ fileutils_rb_have_lchown == nil
1542- $ fileutils_rb_have_lchown = check_have_lchown?
1541+ if @@ fileutils_rb_have_lchown == nil
1542+ @@ fileutils_rb_have_lchown = check_have_lchown?
15431543 end
1544- $ fileutils_rb_have_lchown
1544+ @@ fileutils_rb_have_lchown
15451545 end
15461546
15471547 def check_have_lchown?
You can’t perform that action at this time.
0 commit comments