Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Archive-Zip CPAN distribution.

Report information
The Basics
Id:
19508
Status:
open
Priority:
Low/Low
Queue:

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

BugTracker
Severity:
Critical
Broken in:
1.16
Fixed in:
(no value)



Subject: Inappropriate ioctl for device
I do the following code. my $data_file_zip = "$data_file.zip"; $zip->addFile( $data_file ) || die "Problem with addfile: $!"; my $output = $zip->writeToFileNamed( $data_file_zip ) || print "Problem with writeToFileNamed: $!"; and get Inappropriate ioctl for device Is there any thing I can do about this. Linux 2.6.15-1.2054_FC5 #1 This is perl, v5.8.8 built for i386-linux-thread-multi
Hi, (Though the query is old, this reply may be of help to some users of the module who are stuck with such issues. Hence the reply.) my $output = $zip->writeToFileNamed( $data_file_zip ) || print "Problem with writeToFileNamed: $!"; The above will always execute the `||' part even when writeToFileNamed succeeds. This is because writeToFileNamed returns AZ_OK (exported error code) which has a value of 0. You should be checking if ($output == AZ_OK). -- The difference makes the difference


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.