Forum: Ruby-core [ruby-trunk - Bug #7694][Open] permission of irb history file

Posted by no6v (Nobuhiro IMAI) (Guest)
on 2013-01-14 13:44
(Received via mailing list)
Issue #7694 has been reported by no6v (Nobuhiro IMAI).

----------------------------------------
Bug #7694: permission of irb history file
https://bugs.ruby-lang.org/issues/7694

Author: no6v (Nobuhiro IMAI)
Status: Open
Priority: Normal
Assignee: keiju (Keiju Ishitsuka)
Category: lib
Target version:
ruby -v: ruby 2.0.0dev (2013-01-14 trunk 38812) [x86_64-linux]


=begin
Irb outputs its history to world readable file.
This can be a problem. See also #7679.
=end
Posted by no6v (Nobuhiro IMAI) (Guest)
on 2013-01-15 14:17
(Received via mailing list)
Issue #7694 has been updated by no6v (Nobuhiro IMAI).

File 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

----------------------------------------
Bug #7694: permission of irb history file
https://bugs.ruby-lang.org/issues/7694#change-35434

Author: no6v (Nobuhiro IMAI)
Status: Closed
Priority: Normal
Assignee: keiju (Keiju Ishitsuka)
Category: lib
Target version:
ruby -v: ruby 2.0.0dev (2013-01-14 trunk 38812) [x86_64-linux]


=begin
Irb outputs its history to world readable file.
This can be a problem. See also #7679.
=end
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.