puppetlabs/facter — pull request #798 by scfc (2014-10-06 17:14:59+00:00)
Title: (FACT-719) Fix invalid argument warning when reading raw dmi data

Even when /sys/firmware/dmi/entries/1-0/raw is readable according to
its permissions, the actual reading can still fail with EINVAL. This
patch catches that exception and treats it as if the file had not been
marked readable in the first place.

To be on the safe side, only EINVAL is muted, so other error
conditions will still come through.