diff options
author | Ricky Zhou <ricky@fedoraproject.org> | 2011-06-08 17:42:07 -0400 |
---|---|---|
committer | Ricky Zhou <ricky@fedoraproject.org> | 2011-08-31 11:22:14 -0400 |
commit | b51961446995a8c3b62f710e61630a658798fd8c (patch) | |
tree | b163c4bcfeb4ff4c0d777f6baa9d82e155d9b449 | |
parent | 98db04eb290ad7767cbc6da43c0ab94971f0d8ef (diff) | |
download | puppet-b51961446995a8c3b62f710e61630a658798fd8c.tar.gz puppet-b51961446995a8c3b62f710e61630a658798fd8c.tar.xz puppet-b51961446995a8c3b62f710e61630a658798fd8c.zip |
SELinux module headers are always little endian.ticket/master/7841
-rw-r--r-- | lib/puppet/provider/selmodule/semodule.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/provider/selmodule/semodule.rb b/lib/puppet/provider/selmodule/semodule.rb index 64197156f..506b8f3cc 100644 --- a/lib/puppet/provider/selmodule/semodule.rb +++ b/lib/puppet/provider/selmodule/semodule.rb @@ -83,7 +83,7 @@ Puppet::Type.type(:selmodule).provide(:semodule) do filename = selmod_name_to_filename mod = File.new(filename, "r") - (hdr, ver, numsec) = mod.read(12).unpack('LLL') + (hdr, ver, numsec) = mod.read(12).unpack('VVV') raise Puppet::Error, "Found #{hdr} instead of magic #{magic} in #{filename}" if hdr != magic |