Skip to content
This repository was archived by the owner on Apr 4, 2019. It is now read-only.
This repository was archived by the owner on Apr 4, 2019. It is now read-only.

libacl.rb:214:in tag_type': undefined method []' #1

Description

@airween

Hello,

I've installed libacl-ruby for ruby-1.8.1. When I tested with your example, script gives me this error:

"Each entry in acl_foo:"
/usr/lib/ruby/1.8/libacl.rb:214:in tag_type': undefined method[]' for #<FFI::Type::Mapped:0x1956b90 size=4 alignment=4> (NoMethodError)
from /usr/lib/ruby/1.8/libacl.rb:234:in to_s' from ./libacltest.rb:42:inputs'
from ./libacltest.rb:42
from /usr/lib/ruby/1.8/libacl.rb:151:in call' from /usr/lib/ruby/1.8/libacl.rb:151:ineach'
from ./libacltest.rb:41

Here is the code:

32  acl_foo = LibACL::ACL.from_file '/tmp/foo'
33  acl_def = LibACL::ACL.default '/tmp/dir'
34  
35  assert_equal acl_foo.to_text, acl.to_text
36  assert_equal acl_def.to_text, acl.to_text
37  
38  
39  #Operate on each entry
40  p "Each entry in acl_foo:"
41  acl_foo.each do |entry|
42    puts entry
43  end

Could you help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions