1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Ignore history file without saving if permissions cannot be changed

Fixes [Ruby Bug 13907]
This commit is contained in:
Jeremy Evans 2019-06-24 11:13:09 -07:00 committed by aycabta
parent f9f02e8216
commit a06301b103

View file

@ -101,6 +101,8 @@ module IRB
File.chmod(0600, history_file)
end
rescue Errno::ENOENT
rescue Errno::EPERM
return
rescue
raise
end