Skip Menu |

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

Report information
The Basics
Id: 36450
Status: resolved
Priority: 0/
Queue: File-Slurp

People
Owner: Nobody in particular
Requestors: DSTERLING [...] cpan.org
Cc:
AdminCc:

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



Subject: File::Slurp doesn't check the return value of rename call
Code has: rename( $file_name, $orig_file_name ) if $args->{'atomic'} ; Should be more like: if ($args->{'atomic'} and not rename( $file_name, $orig_file_name )) { @_ = ( $args, "write_file '$file_name' - rename: $!"); goto &_error ; }
fixed and tested in t/error.t