Project

General

Profile

Bug #7694 ยป irb-save-history.patch

no6v (Nobuhiro IMAI), 01/15/2013 10:17 PM

View differences:

lib/irb/ext/save-history.rb
# Change the permission of a file that already exists[BUG #7694]
begin
if File.stat(history_file).mode & 066
if File.stat(history_file).mode & 066 != 0
File.chmod(0600, history_file)
end
rescue Errno::ENOENT
    (1-1/1)