You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 4, 2019. It is now read-only.
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
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:
Could you help me?