Skip Menu |

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

Report information
The Basics
Id: 19508
Status: open
Priority: 0/
Queue: Archive-Zip

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

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

Subject: Inappropriate ioctl for device
Download (untitled) / with headers
text/plain 403b
I do the following code. my $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
Download (untitled) / with headers
text/plain 497b
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 is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to