Skip Menu |

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

Report information
The Basics
Id: 66496
Status: resolved
Priority: 0/
Queue: File-Util

People
Owner: Nobody in particular
Requestors: upload2raj [...] gmail.com
Cc:
AdminCc:

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



Subject: Error while using the module with
Issue in : File-Util-3.27 I am using the File::util module for listing the directories. The script runs as a non root user, so when this lists the directory /etc/,it leads to a fatal error. The part of the error is as follows. "The system returned this error: »Permission denied«" So i have used --fatals-as-status option in new() to proceed with the script after returning undef. But in this case I get the following error. Can't use string ("0") as an ARRAY ref while "strict refs" in use at /usr/local/lib/perl5/site_perl/5.10.0/File/Util.pm line 274. In the module at line 274 the result of list_dir is being pushed into an array "dirs". The list_dir on occurence of an error returns undef which is being push into the "dirs" array without handling the undef condition.This is the cause for the above error.
fixed in version 3.29