Skip Menu |

This queue is for tickets about the File-ExtAttr CPAN distribution.

Report information
The Basics
Id: 65209
Status: new
Priority: 0/
Queue: File-ExtAttr

Owner: Nobody in particular
Requestors: [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Bug in _is_fh of File::ExtAttr
Date: Fri, 28 Jan 2011 08:17:10 +0100
To: <bug-File-ExtAttr [...]>
From: Stefan Walter < [...]>
Download (untitled) / with headers
text/plain 940b
Hi! I am using File::ExtAttr to read and write SELinux attributes. In my application I get stray messages like this: Can't call method "isa" without a package or object reference at /usr/lib/perl5/vendor_perl/File/ line 206. I am using file names instead of File::IO objects and there seems to be a problem in the detection function _is_fh. I cannot provide a simple reproducer - If I just run something like getfattr("/etc", "selinux", { namespace => "security" } ); in a simple script, it remains silent. I guess it is one of the many other CPAN modules I use that changes the behavior. The fix I found (which seems right to me) is to add local $SIG{'__DIE__'}; as the first line in the eval block in _is_fh. You may want to add that in your code. Thanks and best regards, Stefan -- ETH Zürich, Stefan Walter, IT Service Group CAB E 44.2, Universitätsstrasse 6, CH-8092 Zürich Tel +41 44 632 82 15

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to