Actions
Bug #7694
closedpermission of irb history file
ruby -v:
ruby 2.0.0dev (2013-01-14 trunk 38812) [x86_64-linux]
Backport:
Description
=begin
Irb outputs its history to world readable file.
This can be a problem. See also #7679.
=end
Files
Updated by keiju (Keiju Ishitsuka) almost 12 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r38813.
Nobuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- lib/irb/ext/save-history.rb: outputs its history to
owner-only-readable file and change the permission of a file that
already exists [Bug #7694]. Thanks Nobuhiro IMAI for bug reports.
Updated by no6v (Nobuhiro IMAI) almost 12 years ago
- File irb-save-history.patch irb-save-history.patch added
=begin
Thanks to fix this. But
File.stat(history_file).mode & 066
returns true value even if the history file mode is already 0600, so the if-statement is ineffective. I attached a tiny patch.
=end
Actions
Like0
Like0Like0