diff options
author | David Lawrence <dkl@mozilla.com> | 2015-01-27 05:27:50 +0100 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-01-27 05:27:50 +0100 |
commit | 90244813fe8110fc91f3746ebd93880e1c911cf1 (patch) | |
tree | 34ff732e860855956f043d0a41db8b2f30ef0095 /Bugzilla/PatchReader/AddCVSContext.pm | |
parent | a748745d3eb9110b0c6bcd803d8d86db8951ad43 (diff) | |
download | bugzilla-90244813fe8110fc91f3746ebd93880e1c911cf1.tar.gz bugzilla-90244813fe8110fc91f3746ebd93880e1c911cf1.tar.xz |
Bug 1124432: Backport upstream bug 1079065 to bmo/4.2 to fix improper use of open() calls
Diffstat (limited to 'Bugzilla/PatchReader/AddCVSContext.pm')
-rw-r--r-- | Bugzilla/PatchReader/AddCVSContext.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/PatchReader/AddCVSContext.pm b/Bugzilla/PatchReader/AddCVSContext.pm index 910e45669..e4100afb1 100644 --- a/Bugzilla/PatchReader/AddCVSContext.pm +++ b/Bugzilla/PatchReader/AddCVSContext.pm @@ -190,7 +190,7 @@ sub push_context_lines { if (Bugzilla::PatchReader::CVSClient::cvs_co_rev($this->{CVSROOT}, $this->{REVISION}, $this->{FILENAME})) { die "Could not check out $this->{FILENAME} r$this->{REVISION} from $this->{CVSROOT}"; } - open my $fh, $this->{FILENAME} or die "Could not open $this->{FILENAME}"; + open(my $fh, '<', $this->{FILENAME}) or die "Could not open $this->{FILENAME}"; $this->{FILE} = $fh; $this->{NEXT_FILE_LINE} = 1; trick_taint($olddir); # $olddir comes from getcwd() |