for Bug ID 3111991
using clearcase snapshot view on RHEL4.8 I see the following error when I click on parallel links:
Can't close(): Bad file descriptor at /var/www/codestriker/codestriker-1.9.10/lib/Codestriker/Action/ViewTopicFile.pm line 66
Here is the source of the problem. After making this change it works fine
--------------- lib/Codestriker/Repository/ClearCaseSnapshot.pm ---------------
index 42e530d..3c74341 100644
@@ -59,13 +59,14 @@ sub retrieve ($$$\$) {
push @ctArgs, $full_element_name;
Codestriker::execute_command(\*STDERR, \*STDERR, $Codestriker::cleartool, @ctArgs);
+ my $input_fh = new FileHandle;
open(my $input_fh, "<", $tempfile);
for (my $i = 1; <$input_fh>; $i++) {
$_ = Codestriker::decode_topic_text($_);
chop;
$$content_array_ref[$i] = $_;
}
- close <$input_fh>;
+ close $input_fh;
if (defined($tempdir)) {
unlink $errorfile;