Project

General

Profile

Actions

Bug #7694

closed

permission of irb history file

Added by no6v (Nobuhiro IMAI) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.0.0dev (2013-01-14 trunk 38812) [x86_64-linux]
Backport:
[ruby-core:<unknown>]

Description

=begin
Irb outputs its history to world readable file.
This can be a problem. See also #7679.
=end


Files

irb-save-history.patch (432 Bytes) irb-save-history.patch no6v (Nobuhiro IMAI), 01/15/2013 10:17 PM
Actions #1

Updated by keiju (Keiju Ishitsuka) over 11 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) over 11 years ago

=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

Also available in: Atom PDF

Like0
Like0Like0