X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Ft%2Fweb%2Fcommand_line.t;h=884b064e646656ef699e629b129c8c6057380da4;hp=3fc279bf32f188bf52218e5f5c678bc86e5e114d;hb=75162bb14b3e38d66617077843f4dfdcaf09d5c4;hpb=fc6209f398899f0211cfcedeb81a3cd65e04a941 diff --git a/rt/t/web/command_line.t b/rt/t/web/command_line.t index 3fc279bf3..884b064e6 100644 --- a/rt/t/web/command_line.t +++ b/rt/t/web/command_line.t @@ -532,7 +532,7 @@ sub check_attachment { expect_handle->before() =~ $attachment_regex; my $attachment_id = $1; expect_send("show ticket/$ticket_id/attachments/$attachment_id/content","Fetching Attachment"); - open (my $fh, $attachment_path) or die "Can't open $attachment_path: $!"; + open( my $fh, '<', $attachment_path ) or die "Can't open $attachment_path: $!"; my $attachment_content = do { local($/); <$fh> }; close $fh; chomp $attachment_content;