# File lib/netrc.rb, line 18 def self.check_permissions(path) perm = File.stat(path).mode & 0777 if perm != 0600 && !(WINDOWS) raise Error, "Permission bits for '#{path}' should be 0600, but are "+perm.to_s(8) end end