# File lib/specinfra/command/openbsd/base/file.rb, line 15 def check_has_mode(file, mode) regexp = "^#{mode}$" "stat -f%Lp #{escape(file)} | grep #{escape(regexp)}" end