We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cbb4cb commit 357105eCopy full SHA for 357105e
Formula/u/util-linux.rb
@@ -138,7 +138,7 @@ def caveats
138
139
flags = ["x", "w", "r"] * 3
140
perms = flags.each_with_index.reduce("") do |sum, (flag, index)|
141
- sum.insert 0, ((stat.mode & (2 ** index)).zero? ? "-" : flag)
+ sum.insert 0, (stat.mode.nobits?(2 ** index) ? "-" : flag)
142
end
143
144
out = shell_output("#{bin}/namei -lx /usr").split("\n").last.split
0 commit comments