summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/selinux.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/util/selinux.rb')
-rw-r--r--lib/puppet/util/selinux.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/util/selinux.rb b/lib/puppet/util/selinux.rb
index ab7e12d29..5aafd9c02 100644
--- a/lib/puppet/util/selinux.rb
+++ b/lib/puppet/util/selinux.rb
@@ -141,7 +141,7 @@ module Puppet::Util::SELinux
mounts = ""
begin
if File.instance_methods.include? "read_nonblock"
- # If possible we use read_nonblock() in a loop rather than read() to work-
+ # If possible we use read_nonblock in a loop rather than read to work-
# a linux kernel bug. See ticket #1963 for details.
mountfh = File.open("/proc/mounts")
mounts += mountfh.read_nonblock(1024) while true
@@ -184,7 +184,7 @@ module Puppet::Util::SELinux
# Internal helper function to return which type of filesystem a
# given file path resides on
def find_fs(path)
- unless mnts = read_mounts()
+ unless mnts = read_mounts
return nil
end