Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 674402 Details for
Bug 892221
rubygem-ruby_parser: Incorrect usage of file in /tmp/ ( /usr/share/gems/gems/ruby_parser-2.0.4/lib/gauntlet_rubyparser.rb ) [fedora-all]
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
tentative patch to fix the issue
0001-do-not-use-a-predictable-filename-for-temporary-file.patch (text/plain), 1.20 KB, created by
Michael S.
on 2013-01-07 22:56:30 UTC
(
hide
)
Description:
tentative patch to fix the issue
Filename:
MIME Type:
Creator:
Michael S.
Created:
2013-01-07 22:56:30 UTC
Size:
1.20 KB
patch
obsolete
>From 1c31926e2b6dac334c3ae4c00a1cf8ba4c69b83d Mon Sep 17 00:00:00 2001 >From: Michael Scherer <misc@zarb.org> >Date: Mon, 7 Jan 2013 23:39:25 +0100 >Subject: [PATCH] do not use a predictable filename for temporary file used to > store data to compare ( RH bugzilla #892221 ) > >--- > lib/gauntlet_rubyparser.rb | 19 ++++++++++--------- > 1 file changed, 10 insertions(+), 9 deletions(-) > >diff --git a/lib/gauntlet_rubyparser.rb b/lib/gauntlet_rubyparser.rb >index 4463c38..85137f9 100755 >--- a/lib/gauntlet_rubyparser.rb >+++ b/lib/gauntlet_rubyparser.rb >@@ -35,18 +35,19 @@ class RubyParserGauntlet < Gauntlet > def diff_pp o1, o2 > require 'pp' > >- File.open("/tmp/a.#{$$}", "w") do |f| >- PP.pp o1, f >- end >+ file_a = Tempfile.new('ruby_parser_a') >+ PP.pp o1, file_a >+ file_a.close >+ >+ file_b = Tempfile.new('ruby_parser_b') >+ PP.pp o2, file_b >+ file_b.close > >- File.open("/tmp/b.#{$$}", "w") do |f| >- PP.pp o2, f >- end > >- `diff -u /tmp/a.#{$$} /tmp/b.#{$$}` >+ `diff -u #{file_a.path} #{file_b.path}` > ensure >- File.unlink "/tmp/a.#{$$}" rescue nil >- File.unlink "/tmp/b.#{$$}" rescue nil >+ file_a.unlink >+ file_b.unlink > end > > def broke name, file, msg >-- >1.8.0.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 892221
: 674402