1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: When root, removing read permission still allows reading
Author: Simon Quigley <tsimonq2@debian.org>
Forwarded: no
Last-Update: 2025-11-01
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/test/compile_cache/yaml_test.rb
+++ b/test/compile_cache/yaml_test.rb
@@ -246,7 +246,7 @@ class CompileCacheYAMLTest < Minitest::T
end
def test_no_read_permission
- if RbConfig::CONFIG["host_os"] =~ /mswin|mingw|cygwin/
+ if RbConfig::CONFIG["host_os"] =~ /mswin|mingw|cygwin/ || Process.uid.zero?
# On windows removing read permission doesn't prevent reading.
pass
else
|