[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, upstream, updated. 51bcebe38cab6088c901f1006339bbe40a36d161

Paul Nasrat pnasrat at googlemail.com
Wed Aug 18 05:55:50 UTC 2010


The following commit has been merged in the upstream branch:
commit 73dcbb941f145aac05ea4f0df9a7a14787de27d9
Author: Bernhard Furtmueller <furti at 1012surf.net>
Date:   Fri Sep 11 01:09:22 2009 -0400

    Fixed #2355 read hang on /proc/xen/capabilties on RHEL 4.7

diff --git a/lib/facter/virtual.rb b/lib/facter/virtual.rb
index 39e450e..c6d0f22 100644
--- a/lib/facter/virtual.rb
+++ b/lib/facter/virtual.rb
@@ -25,9 +25,9 @@ Facter.add("virtual") do
             if FileTest.exists?("/sys/bus/xen")
                 result = "xenu"
             end
-        
+
             if FileTest.exists?("/proc/xen/capabilities")
-                txt = File.read("/proc/xen/capabilities")
+                txt = Facter::Util::Resolution.exec("cat /proc/xen/capabilities")
                 if txt =~ /control_d/i
                     result = "xen0"
                 end

-- 
Packaging of Facter for debian



More information about the Pkg-puppet-devel mailing list