https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112013-01-14T23:17:21ZRuby Issue Tracking SystemRuby master - Bug #7694: permission of irb history filehttps://bugs.ruby-lang.org/issues/7694?journal_id=354092013-01-14T23:17:21Zkeiju (Keiju Ishitsuka)keiju@ishitsuka.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r38813.<br>
Nobuhiro, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>lib/irb/ext/save-history.rb: outputs its history to<br>
owner-only-readable file and change the permission of a file that<br>
already exists [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: permission of irb history file (Closed)" href="https://bugs.ruby-lang.org/issues/7694">#7694</a>]. Thanks Nobuhiro IMAI for bug reports.</li>
</ul> Ruby master - Bug #7694: permission of irb history filehttps://bugs.ruby-lang.org/issues/7694?journal_id=354342013-01-15T22:17:03Zno6v (Nobuhiro IMAI)nov@yo.rim.or.jp
<ul><li><strong>File</strong> <a href="/attachments/3431">irb-save-history.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3431/irb-save-history.patch">irb-save-history.patch</a> added</li></ul><p>=begin<br>
Thanks to fix this. But</p>
<p>File.stat(history_file).mode & 066</p>
<p>returns true value even if the history file mode is already 0600, so the if-statement is ineffective. I attached a tiny patch.<br>
=end</p>