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:
parent
f9f02e8216
commit
a06301b103
1 changed files with 2 additions and 0 deletions
|
@ -101,6 +101,8 @@ module IRB
|
|||
File.chmod(0600, history_file)
|
||||
end
|
||||
rescue Errno::ENOENT
|
||||
rescue Errno::EPERM
|
||||
return
|
||||
rescue
|
||||
raise
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue